/* Importar Encode Sans */
@import url('https://fonts.googleapis.com/css2?family=Encode+Sans:wght@400;500;600;700&display=swap');

/* Reset y variables globales */
:root {
    --primary-color: #5F5E5D;     /* Gris oscuro - Color principal */
    --secondary-color: #E87162;    /* Rojo claro - Acento principal */
    --accent-color: #E24A37;       /* Rojo oscuro - Acento secundario */
    --text-color: #5F5E5D;         /* Gris oscuro - Texto */
    --background-color: #F2EEEA;   /* Gris muy claro - Fondo general */
    --light-gray: #B4B2AE;         /* Gris medio - Elementos secundarios */
    --section-padding: 8rem 2rem;
    --transition-speed: 0.3s;
    --section-overlap: 6rem;
    --display-font: 'Encode Sans', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.open-sans {
    font-family: "Open Sans", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "wdth" 100;
  }
  .red-hat-display {
    font-family: "Red Hat Display", serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
  }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

/* Header y navegación */
header {
    background-color: white;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: solid 1px grey;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

nav {
    flex-grow: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
    position: relative;
    padding-bottom: 0.25rem;
}

nav a:hover {
    color: var(--secondary-color);
}

nav a.active {
    color: var(--secondary-color);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

/* Slider */
.slider {
    margin-top: 4rem;
    min-height: max(90vh, 650px);
    position: relative;
    overflow: hidden;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: -80px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider h1 {
    font-family: var(--display-font);
    color: white;
    font-size: 3.5rem;
    font-weight: 400;
    margin-top: 0rem;
    position: relative;
    z-index: 10;
    text-shadow: 0 0 10px rgba(0,0,0,0.5),
                 2px 2px 4px rgba(0,0,0,0.7);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 2rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.slide > * {
    position: relative;
    z-index: 2;
}

#innovation {
    background-image: url('images/innovation.jpg');
}

#engineering {
    background-image: url('images/engineering.jpg');
}

#industry {
    background-image: url('images/industry.jpg');
}

#architecture {
    background-image: url('images/architecture.jpg');
}

#logistics {
    background-image: url('images/logistics.jpg');
}

.slide.active {
    opacity: 1;
}

.slide h2 {
    font-family: var(--display-font);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0,0,0,0.5),
                 2px 2px 4px rgba(0,0,0,0.7);
}

.slide p {
    font-family: var(--display-font);
    font-size: 1.5rem;
    max-width: 800px;
    text-shadow: 0 0 8px rgba(0,0,0,0.5),
                 1px 1px 3px rgba(0,0,0,0.7);
}

/* Secciones generales */
section {
    position: relative;
    padding: var(--section-padding);
    margin-bottom: -80px;
}

section::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 200px;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: inherit;
}

/* Secciones impares (1º, 3º, 5º...) - Diagonal de derecha a izquierda */
section:nth-child(odd)::after {
    transform: skewY(-2deg);
    transform-origin: 100%;
}

/* Secciones pares (2º, 4º, 6º...) - Diagonal de izquierda a derecha */
section:nth-child(even)::after {
    transform: skewY(2deg);
    transform-origin: 0;
}

/* Contenedor para el contenido de la sección */
.section-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
}

/* Colores alternados para las secciones */
section:nth-child(odd) {
    background-color: white;
}

section:nth-child(even) {
    background-color: var(--background-color);
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
}

.slide h2 {
    color: white;
}

.slide p {
    color: #E87162;
    font-weight: 500;
}

.contact-text {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    line-height: 1.6;
}
/* Ideas Grid */
.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.idea-item {
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    transition: transform var(--transition-speed);
    /*border: 1px solid var(--light-gray); */
    position: relative;
    overflow: hidden;
/*    background-color: #e871621a; */
}

.idea-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

.idea-item h3, .idea-item p {
    position: relative;
    z-index: 1;
}

/* Automatización background */
.idea-item:nth-child(1)::before {
    background-image: url('../assets/images/robot.jpg');
}

/* Conectividad background */
.idea-item:nth-child(2)::before {
    background-image: url('../assets/images/current-sensor.jpg');
}

/* Eficiencia background */
.idea-item:nth-child(3)::before {
    background-image: url('../assets/images/smart-lock.jpg');
}

/* Escalabilidad background */
.idea-item:nth-child(4)::before {
    background-image: url('../assets/images/logistics.jpg');
}

.idea-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

/* Portfolio */
.portfolio-categories {
    margin-top: 2rem;
}

.category {
    margin-bottom: 4rem;
}

.portfolio-layout {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.portfolio-intro {
    flex: 0 0 35%;
    position: sticky;
    top: 100px;
    margin-top: 100px;
}

.portfolio-intro h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.portfolio-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.portfolio-grid {
    flex: 0 0 65%;
    display: flex;
    gap: 2rem;
}

.portfolio-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.portfolio-column.offset {
    margin-top: 4rem;
}

.portfolio-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-speed);
    /* border: 1px solid var(--light-gray); */
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-item h4 {
    padding: 1rem;
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.portfolio-item p {
    padding: 0 1rem 1rem;
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
}


/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    transition: transform var(--transition-speed);
    border: 1px solid var(--light-gray);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 8rem;
    opacity: 0.3;
    transform: rotate(-10deg);
    color: var(--primary-color);
    z-index: 0;
}

.service-item h3, .service-item p {
    position: relative;
    z-index: 1;
}

/* Smart Session icon */
.service-item:nth-child(1)::before {
    content: '\f0c0'; /* fa-users - represents meeting/group */
}

/* Formación icon */
.service-item:nth-child(2)::before {
    content: '\f51c'; /* fa-chalkboard-teacher */
}

/* Diseño Electrónico icon */
.service-item:nth-child(3)::before {
    content: '\f2db'; /* fa-microchip */
}

/* Desarrollo de Firmware icon */
.service-item:nth-child(4)::before {
    content: '\f121'; /* fa-code */
}

/* Diseño Mecánico icon */
.service-item:nth-child(5)::before {
    content: '\f013'; /* fa-gear/cog */
}

/* Producción icon */
.service-item:nth-child(6)::before {
    content: '\f1b9'; /* fa-car */
}

/* Consultoría icon */
.service-item:nth-child(7)::before {
    content: '\f0b1'; /* fa-briefcase */
}

/* Formación icon (repeated) */
.service-item:nth-child(8)::before {
    content: '\f51c'; /* fa-chalkboard-teacher */
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

/* Formulario de contacto */
form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 0rem;
}

label {
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

button {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color var(--transition-speed);
    z-index: 3333;
    position: relative;
}

button:hover {
    background-color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
    margin-top: 80px;
}

footer p {
    margin: 0.5rem 0;
    line-height: 1.5;
}

footer p:first-child {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

footer::before {
    content: none;
}


/* Formulario */
input:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(232, 113, 98, 0.1);
} 

/* Ajustar el primer section después del slider */
section#about {
    padding-top: 120px;
}

/* Ajustar el último section antes del footer */
section#contact {
    margin-bottom: var(--section-overlap);
    padding-bottom: calc(var(--section-overlap) + 4rem);
} 

/* Ajustar el slider para que coincida con la primera diagonal */
.slider {
    position: relative;
}

.slider::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 200px;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: inherit;
    transform: skewY(-2deg);
    transform-origin: 100%;
} 

/* Navegación del slider */
.slider-nav {
    display: flex;
    position: absolute;
    bottom: 12rem;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
    padding: 0 1rem;
}

/* Ocultar scrollbar en Chrome/Safari */
.slider-nav::-webkit-scrollbar {
    display: none;
}

.nav-item {
    padding: 0.5rem 2rem;
    background: var(--light-gray);
    color: white;
    cursor: pointer;
    font-family: var(--display-font);
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-speed);
    border: none;
    clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
    margin: 0 -15px;
    min-width: 150px;
    flex-shrink: 0;
}

.contact-button {

    left: 50%;
    z-index: 10;
    background: none;
    border: none;
    color: var(--accent-color);
    font-family: var(--display-font);
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-speed);
    padding: 0;
    font-weight: bold;
}

.contact-button:hover {
    background: none;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(226, 74, 55, 0.3);
}

.contact-button-container {
    display: flex;
    justify-content: center;
}
.nav-item {
    position: relative;
    padding: 0.5rem 2rem;
    background: var(--light-gray);
    color: white;
    cursor: pointer;
    font-family: var(--display-font);
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-speed);
    border: none;
    clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
    margin: 0 -15px;
    min-width: 150px;
}

.nav-item:first-child {
    clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
    padding-left: 1.5rem;
    margin-left: 0;
}

.nav-item:last-child {
    clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%);
    padding-right: 1.5rem;
    margin-right: 0;
}

.nav-item:hover {
    background: var(--background-color);
    color: var(--text-color);
    /*transform: translateY(-2px);*/
}

.nav-item.active {
    background: var(--secondary-color);
    color: white;
    z-index: 2;
}

/* Slider Container */
.slider-container {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 2rem;
}

.slider-content {
    width: 70%;
    position: relative;
    padding-right: 2rem;
}

.contact-cta {
    width: 30%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    margin: auto 0;
}

.contact-cta h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.contact-cta p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.cta-button:hover {
    background-color: var(--accent-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 2% auto;
    padding: 1.5rem;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
}

.close-modal:hover {
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 0.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group h5 {
    font-size: 0.8rem;
    color: var(--light-gray);
    margin: 0.2rem 0;
    font-weight: normal;
}

input, textarea, select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: white;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.submit-button {
    width: 100%;
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.submit-button:hover {
    background-color: var(--accent-color);
}

.intro-text {
    margin-top: 2rem;
    font-size: 1.2rem;
    line-height: 1.6;
    position: absolute;
    bottom: 0rem;
    z-index: 3333;
    max-width: 1200px;
    margin: 0 auto;
}


#contact .modal-content {
    box-shadow: none;
    padding: 2rem 0;
}

#contact .close-modal {
    display: none;
}

#contact .modal-content {
    margin: 0;
    width: 100%;
    background: none;
} 

select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235F5E5D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1.2rem;
}

select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(232, 113, 98, 0.1);
}

select:hover {
    border-color: var(--secondary-color);
}

select option {
    padding: 0.8rem;
    font-size: 1rem;
} 

.smart-session-container {
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
}

.smart-session-container p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.section-title {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.smart-session-button {
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-family: var(--display-font);
    font-weight: 500;
}

.smart-session-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(226, 74, 55, 0.2);
} 

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}



.case-link {
    display: inline-block;
    color: #FF4B4B;
    text-decoration: none;
    margin-top: 10px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.case-link:hover {
    color: #cc3c3c;
}

.case-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 49%);
    overflow-y: auto;
}

.case-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 1000px;
    position: relative;
    border-radius: 8px;
}

.close-case-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-case-modal:hover {
    color: #FF4B4B;
}

.case-header {
    margin-bottom: 30px;
    text-align: center;
}

.case-header h2 {
    color: #333;
    margin-bottom: 20px;
}

.case-header img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.case-body {
    color: #333;
    line-height: 1.6;
}

.case-body h3 {
    color: #FF4B4B;
    margin: 20px 0 10px;
}

.case-body ul {
    list-style-type: none;
    padding-left: 0;
}

.case-body ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.case-body ul li:before {
    content: "•";
    color: #FF4B4B;
    position: absolute;
    left: 0;
    top: 0;
} 

.floating-contact-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #FF4B4B;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-contact-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.floating-contact-button svg {
    color: white;
    width: 28px;
    height: 28px;
} 

.language-selector {
    display: flex;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn i {
    font-size: 0.8rem;
    color: var(--text-color);
    transition: all var(--transition-speed);
}

.lang-btn:hover {
    opacity: 1;
    background: none;
    color: var(--secondary-color);
}

.lang-btn:hover i {
    color: var(--secondary-color);
}

.lang-btn.active {
    opacity: 1;
    color: var(--secondary-color);
    font-weight: 600;
}

.lang-btn.active i {
    color: var(--secondary-color);
}


/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    nav {
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .slide h2 {
        font-size: 2rem;
    }
    
    .slide p {
        font-size: 1.2rem;
    }
} 
@media (max-width: 768px) {
    header {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 1rem;
    }

    .logo {
        flex: 1;
    }

    .language-selector {
        order: 2;
        margin-left: 0;
    }

    nav {
        flex: 0 0 100%;
        order: 3;
        margin-top: 1rem;
    }

    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
} 

.partners-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-card {
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.partner-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.partner-info {
    padding: 1.2rem;
}

.partner-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-size: 1.15services-gridrem;
}

.partner-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.partner-link:hover {
    text-decoration: underline;
}

.partner-info p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.refereer-section {
    display: flex; 
    align-items: center; 
    gap: 3rem;
}


@media (max-width: 1024px) {
    .partners-grid {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .partners-grid {
        flex-direction: column;
        align-items: center;
    }

    .partner-card {
        width: 100%;
        max-width: 320px;
    }
} 

@media (max-width: 1024px) {
    .portfolio-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .portfolio-intro {
        position: relative;
        top: 0;
    }

    .portfolio-intro h2 {
        text-align: center;
    }

    .portfolio-column.offset {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        flex-direction: column;
    }

    .portfolio-column {
        gap: 1rem;
    }
}


/* Asegurar que los botones se vean bien en móvil */
@media (max-width: 768px) {
    .modal-content p {
        font-size: smaller;
    }
    .form-row {
        gap: 0rem;
    }
    .form-row .form-group {
        margin-bottom: 0.0rem;
    }
    .form-group {
        display: flex;
        gap: 10px;
        justify-content: space-between;
    }

    .refereer-section {
        flex-direction: column;
    }
    .slider {
        bottom: 1rem;
        margin-top: -2rem;
    }
    .slider h1 {
        font-size: 2.5rem;
        padding-top: 3.5rem;
    }

    .slider-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 0;
        padding: 0 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        bottom: 15rem;
    }
#ideas {
    padding-top: 3rem;
}
    .smart-session-container {
        padding: 0rem;
    }
    .nav-item {
        /* padding: 0.5rem 1.2rem; */
        margin: 0 -5px;
        min-width: 100px;
       margin: 0; 
       margin-right: -30px;

    }

    .nav-item:first-child {
        margin-left: 0;

    }

    .nav-item:last-child {
        margin-right: 0;
        clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-item:first-child,
    .nav-item:last-child {
        /* clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 100%, 0 100%); */
        /* padding: 0.5rem 1.5rem; */
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0.8rem;
    }
    
} 
/* Responsive adjustments */
@media (max-width: 768px) {
    .intro-text {
        font-size: 0.9rem;
        padding-left: 20px;
        padding-right: 20px;
        bottom: 1rem;
    }
    .slider-container {
        flex-direction: column;
    }

    .slider-content,
    .contact-cta {
        width: 100%;
        padding: 1rem;
    }

    .contact-cta {
        margin-top: 2rem;
    }

    /* hide h5 inside form-group */
    .form-group h5 {
        display: none;
    }

    .form-group input {
        max-width: 70%;
    }
} 

.hide{
    display: none;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 10000;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease-in-out;
}

.toast.success {
    background-color: #4CAF50;
}

.toast.error {
    background-color: #f44336;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.orange-circle {
    width: 24px;
    height: 24px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

.logo {
    display: flex;
    align-items: center;
}