@font-face {
    font-family: 'lol';
    src: url(Assets/Fonts/ClashDisplay-Semibold.otf);
}

@font-face {
    font-family: 'boo';
    src: url(Assets/Fonts/CamptonMedium.otf);
}


/* Variables de Color (Paleta Synthwave Suave / Pastel) */
:root {
    --color-dark: #120A1A;
    /* Fondo profundo, pero no negro absoluto */
    --color-background: #1B1226;
    --color-primary-light: #FF99AA;
    /* Rosado Pastel/Coral */
    --color-secondary-light: #ffffff;
    /* Cyan Suave */
    --color-accent-purple: #C899FF;
    /* Violeta Pastel */
    --color-text-light: #EFEFEF;
    --color-text-faded: #B0B0C0;
    --font-heading: 'lol';
    /* Más tecnológico */
    --font-body: 'boo';
    --transition-speed: 0.6s;
}

/* Estilos Base y Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-dark);
    color: var(--color-text-light);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    width: 100%;
    height: 100%;
}

/* Tipografía */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--color-primary-light);
    text-shadow: 0 0 5px rgba(255, 153, 170, 0.5);
    /* Efecto suave neón */
}

h1 {
    font-size: 3.8rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h2.section-title {
    text-align: center;
    font-size: 6rem;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.glass-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    transition: all ease-in-out .4s !important;
}

.glass-container:hover {
    box-shadow: 0 1px 30px 0 #ffbec9;
}

.glassHover:hover {
    box-shadow: 0 1px 10px 0 rgba(255, 255, 255, 0.358);
}


/* Botones (CTAs) - Estilo Liquid/Neón Suave */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 14px 35px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    transition: all 0.4s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent-purple));
    color: white;
    box-shadow: 0 5px 20px rgba(255, 153, 170, 0.4);
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 3px 30px rgba(255, 153, 170, 0.6);
    color: #120A1A;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-secondary-light);
    color: var(--color-secondary-light);
}

.btn-secondary:hover {
    background: var(--color-secondary-light);
    color: var(--color-dark);
    box-shadow: 0 0 15px var(--color-secondary-light);
}

/* --- PLACEHOLDERS DE IMAGEN CON ESTILO VISUAL --- */
.image-placeholder {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    background-size: cover;
    background-position: center;
}

/* Estilos de Placeholder Específicos */
.app-web-mockup {
    background: linear-gradient(135deg, #1f0c2a, #34123c);
    border-left: 5px solid var(--color-primary-light);
}

.ux-ui-wireframe {
    background: linear-gradient(135deg, #0c1f2a, #12343c);
    border-left: 5px solid var(--color-primary-light);
}

.cloud-servers {
    background: linear-gradient(135deg, #2a1f0c, #3c3412);
    border-left: 5px solid var(--color-primary-light);
}

.cloud-servers img {
    object-fit: cover;
}


/* Placeholder para la CTA (Usando una imagen local o un gradiente similar) */
.saas-team-placeholder {
    /* Si tienes una imagen de fondo, úsala aquí. Usamos un gradiente por defecto si la imagen falla */
    background: linear-gradient(135deg, #1f0c2a, #34123c);
    background-size: cover;
    min-height: 450px;
    height: 100%;
    margin-bottom: 0;
    border: none;
}

.saas-team-placeholder::after {
    content: '';
}

/* --- PLACEHOLDERS DE COLABORACIÓN --- */
.collab-image {
    height: 100px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-secondary-light);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    filter: brightness(0.8);
}

.collab-image img {
    object-fit: cover;
}


.dedicated-team {
    background: linear-gradient(135deg, #FF99AA, #1f0c2a);
}

.project-closed {
    background: linear-gradient(135deg, #99FFFF, #0c1f2a);
}

.consulting {
    background: linear-gradient(135deg, #C899FF, #2a1f0c);
}

/* --- BARRA DE NAVEGACIÓN --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: fixed;
    width: 90%;
    z-index: 1000;
    left: 50%;
    transform: translateX(-50%);
    /* Lo centra horizontalmente */
    margin-top: 1.5rem;
}

.logo {
    height: 3rem;
    width: auto;
    padding: 0;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-secondary-light);
    text-shadow: 0 0 8px rgba(153, 255, 255, 0.7);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav a {
    color: var(--color-text-light);
    margin-left: 30px;
    font-weight: 300;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav a:hover {
    color: var(--color-primary-light);
    text-shadow: 0 0 2px var(--color-primary-light);
}

/* Secciones Generales */
.section {
    padding: 120px 5%;
    min-height: 80vh;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-secondary-light));
    margin: 10px auto 0;
    border-radius: 2px;
}


/* --- SECCIÓN HERO (INICIO) --- */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: url(Assets/IMG/back.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 80px;
}

.hero-content {
    z-index: 2;
    max-width: 1000px;
}

.hero-content h1 {
    font-size: 4.5rem;
    border: var(--color-accent-purple) 3px solid;
    border-radius: 1rem;
    user-select: none;
    padding: 2rem;
}

.hero-content p {
    padding: 4rem 6.5rem;
    text-align: justify;
}

.liquid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 80%, rgba(153, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 153, 170, 0.15) 0%, transparent 40%);
    background-size: 150% 150%;
    animation: liquid-pan 40s linear infinite alternate;
    z-index: 1;
    opacity: 0.8;
    /* Parallax sutil */
    transform: translateZ(-1px) scale(2);
}

@keyframes liquid-pan {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

/* --- SECCIÓN MISIÓN/VISIÓN --- */
.mission {
    padding-top: 15rem;
    background-color: var(--color-background);
}
.titleMision{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.titleMision h1{
    font-size: 8rem;
    user-select: none;
}

.mission-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.mission-item {
    flex: 1;
    padding: 30px;
    border-left: 4px solid var(--color-accent-purple);
    transition: transform 0.4s, background-color 0.4s;
}

.mission-item:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--color-primary-light);
}

.item-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-secondary-light);
    opacity: 0.7;
    margin-bottom: 10px;
}

.mission-item h3 {
    color: var(--color-secondary-light);
    text-shadow: none;
    margin-bottom: 15px;
}

/* --- SECCIÓN: DIGITAL STATS (CONTADORES Y BURBUJAS) --- */
.digital-stats {
    background-color: var(--color-background);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 50px auto;
    position: relative;
    z-index: 2;
}

.stat-box {
    padding: 30px 15px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.stat-box:hover {
    background-color: rgba(200, 153, 255, 0.1);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--color-primary-light);
    text-shadow: 0 0 10px rgba(255, 153, 170, 0.7);
    margin-bottom: 5px;
    display: inline-block;
}

.stat-suffix {
    font-size: 1.5rem;
    color: var(--color-secondary-light);
    margin-left: 5px;
}

.stat-box p {
    color: var(--color-text-faded);
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Animación de Burbujas Liquid */
.liquid-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(153, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
    filter: blur(5px);
}

.bubble-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.bubble-2 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 15%;
    animation-delay: 5s;
    background: rgba(255, 153, 170, 0.1);
}

.bubble-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -50px) scale(1.05);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}


/* --- SECCIÓN SERVICIOS --- */
.service-cards-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.service-card {
    width: 350px;
    padding: 30px;
    background-color: rgba(27, 18, 38, 0.7);
    transition: all ease-in-out .4s !important;
}



/* --- SECCIÓN COMPETENCIAS (TABS VISUALES) --- */
.competencies {
    text-align: center;
    background-color: var(--color-dark);
}

.competencies-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto;
    align-items: flex-start;
}

.comp-tabs {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.comp-tab {
    width: 100%;
    padding: 20px 25px;
    margin-bottom: 10px;
    text-align: left;
    background: transparent;
    color: var(--color-text-faded);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 400;
    transition: all 0.3s ease-in-out;
    border-left: 4px solid transparent;
}

.comp-tab:hover {
    color: var(--color-text-light);
    background: rgba(255, 255, 255, 0.03);
}

.comp-tab.active {
    color: var(--color-secondary-light);
    font-weight: 600;
    background: rgba(153, 255, 255, 0.1);
    border-left: 4px solid var(--color-secondary-light);
    box-shadow: 0 0 15px rgba(153, 255, 255, 0.3);
}

.comp-content-area {
    text-align: left;
}

.comp-image-placeholder {
    height: 400px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #2c1a3b, #12343c);
    border: 2px solid var(--color-primary-light);
    transition: opacity 0.5s, transform 0.5s;
    overflow: hidden;
}

.comp-image-placeholder img {
    object-fit: cover;
}

/* Estilos adicionales de placeholder para tabs (se cambian por JS) */
.frontend-focus-mockup {
    background: linear-gradient(135deg, #FF99AA, #C899FF);
}

.backend-architecture-diagram {
    background: linear-gradient(135deg, #99FFFF, #3c3412);
}

.cloud-diagram-view {
    background: linear-gradient(135deg, #C899FF, #99FFFF);
}

.devops-pipeline-view {
    background: linear-gradient(135deg, #FF99AA, #1f0c2a);
}

.comp-detail h3 {
    color: var(--color-primary-light);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.comp-detail p {
    margin-bottom: 20px;
}


/* --- NUEVO: REDISEÑO CENTRAL (FOCUS AREA) --- */
.focus-area {
    background-color: var(--color-background);
}

.focus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    align-items: stretch;
}

/* 1. CTA Card (Izquierda) */
.cta-card {
    display: flex;
    background-color: var(--color-dark);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.cta-image-container {
    flex: 1;
}

.cta-image-container img {
    object-fit: cover;
    filter: brightness(0.5);
}


.cta-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: none;
    border-radius: 0 15px 15px 0;
    background: var(--color-background);
}

.service-tag {
    color: var(--color-accent-purple);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
}

.cta-content h2 {
    text-align: left;
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 15px;
}

.learn-more-link {
    color: var(--color-secondary-light);
    font-weight: 600;
    text-decoration: none;
    margin-top: 20px;
    transition: margin-left 0.3s;
}

.learn-more-link:hover {
    margin-left: 5px;
}

/* 2. Partners Section (Derecha) */
.partners-section {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--color-dark);
    /* Más oscuro para contraste */
}

.section-tag {
    color: var(--color-secondary-light);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.partners-text h2 {
    text-align: left;
    font-size: 3rem;
    margin-bottom: 15px;
}

.partners-text .section-subtitle {
    color: var(--color-text-faded);
    margin-bottom: 30px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.partner-logo {
    width: 18rem;
    height: 6.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, transform 0.3s;
    overflow: hidden;
    border: none;
    user-select: none;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-logo:hover {
    background: rgba(153, 255, 255, 0.1);
    transform: translateY(-5px);
}


/* --- SECCIÓN COLABORACIÓN (CARDS CON IMAGEN) --- */
.collab-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* Habilitar el salto de línea para responsive */
    margin-top: 40px;
}

.collab-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    padding: 0;
    text-align: center;
    transition: transform 0.4s;
    overflow: hidden;
}

.collab-card:hover {
    transform: translateY(-10px);
}

.collab-card h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.collab-card p {
    padding: 0 30px 30px;
    text-align: justify;
}


/* --- NUEVO: TESTIMONIOS (SLIDER DE CARDS) --- */
.testimonial-slider-container {
    max-width: 100%;
    overflow: hidden;
    padding: 0 50px;
}

.testimonial-slider {
    display: flex;
    width: fit-content;
    animation: slide-testimonials 30s linear infinite;
}

.testimonial-card {
    min-width: 350px;
    margin: 20px 20px;
    padding: 30px;
    border-radius: 15px;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.testimonial-card:hover {
    transform: scale(1.03);
    box-shadow: 0 1px 20px rgba(255, 255, 255, 0.4);
}

.quote-icon {
    font-size: 2rem;
    color: var(--color-primary-light);
    margin-bottom: 15px;
    display: block;
}

.testimonial-quote {
    font-style: italic;
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-secondary-light);
    display: block;
}

.testimonial-company {
    font-size: 0.9rem;
    color: var(--color-text-faded);
}

@keyframes slide-testimonials {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- SECCIÓN PROCESO  --- */
.process-steps-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    position: relative;
    padding-top: 60px;
}

.process-steps-container::before {
    content: '';
    position: absolute;
    top: 90px;
    left: 5%;
    right: 5%;
    height: 3px;
    background: linear-gradient(to right, var(--color-secondary-light), var(--color-primary-light));
    z-index: 1;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background-color: var(--color-dark);
    border: 3px solid var(--color-accent-purple);
    color: var(--color-secondary-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(200, 153, 255, 0.5);
    transition: all 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step:hover .step-icon {
    transform: rotateY(180deg);
    background-color: var(--color-accent-purple);
    color: var(--color-dark);
}

/* --- SECCIÓN FAQ (ACORDEÓN) --- */
.faq-container {
    max-width: 900px;
    margin: 40px auto;
}

.faq-item {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 10px;
}

.faq-question {
    width: 100%;
    padding: 20px;
    text-align: left;
    background: transparent;
    color: var(--color-secondary-light);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 600;
    transition: background-color 0.3s;
    border-bottom: 1px solid transparent;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    color: var(--color-text-faded);
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 10px 20px 120px;
}

.faq-item.active .faq-question {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-primary-light);
}

/* --- SECCIÓN CONTACTO --- */
.contact {
    text-align: center;
}

.contact-form {
    max-width: 650px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--color-text-light);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.4s, box-shadow 0.4s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 15px rgba(255, 153, 170, 0.5);
}

/* --- FOOTER COMPLETO --- */
.footer {
    background-color: var(--color-background);
    padding: 60px 5% 20px;
    border-top: 3px solid var(--color-accent-purple);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-about {
    height: 10rem;
    width: 16rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    color: var(--color-secondary-light);
    margin-bottom: 20px;
    text-shadow: none;
}

.footer-col p {
    color: var(--color-text-faded);
    font-size: 0.9rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li a {
    color: var(--color-text-faded);
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--color-primary-light);
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
    margin-right: 10px;
    margin-top: 15px;
    transition: background-color 0.3s, transform 0.3s;
}

.social-links a:hover {
    background-color: var(--color-secondary-light);
    color: var(--color-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-faded);
    font-size: 0.8rem;
}


/* --- ANIMACIONES GENERALES (REVEAL ON SCROLL) --- */

.reveal-fade-in,
.reveal-slide-left,
.reveal-slide-right,
.reveal-slide-up,
.fade-in-up,
.stat-box {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-slide-left {
    transform: translateX(-50px);
}

.reveal-slide-left.visible {
    transform: translateX(0);
}

.reveal-slide-right {
    transform: translateX(50px);
}

.reveal-slide-right.visible {
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

.delay-4 {
    transition-delay: 0.6s;
}


/* --- MEDIA QUERIES (RESPONSIVE DESIGN) --- */

/* Tablet (max-width 1024px) */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section {
        min-height: auto;
    }

    .process-steps-container {
        flex-wrap: wrap;
        justify-content: center;
        padding-top: 0;
    }

    .process-steps-container::before {
        display: none;
    }

    .process-step {
        width: 45%;
        margin-bottom: 40px;
    }

    .mission-grid,
    .stats-grid {
        flex-direction: column;
    }

    .mission-item,
    .stat-box {
        width: 100%;
        margin-bottom: 20px;
    }

    .competencies-container {
        grid-template-columns: 1fr;
    }

    .comp-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0;
        margin-bottom: 30px;
    }

    .comp-tab {
        flex: 1 1 45%;
        /* Dos por fila */
        margin: 5px;
    }

    /* Responsive Focus Area */
    .focus-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cta-card {
        flex-direction: column;
    }

    .cta-image-container {
        min-height: 300px;
    }

    .cta-content {
        border-radius: 0 0 15px 15px;
    }

    .partners-section {
        padding: 30px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móvil (max-width 600px) */
@media (max-width: 600px) {
    
    /* === AJUSTES DE HEADER Y MENÚ (Hamburguesa) === */
    .header {
        flex-direction: row; /* Volvemos a ponerlo en fila para separar logo y botón */
        justify-content: space-between;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0; /* Ajuste para que esté pegado a la izquierda */
        right: 0; /* Ajuste para que ocupe todo el ancho */
        transform: none; /* Elimina el translateX(-50%) */
        width: 100%;
        margin-top: 0;
        padding: 15px 5%;
        z-index: 1000;
        background-color: var(--color-dark); /* Fondo para ocultar el scroll */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        /* Ocultar y posicionar el menú lateral */
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; /* Oculto a la derecha */
        width: 75%;
        max-width: 320px;
        height: 100vh;
        padding: 80px 30px 20px;
        background: var(--color-dark);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -4px 0 15px rgba(0, 0, 0, 0.7);
        transition: right 0.4s ease-in-out;
        z-index: 999;
    }

    .nav.active {
        right: 0; /* Mostrar menú deslizando */
    }

    .nav a {
        margin-left: 0;
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Ajuste para el contenido que sigue al header fijo */
    .hero {
        padding-top: 100px; /* Suficiente espacio para el header fijo en móvil */
    }
    
    /* === AJUSTES DE TIPOGRAFÍA Y SECCIONES === */
    .hero h1 {
        font-size: 2.5rem; /* Ajuste más grande para título */
        padding: 1.5rem;
    }

    .hero-content p {
        padding: 2rem 1.5rem;
        text-align: center;
        font-size: 0.95rem;
    }

    .section {
        padding: 60px 5%;
    }

    h2.section-title {
        font-size: 3.5rem;
    }

    /* === CORRECCIÓN: CARDS DE COLABORACIÓN (Collab Cards) === */
    .collab-cards {
        flex-direction: column;
        align-items: center;
    }

    .collab-card {
        min-width: 90%;
        max-width: 100%; /* Permite que ocupe el ancho disponible */
        margin-bottom: 20px; /* Espacio entre cards */
    }
    
    /* === CORRECCIÓN: Contadores de Stats === */
    .stats-grid {
        grid-template-columns: 1fr; /* Una columna en móvil */
    }

    /* OTRAS SECCIONES */
    .service-card {
        min-width: 90%;
        max-width: 90%;
    }

    .process-step {
        width: 100%;
    }

    .comp-tab {
        flex: 1 1 100%;
    }

    .comp-image-placeholder {
        height: 250px;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .partners-section {
        text-align: center;
    }

    .partners-text h2 {
        text-align: center;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-slider-container {
        padding: 0 20px;
    }

    .testimonial-card {
        min-width: 90vw;
        margin: 15px 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4 {
        margin-top: 20px;
    }

    .footer-col ul li a {
        display: block;
        padding: 5px 0;
    }

    .footer-about {
        width: 100%;
    }
}


/* =========================================== */
/* === Estilos del Botón de Hamburguesa === */
/* =========================================== */

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--color-primary-light);
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    transition: color 0.3s, transform 0.3s;
}

.menu-toggle:hover {
    color: var(--color-secondary-light);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.menu-toggle .fa-times {
    color: var(--color-secondary-light);
}

/* Mostrar solo en móvil */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }
    /* Ocultar la navegación principal en tablet y móvil*/
    .header .nav {
        display: none;
    }
    .header{
        width: 95%;
        margin: 0 auto;
        top: 5px;
    }
}
/* Revertir el display de nav para el menú activo en la media query de 600px */
@media (max-width: 600px) {
    .header .nav {
        display: flex; /* Se necesita para el menú lateral */
    }
}   