/* Reset general para eliminar espacios en blanco y desbordamientos */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    position: relative;
}

main, header, footer, section, div {
    max-width: 100%;
}

:root {
    --white: #FFFFFF;
    --primary: #140064;
    --secondary: #392380;
    --dark: #1E1E1E;
    --accent: #3B8BFF;
    --dark-blue: #10014D;
    --orange: #EB8A35;
    --black: #000000;
    --orange-light: #F79034;
    --light-purple: #F7F4FF;
    --header-bg: #10014D;
    
    --font-primary: 'Baloo 2', cursive;
    --font-secondary: 'Baloo 2', cursive;
    
    --font-size-h1: 70px;        /* Banner título */
    --font-size-h2: 2.5rem;      
    --font-size-h3: 1.8rem;      
    --font-size-subtitle: 40px;   /* Banner subtítulo */
    --font-size-body: 1rem;      
    --font-size-small: 0.9rem;
    --font-size-nav: 18px;       /* Header navegación */
    --font-size-button: 20px;    /* Botón banner */
    
    --font-size-h1-mobile: 45px;
    --font-size-h2-mobile: 1.75rem;
    --font-size-h3-mobile: 1.4rem;
    --font-size-subtitle-mobile: 28px;
    --font-size-body-mobile: 1rem;
    --font-size-small-mobile: 0.85rem;
    --font-size-nav-mobile: 16px;
    --font-size-button-mobile: 18px;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark);
    font-size: var(--font-size-body);
}

/* Header y Navegación */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    transform: translateY(0);
}

/* Clase para cuando se hace scroll */
.header.scrolled {
    background: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Clase para ocultar el header al hacer scroll hacia abajo */
.header.header-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-size: var(--font-size-nav);
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
    opacity: 0.9;
}

.nav-links a:hover {
    color: var(--orange-light);
    opacity: 1;
}

.nav-links .cta-link {
    color: var(--orange-light);
    font-weight: 600;
    opacity: 1;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

/* Secciones principales */
main {
    margin-top: 0; /* Sin margen para que el banner ocupe toda la pantalla */
}

section {
    padding: 0; /* Eliminado el padding por defecto */
}

.hero {
    background: linear-gradient(135deg, #8076AA 1%, #36227D 49%, #0F0148 100%);
    color: var(--white);
    text-align: center;
    padding: 6rem 1rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Botones */
.cta-button {
    background-color: var(--orange-light);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* Grids */
.project-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Formulario de contacto con dos columnas */
.contact-section {
    background-color: var(--white);
    padding: 5rem 2rem;
    position: relative;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-titulo {
    color: var(--primary);
    font-size: 56px;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-subtitulo {
    color: var(--dark);
    font-size: 18px;
    text-align: center;
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.form-columns {
    display: flex;
    gap: 2rem;
    width: 100%;
}

.form-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form label {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    font-size: 1rem;
    font-family: var(--font-primary);
    background-color: transparent;
}

.contact-form textarea {
    min-height: 80px;
    resize: vertical;
    border: 1px solid var(--dark);
    border-radius: 16px;
    padding: 1rem;
    font-family: var(--font-primary);
    background-color: transparent;
    grid-column: 1 / -1;
    width: 100%;
}

.form-field.full-width {
    grid-column: 1 / -1;
    width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.form-submit {
    margin-top: 1rem;
    align-items: flex-start;
}

.submit-button {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

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

.contact-options {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.contact-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.contact-option p {
    font-size: 14px;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.contact-link {
    display: inline-block;
    text-decoration: none;
    color: var(--white);
    background-color: var(--orange-light);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.contact-link:hover {
    background-color: var(--orange);
}

.whatsapp-link {
    background-color: #25D366;
}

.whatsapp-link:hover {
    background-color: #128C7E;
}

/* Media queries para el formulario en móvil */
@media (max-width: 768px) {
    .form-columns {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-options {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-container {
        padding: 0 1rem;
    }
    
    .contact-titulo {
        font-size: 28px;
    }
    
    .contact-subtitulo {
        font-size: 16px;
        margin-bottom: 2rem;
    }
}

/* Footer */
.footer {
    background-color: #1D1D26;
    position: relative;
    overflow: hidden;
    padding: 80px 20px 40px;
}

.stars-container-footer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.footer-star-1 {
    top: 15%;
    left: 10%;
    width: 8px;
    height: 8px;
    animation: twinkle 3s infinite;
}

.footer-star-2 {
    top: 25%;
    left: 85%;
    width: 6px;
    height: 6px;
    animation: twinkle 4s infinite 1s;
}

.footer-star-3 {
    top: 60%;
    left: 40%;
    width: 10px;
    height: 10px;
    animation: twinkle 5s infinite 0.5s;
}

.footer-star-4 {
    top: 35%;
    left: 65%;
    width: 7px;
    height: 7px;
    animation: twinkle 4s infinite;
}

.footer-star-5 {
    top: 70%;
    left: 20%;
    width: 9px;
    height: 9px;
    animation: twinkle 5s infinite 1.5s;
}

.footer-star-6 {
    top: 50%;
    left: 90%;
    width: 6px;
    height: 6px;
    animation: twinkle 3s infinite 1s;
}

.footer-star-7 {
    top: 80%;
    left: 70%;
    width: 8px;
    height: 8px;
    animation: twinkle 4s infinite 2s;
}

.footer-star-8 {
    top: 10%;
    left: 30%;
    width: 7px;
    height: 7px;
    animation: twinkle 5s infinite 0.7s;
}

.footer-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    color: white;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin: 0 15px 30px;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    font-family: 'Baloo 2', cursive;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.footer-social-link:hover {
    background-color: #F7941D;
}

.footer-contact {
    margin-bottom: 20px;
}

.footer-contact-item {
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-email {
    position: relative;
}

.footer-email-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    display: none;
    width: fit-content;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 4px;
    bottom: -5px;
    left: 0;
    background-color: #F7941D;
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.footer-links a:hover {
    color: #F7941D;
}

.footer-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.footer-bottom {
    border-top: 0px solid rgba(255, 255, 255, 0.1);
    padding-top: -30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-copyright, .footer-credits {
    margin: 5px 0;
    font-size: 14px;
    opacity: 0.7;
}

.footer-credits a {
    color: #F7941D;
    text-decoration: none;
}

/* Media Queries para el footer en móvil */
@media (max-width: 768px) {
    .footer {
        padding: 60px 20px 30px;
    }
    
    .footer-columns {
        flex-direction: column;
    }
    
    .footer-column {
        margin-bottom: 40px;
    }
    
    .footer-email-link {
        font-size: 16px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Media Queries para móvil */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        height: 100vh;
        background: var(--header-bg);
        padding: 2rem;
        flex-direction: column;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-links a {
        color: var(--white);
        font-size: var(--font-size-nav-mobile);
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-toggle {
        display: block;
        z-index: 1002;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    section {
        padding: 0; /* Eliminado el padding para móvil */
    }

    h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .cta-button {
        width: 100%;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
    }

    .project-grid, .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-form {
        width: 100%;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 1rem;
        margin-bottom: 1rem;
        font-size: 1rem;
    }

    .contact-form textarea {
        min-height: 120px;
    }

    /* Overlay para el menú móvil */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .menu-overlay.active {
        display: block;
    }

    .logo img {
        max-height: 42px;
    }

    .astronaut {
        max-width: 180px;
        margin: 0 auto;
        display: inline-block;
    }
    
    .astronaut-container {
        bottom: -100px;
        left: 0;
        right: 0;
        margin: 0 auto;
        text-align: center;
    }

    .banner h1 {
        white-space: normal; /* Permitir saltos de línea en móvil */
    }
    
    .banner p {
        white-space: normal; /* Permitir saltos de línea en móvil */
    }

    .mision {
        padding: 3rem 1.5rem 0; /* Eliminado el padding inferior en móvil */
    }
    
    .que-hacemos {
        padding: 3rem 1.5rem 0; /* Eliminado el padding inferior en móvil */
    }
    
    .projects {
        padding-top: 2rem; /* Reducido el padding en móvil */
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 0;
        margin-top: 0;
    }
}

/* Optimización de imágenes */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mejoras de accesibilidad para móvil */
@media (max-width: 768px) {
    :focus {
        outline: 2px solid var(--orange-light);
        outline-offset: 2px;
    }

    button, a {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clases de animación */
.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.animate.fade-in {
    transform: translateY(0);
}

.animate.fade-in-left {
    transform: translateX(-50px);
}

.animate.fade-in-right {
    transform: translateX(50px);
}

.animate.fade-in-up {
    transform: translateY(50px);
}

.animate.scale-in {
    transform: scale(0.8);
}

.animate.slide-in-top {
    transform: translateY(-50px);
}

/* Clase para mostrar los elementos con animación */
.animate.visible, 
.header.animate,
.banner-content h1.animate,
.banner-content p.animate,
.banner-content .cta-button.animate,
.astronaut-container.animate,
.nav-links a.animate {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* SÓLO activar automáticamente la sección del banner y header */
.header.animate,
.banner-content h1.animate,
.banner-content p.animate,
.banner-content .cta-button.animate,
.astronaut-container.animate,
.nav-links a.animate {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* El resto de elementos deben esperar al scroll */
.clients-header.animate,
.clients-slider.animate,
.mision-titulo.animate,
.mision-descripcion.animate,
.mision-cta.animate,
.stat-card.animate,
.que-hacemos-titulo.animate,
.que-hacemos-subtitulo.animate,
.flip-card.animate,
.projects h2.animate,
.project-grid.animate,
.methodology h2.animate,
.contact h2.animate,
.contact-form.animate,
.footer-content.animate {
    opacity: 0;
    transform: translateY(50px);
}

.clients-header.animate.visible,
.clients-slider.animate.visible,
.mision-titulo.animate.visible,
.mision-descripcion.animate.visible,
.mision-cta.animate.visible,
.stat-card.animate.visible,
.que-hacemos-titulo.animate.visible,
.que-hacemos-subtitulo.animate.visible,
.flip-card.animate.visible,
.projects h2.animate.visible,
.project-grid.animate.visible,
.methodology h2.animate.visible,
.contact h2.animate.visible,
.contact-form.animate.visible,
.footer-content.animate.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Retrasos de animación */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-800 {
    animation-delay: 0.8s;
}

.delay-1000 {
    animation-delay: 1s;
}

/* Banner */
.banner {
    position: relative;
    height: 100vh;
    width: 100%;
    background: url('assets/Fondo_banner_principal.svg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: visible;
    padding-top: 80px; /* Para compensar el header */
}

.banner-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
    padding: 0 2rem;
    margin-bottom: 110px; /* Aumentado a 110px para mover el contenido un total de 60px hacia arriba */
}

.banner h1 {
    font-size: var(--font-size-h1);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    white-space: nowrap;
}

.banner p {
    font-size: var(--font-size-subtitle);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.3;
    font-weight: 500;
    white-space: nowrap;
}

.banner .cta-button {
    background-color: var(--orange-light);
    color: var(--white);
    border: none;
    padding: 0.9rem 2rem;
    font-size: var(--font-size-button);
    font-weight: 600;
    border-radius: 5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-bottom: 30px; /* Espacio adicional después del botón */
}

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

/* Astronauta */
.astronaut-container {
    position: absolute;
    bottom: -150px;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 10;
    animation: float 8s ease-in-out infinite;
    text-align: center;
}

.astronaut {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    margin: 0 auto;
    display: inline-block;
}

/* Estrellas */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.7);
}

.star-1 {
    top: 15%;
    left: 10%;
    animation: twinkle 3s ease-in-out infinite;
}

.star-2 {
    top: 25%;
    left: 85%;
    width: 5px;
    height: 5px;
    animation: twinkle 2.5s ease-in-out infinite 0.3s;
}

.star-3 {
    top: 60%;
    left: 20%;
    width: 6px;
    height: 6px;
    animation: twinkle 4s ease-in-out infinite 0.5s;
}

.star-4 {
    top: 40%;
    left: 75%;
    animation: twinkle 3.5s ease-in-out infinite 0.7s;
}

.star-5 {
    top: 80%;
    left: 50%;
    width: 5px;
    height: 5px;
    animation: twinkle 2.8s ease-in-out infinite;
}

.star-6 {
    top: 10%;
    left: 40%;
    animation: twinkle 3.2s ease-in-out infinite 1s;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Media queries para el banner en móvil */
@media (max-width: 768px) {
    .banner {
        height: 90vh;
        background-position: center center;
        overflow: visible;
    }

    .banner .cta-button {
        width: 80%;
        max-width: 280px;
        font-size: var(--font-size-button-mobile);
    }
    
    .astronaut {
        max-width: 180px;
        margin: 0 auto;
        display: inline-block;
    }
    
    .astronaut-container {
        bottom: -100px;
        left: 0;
        right: 0;
        margin: 0 auto;
        text-align: center;
    }
}

/* Estilos para secciones */
.section-content {
    padding: 0;
    margin: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.section-spacing {
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Estrellas adicionales */
.star-7 {
    top: 30%;
    left: 60%;
    width: 3px;
    height: 3px;
    animation: twinkle 3.7s ease-in-out infinite 0.2s;
}

.star-8 {
    top: 70%;
    left: 30%;
    animation: twinkle 2.9s ease-in-out infinite 0.4s;
}

.star-9 {
    top: 20%;
    left: 70%;
    width: 6px;
    height: 6px;
    animation: twinkle 4.2s ease-in-out infinite 0.6s;
}

.star-10 {
    top: 85%;
    left: 15%;
    width: 5px;
    height: 5px;
    animation: twinkle 3.3s ease-in-out infinite 0.8s;
}

.star-11 {
    top: 15%;
    left: 45%;
    animation: twinkle 3.8s ease-in-out infinite 1.2s;
}

.star-12 {
    top: 55%;
    left: 90%;
    width: 4px;
    height: 4px;
    animation: twinkle 2.6s ease-in-out infinite 1.5s;
}

/* Media queries para secciones en móvil */
@media (max-width: 768px) {
    .section-spacing {
        padding-top: 80px; /* Ajuste para móvil */
    }
}

/* Estilos Tipográficos */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: var(--font-size-h1);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: var(--font-size-h2);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: var(--font-size-h3);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-family: var(--font-primary);
    font-size: var(--font-size-body);
}

.subtitle {
    font-size: var(--font-size-subtitle);
    font-weight: 500;
    margin-bottom: 2rem;
}

.small-text {
    font-size: var(--font-size-small);
}

/* Media queries para tipografía móvil */
@media (max-width: 768px) {
    h1 {
        font-size: var(--font-size-h1-mobile);
    }
    
    h2 {
        font-size: var(--font-size-h2-mobile);
    }
    
    h3 {
        font-size: var(--font-size-h3-mobile);
    }
    
    .subtitle {
        font-size: var(--font-size-subtitle-mobile);
    }
    
    .banner h1 {
        font-size: var(--font-size-h1-mobile);
    }
    
    .banner p {
        font-size: var(--font-size-subtitle-mobile);
        padding: 0 1rem;
    }
}

/* Sección de Clientes */
.clients {
    display: flex;
    padding: 0;
    margin: 0; /* Asegurar que no haya margen */
    overflow: hidden;
    background-color: var(--white);
    position: relative;
    border-top: 1px solid #EB8A35; /* Solo borde superior */
    border-bottom: 1px solid #EB8A35; /* Solo borde inferior */
    border-left: 1px solid #EB8A35; /* Solo borde izquierdo */
    z-index: 20; /* Mayor que el z-index del astronauta (10) */
}

.clients-header {
    width: 28%;
    min-width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--orange-light);
    padding: 3rem 2rem;
    color: var(--white);
    z-index: 2;
    box-shadow: none; /* Eliminado el sombreado */
}

.clients-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.clients-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 2.5rem 0;
}

.clients-track {
    display: flex;
    align-items: center;
    width: fit-content;
    animation: marquee 40s linear infinite;
}

.clients-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-logo {
    flex: 0 0 auto;
    margin: 0 3rem;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 25; /* Para asegurar que sean clicables */
}

.client-link {
    display: block;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 25; /* Para asegurar que sean clicables */
}

.client-link:hover {
    transform: scale(1.15);
}

.client-logo img {
    height: 65px;
    width: auto;
    object-fit: contain;
    filter: none; /* Eliminado el grayscale */
    opacity: 1; /* Opacidad completa */
    transition: transform 0.3s ease;
}

.client-logo:hover img {
    filter: none;
    opacity: 1;
}

/* Media queries para sección de clientes */
@media (max-width: 768px) {
    .clients {
        flex-direction: column;
        margin-top: 0; /* Mantener coherencia en móvil */
    }
    
    .clients-header {
        width: 100%;
        min-width: unset;
        padding: 1.5rem 2rem;
    }
    
    .clients-track {
        animation: marquee 25s linear infinite;
        padding: 0 1rem;
    }
    
    .client-logo {
        margin: 0 1.5rem;
    }
    
    .client-logo img {
        height: 45px;
    }
}

/* Sección de Misión */
.mision {
    padding: 4rem 2rem 0;
    margin-bottom: 120px;
    background-color: var(--white);
    text-align: center;
    position: relative;
}

.mision-container {
    max-width: 1000px;
    margin: 0 auto;
}

.mision-titulo {
    color: var(--primary);
    font-size: 44px;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.mision-descripcion {
    color: var(--dark);
    font-size: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.mision-cta {
    display: inline-block;
    background-color: var(--orange-light);
    color: var(--white);
    font-weight: 600;
    font-size: 20px;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: background-color 0.3s ease;
}

.mision-cta:hover {
    background-color: var(--orange);
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 0;
    padding-bottom: 0;
}

.stat-card {
    background-color: var(--light-purple);
    border-radius: 12px;
    padding: 2rem 3rem;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-numero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.stat-numero {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.stat-icono {
    width: 42px;
    height: 42px;
}

.stat-texto {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary);
    line-height: 1.3;
}

/* Media queries para la sección de misión */
@media (max-width: 768px) {
    .mision {
        padding: 3rem 1.5rem 0; /* Eliminado el padding inferior en móvil */
    }
    
    .mision-titulo {
        font-size: 32px;
    }
    
    .mision-descripcion {
        font-size: 18px;
        padding: 0 1rem;
    }
    
    .mision-cta {
        font-size: 18px;
        padding: 0.7rem 2rem;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .stat-card {
        width: 100%;
        max-width: 320px;
        min-width: auto;
        padding: 1.5rem;
    }
    
    .stat-numero {
        font-size: 3rem;
    }
    
    .stat-icono {
        width: 36px;
        height: 36px;
    }
    
    .stat-texto {
        font-size: 1.3rem;
    }
}

/* Sección Qué Hacemos */
.que-hacemos {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 120px;
    background-color: var(--light-purple);
    text-align: center;
    position: relative;
}

.que-hacemos-container {
    max-width: 1200px;
    margin: 0 auto;
}

.que-hacemos-titulo {
    color: var(--primary);
    font-size: 56px;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.que-hacemos-subtitulo {
    color: var(--dark);
    font-size: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.cards-container {
    margin-bottom: 0;
    padding-bottom: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Tarjetas con efecto de volteo */
.flip-card {
    background-color: transparent;
    width: 320px;
    height: 380px;
    perspective: 1000px;
    margin-bottom: 0;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.flip-card-front {
    background-position: center;
    background-size: cover;
    color: white;
}

.flip-card-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Colores de fondo para las tarjetas */
.purple-card {
    background-color: var(--primary);
    background-image: url('assets/icons/innovacion-bg.svg');
    background-repeat: no-repeat;
    background-position: center right;
}

.orange-card {
    background-color: var(--orange-light);
    background-image: url('assets/icons/growth-bg.svg');
    background-repeat: no-repeat;
    background-position: center right;
}

.blue-card {
    background-color: var(--accent);
    background-image: url('assets/icons/pensamiento-bg.svg');
    background-repeat: no-repeat;
    background-position: center right;
}

/* Contenido de las tarjetas */
.card-titulo {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 0;
    margin-top: 1rem;
    text-align: left;
    line-height: 1.2;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    margin-top: auto;
}

.tag {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
}

.card-descripcion {
    font-size: 20px;
    line-height: 1.6;
    text-align: left;
}

/* Media queries para la sección Qué Hacemos */
@media (max-width: 768px) {
    .que-hacemos {
        padding: 3rem 1.5rem 0; /* Eliminado el padding inferior en móvil */
    }
    
    .que-hacemos-titulo {
        font-size: 36px;
    }
    
    .que-hacemos-subtitulo {
        font-size: 18px;
    }
    
    .cards-container {
        flex-direction: column;
        align-items: center;
    }
    
    .flip-card {
        width: 100%;
        max-width: 320px;
        height: 350px;
    }
    
    .card-titulo {
        font-size: 28px;
    }
    
    .tag {
        font-size: 16px;
    }
    
    .card-descripcion {
        font-size: 18px;
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    50% {
        transform: translateY(-20px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-1deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes twinkle {
    0% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
}

/* Estilos del Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8076AA 1%, #36227D 49%, #0F0148 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.preloader-hidden {
    opacity: 0;
    pointer-events: none;
}

.stars-container-preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.preloader-star-1 {
    top: 10%;
    left: 15%;
    animation: twinkle 3.6s ease-in-out infinite;
}

.preloader-star-2 {
    top: 25%;
    left: 80%;
    width: 5px;
    height: 5px;
    animation: twinkle 4.2s ease-in-out infinite 0.4s;
}

.preloader-star-3 {
    top: 70%;
    left: 25%;
    width: 6px;
    height: 6px;
    animation: twinkle 3.8s ease-in-out infinite 0.7s;
}

.preloader-star-4 {
    top: 35%;
    left: 70%;
    animation: twinkle 3s ease-in-out infinite 0.2s;
}

.preloader-star-5 {
    top: 85%;
    left: 55%;
    width: 5px;
    height: 5px;
    animation: twinkle 3.4s ease-in-out infinite 0.5s;
}

.preloader-star-6 {
    top: 15%;
    left: 45%;
    animation: twinkle 3.7s ease-in-out infinite 0.9s;
}

.preloader-star-7 {
    top: 60%;
    left: 85%;
    width: 4px;
    height: 4px;
    animation: twinkle 2.9s ease-in-out infinite 0.3s;
}

.preloader-star-8 {
    top: 40%;
    left: 10%;
    width: 5px;
    height: 5px;
    animation: twinkle 3.5s ease-in-out infinite 0.6s;
}

.preloader-astronaut {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.rotating-astronaut {
    width: 100%;
    height: auto;
    animation: rotate360 3s linear infinite;
}

@keyframes rotate360 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Antiguo spinner (mantenido por compatibilidad) */
.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid var(--orange-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para animaciones */
.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.animate.fade-in {
    transform: translateY(0);
}

.animate.fade-in-left {
    transform: translateX(-50px);
}

.animate.fade-in-right {
    transform: translateX(50px);
}

.animate.fade-in-up {
    transform: translateY(50px);
}

.animate.scale-in {
    transform: scale(0.8);
}

.animate.slide-in-top {
    transform: translateY(-50px);
}

/* Clase para mostrar los elementos con animación */
.animate.visible, 
.header.animate,
.banner-content h1.animate,
.banner-content p.animate,
.banner-content .cta-button.animate,
.astronaut-container.animate,
.nav-links a.animate {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* SÓLO activar automáticamente la sección del banner y header */
.header.animate,
.banner-content h1.animate,
.banner-content p.animate,
.banner-content .cta-button.animate,
.astronaut-container.animate,
.nav-links a.animate {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* El resto de elementos deben esperar al scroll */
.clients-header.animate,
.clients-slider.animate,
.mision-titulo.animate,
.mision-descripcion.animate,
.mision-cta.animate,
.stat-card.animate,
.que-hacemos-titulo.animate,
.que-hacemos-subtitulo.animate,
.flip-card.animate,
.projects h2.animate,
.project-grid.animate,
.methodology h2.animate,
.contact h2.animate,
.contact-form.animate,
.footer-content.animate {
    opacity: 0;
    transform: translateY(50px);
}

.clients-header.animate.visible,
.clients-slider.animate.visible,
.mision-titulo.animate.visible,
.mision-descripcion.animate.visible,
.mision-cta.animate.visible,
.stat-card.animate.visible,
.que-hacemos-titulo.animate.visible,
.que-hacemos-subtitulo.animate.visible,
.flip-card.animate.visible,
.projects h2.animate.visible,
.project-grid.animate.visible,
.methodology h2.animate.visible,
.contact h2.animate.visible,
.contact-form.animate.visible,
.footer-content.animate.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Aplicar retrasos de animación */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

.delay-600 {
    transition-delay: 0.6s;
}

.delay-800 {
    transition-delay: 0.8s;
}

.delay-1000 {
    transition-delay: 1s;
}

.animated {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
    margin-top: 0;
    margin-bottom: 0;
}

.animated.animate-active {
    opacity: 1;
    transform: translateY(0);
}

/* Sección de Proyectos */
.projects {
    position: relative;
    padding: 0 2rem; /* Eliminado padding superior e inferior */
    margin: 0; /* Eliminado todo margen */
    background: url('assets/Fondo_nuestros_proyectos.svg') center/cover no-repeat, #F7F4FF;
    color: var(--white);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Estrellas en la sección de proyectos */
.stars-container-projects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.project-star-1 {
    top: 10%;
    left: 15%;
    animation: twinkle 3.6s ease-in-out infinite;
}

.project-star-2 {
    top: 25%;
    left: 80%;
    width: 5px;
    height: 5px;
    animation: twinkle 4.2s ease-in-out infinite 0.4s;
}

.project-star-3 {
    top: 70%;
    left: 25%;
    width: 6px;
    height: 6px;
    animation: twinkle 3.8s ease-in-out infinite 0.7s;
}

.project-star-4 {
    top: 35%;
    left: 70%;
    animation: twinkle 3s ease-in-out infinite 0.2s;
}

.project-star-5 {
    top: 85%;
    left: 55%;
    width: 5px;
    height: 5px;
    animation: twinkle 3.4s ease-in-out infinite 0.5s;
}

.project-star-6 {
    top: 15%;
    left: 45%;
    animation: twinkle 3.7s ease-in-out infinite 0.9s;
}

.project-star-7 {
    top: 60%;
    left: 85%;
    width: 4px;
    height: 4px;
    animation: twinkle 2.9s ease-in-out infinite 0.3s;
}

.project-star-8 {
    top: 40%;
    left: 10%;
    width: 5px;
    height: 5px;
    animation: twinkle 3.5s ease-in-out infinite 0.6s;
}

.projects-title {
    font-size: 56px;
    font-weight: 900;
    text-align: center;
    margin-top: 2rem; /* Ajustado para dar espacio interno, no entre secciones */
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

/* Slider de proyectos */
.project-slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.project-slider {
    position: relative;
    width: 90%;
    max-width: 1000px;
    overflow: hidden;
}

.project-slide {
    display: none;
    flex-direction: column;
    background-color: rgba(20, 0, 100, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-slide.active {
    display: flex;
}

.project-video-container {
    width: 100%;
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.project-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 2rem;
    position: relative;
}

.project-metadata {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.project-client, .project-date {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.project-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.project-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Flechas del slider */
.slider-arrow {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 3;
    margin: 0 15px;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-arrow:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--orange-light);
}

/* Indicadores de posición */
.project-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 0;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.project-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.project-dot.active {
    background-color: var(--white);
}

/* Media queries para sección de proyectos */
@media (max-width: 768px) {
    .projects {
        padding: 0 1rem; /* Eliminado todos los paddings excepto laterales */
        margin: 0;
    }
    
    .projects-title {
        margin-top: 2rem;
        margin-bottom: 2rem;
        font-size: 36px;
    }
    
    .project-slider-container {
        flex-direction: column;
    }
    
    .slider-arrow {
        margin: 1rem 0;
        transform: rotate(90deg);
    }
    
    .prev-arrow {
        order: 3;
    }
    
    .project-slider {
        order: 2;
        width: 100%;
    }
    
    .next-arrow {
        order: 1;
    }
    
    .project-name {
        font-size: 20px;
    }
    
    .project-client, .project-date {
        font-size: 14px;
    }
    
    .project-description {
        font-size: 13px;
    }
}

/* Sección de Metodología */
.methodology {
    background-color: var(--light-purple);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.methodology-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.methodology-titulo {
    color: var(--primary);
    font-size: 56px;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.methodology-subtitulo {
    color: var(--dark);
    font-size: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.methodology-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.methodology-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-template-areas: "number content";
    background-color: var(--light-purple);
    border-radius: 10px;
    padding: 2rem 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.methodology-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.methodology-step::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: var(--orange-light);
    border-radius: 10px 0 0 10px;
}

.step-number {
    font-size: 40px;
    font-weight: 800;
    color: var(--orange-light);
    line-height: 1;
    margin-bottom: 1rem;
    grid-area: number;
}

.step-content {
    flex: 1;
    grid-area: content;
}

.step-title {
    font-size: 24px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-description {
    font-size: 16px;
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.step-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem 2rem;
}

.step-list li {
    position: relative;
    padding-left: 25px;
    font-size: 15px;
    color: var(--dark);
}

.step-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--orange);
    border-radius: 50%;
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.methodology-cta {
    margin-top: 4rem;
}

.methodology-button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 18px;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.methodology-button:hover {
    background-color: var(--orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(235, 138, 53, 0.3);
}

/* Metodología en escala de pasos alternados */
.methodology-step:nth-child(even) {
    grid-template-columns: 80px 1fr;
    grid-template-areas: "number content";
}

.methodology-step:nth-child(odd) {
    grid-template-columns: 80px 1fr;
    grid-template-areas: "number content";
    background-color: var(--white);
}

.methodology-step:nth-child(even) .step-number {
    grid-area: number;
}

.methodology-step:nth-child(even) .step-content {
    grid-area: content;
}

.methodology-step:nth-child(odd) .step-number {
    grid-area: number;
}

.methodology-step:nth-child(odd) .step-content {
    grid-area: content;
}

/* Media queries para sección de Metodología en móvil */
@media (max-width: 768px) {
    .methodology {
        padding: 4rem 1.5rem;
    }
    
    .methodology-titulo {
        font-size: 36px;
    }
    
    .methodology-subtitulo {
        font-size: 18px;
        margin-bottom: 3rem;
    }
    
    .methodology-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .methodology-step {
        padding: 1.5rem;
    }
    
    .step-number {
        font-size: 32px;
        text-align: left;
    }
    
    .step-icon {
        justify-content: flex-start;
    }
    
    .step-title {
        font-size: 22px;
    }
    
    .step-description {
        font-size: 15px;
    }
    
    .step-list {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        max-width: 100%;
        margin: 0;
        text-align: left;
    }
    
    .methodology-button {
        width: 100%;
        font-size: 16px;
        padding: 0.9rem 1.5rem;
    }
}

/* Sección de Digitianutas (Equipo) */
.digitianutas-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.digitianutas-titulo {
    color: var(--primary);
    font-size: 56px;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.digitianutas-subtitulo {
    color: var(--dark);
    font-size: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.team-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.team-image-container {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image {
    transform: scale(1.05);
}

.team-info {
    padding: 1.8rem;
    text-align: left;
}

.team-name {
    font-size: 24px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.team-role {
    font-size: 16px;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 15px;
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.team-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--light-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    position: relative;
}

.social-link::before {
    content: "";
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.social-link.linkedin::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23140064'%3E%3Cpath d='M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z'/%3E%3C/svg%3E");
}

.social-link.twitter::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23140064'%3E%3Cpath d='M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z'/%3E%3C/svg%3E");
}

.social-link.github::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23140064'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12c0 4.42 2.87 8.17 6.84 9.49.5.09.68-.22.68-.49 0-.24-.01-1.02-.01-1.86-2.78.6-3.37-1.19-3.37-1.19-.46-1.16-1.11-1.47-1.11-1.47-.91-.62.07-.61.07-.61 1.01.07 1.53 1.03 1.53 1.03.9 1.53 2.35 1.09 2.92.83.09-.65.35-1.09.63-1.34-2.22-.25-4.55-1.11-4.55-4.94 0-1.09.39-1.98 1.03-2.68-.1-.25-.45-1.27.1-2.64 0 0 .84-.27 2.75 1.02.8-.22 1.65-.33 2.5-.33.85 0 1.7.11 2.5.33 1.91-1.29 2.75-1.02 2.75-1.02.55 1.37.2 2.39.1 2.64.64.7 1.03 1.59 1.03 2.68 0 3.84-2.34 4.68-4.57 4.92.36.31.68.92.68 1.85l-.01 2.75c0 .26.18.58.69.48A10.02 10.02 0 0 0 22 12c0-5.52-4.48-10-10-10z'/%3E%3C/svg%3E");
}

.social-link.dribbble::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23140064'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5.23 4.77c1.52 1.84 2.43 4.18 2.47 6.73-.36-.07-2.46-.5-4.71-.22-.05-.12-.1-.24-.15-.36-.14-.37-.31-.72-.48-1.07 2.68-1.1 3.9-2.66 4.13-2.77-.33-.3-1.39-1.69-4.14-1.69-2.4 0-4.4 1.73-4.71 4.02-1.14-.46-2.23-1.04-3.27-1.74.77-1.33 1.82-2.12 2.92-2.3.1-.02.2-.03.3-.03.84 0 1.54.44 1.84.77.35.38.53.84.63 1.27-2.31.99-3.03 3.03-3.22 4.25.72.14 1.82.3 3.18.3 1.36 0 2.72-.16 4.1-.47.27.92.42 1.89.42 2.91 0 5.52-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2s10 4.48 10 10c0 .38-.04.75-.08 1.12-1.41-.47-3.11-.83-5.03-.83s-4.1.36-5.03.83c-.08-.73-.08-1.54-.08-2.32 0-2.95 1.95-4.42 3.64-4.42 1.6 0 2.95 1.18 3.21 2.53.51-.1 1.01-.15 1.52-.15 3.03 0 4.57 1.8 4.57 2.79 0 .45-.81 2.11-4.15 3.4-.15-.59-.36-1.17-.64-1.73 2.04-.65 3.1-1.51 3.43-1.97-.19-.13-1.01-.8-3.43-.8-1.55 0-3.1.32-4.57.94-.31-.63-.67-1.24-1.08-1.82 1.91-.57 3.79-.9 5.65-.9 1.19 0 2.32.12 3.37.35-.04-2.28-.93-4.35-2.4-5.92z'/%3E%3C/svg%3E");
}

.social-link:hover {
    background-color: var(--orange-light);
}

.social-link:hover::before {
    filter: brightness(10);
}

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

.team-button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 18px;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-button:hover {
    background-color: var(--orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(235, 138, 53, 0.3);
}

/* Media queries para sección de Digitianutas en móvil */
@media (max-width: 768px) {
    .digitianutas-container {
        padding: 3rem 1.5rem;
    }
    
    .digitianutas-titulo {
        font-size: 36px;
    }
    
    .digitianutas-subtitulo {
        font-size: 18px;
        margin-bottom: 3rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-image-container {
        height: 240px;
    }
    
    .team-name {
        font-size: 22px;
    }
    
    .team-role {
        font-size: 15px;
    }
    
    .team-bio {
        font-size: 14px;
    }
    
    .team-button {
        width: 100%;
        font-size: 16px;
        padding: 0.9rem 1.5rem;
    }
} 

/* Sección de Testimonios */
.testimonios {
    position: relative;
    padding: 6rem 2rem;
    margin: 0;
    background: url('assets/Fondo_testimonios.svg') center/cover no-repeat, linear-gradient(135deg, #8076AA 1%, #36227D 49%, #0F0148 100%);
    color: var(--white);
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Estrellas en la sección de testimonios */
.stars-container-testimonios {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.testimony-star-1 {
    top: 10%;
    left: 15%;
    animation: twinkle 3.6s ease-in-out infinite;
}

.testimony-star-2 {
    top: 25%;
    left: 80%;
    width: 5px;
    height: 5px;
    animation: twinkle 4.2s ease-in-out infinite 0.4s;
}

.testimony-star-3 {
    top: 70%;
    left: 25%;
    width: 6px;
    height: 6px;
    animation: twinkle 3.8s ease-in-out infinite 0.7s;
}

.testimony-star-4 {
    top: 35%;
    left: 70%;
    animation: twinkle 3s ease-in-out infinite 0.2s;
}

.testimony-star-5 {
    top: 85%;
    left: 55%;
    width: 5px;
    height: 5px;
    animation: twinkle 3.4s ease-in-out infinite 0.5s;
}

.testimony-star-6 {
    top: 15%;
    left: 45%;
    animation: twinkle 3.7s ease-in-out infinite 0.9s;
}

.testimonios-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.testimonios-titulo {
    font-size: 56px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
}

/* Slider de testimonios */
.testimonios-slider-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonios-slider {
    position: relative;
    width: 90%;
    max-width: 800px;
    overflow: hidden;
}

.testimonio-slide {
    display: none;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.testimonio-slide.active {
    display: block;
}

.testimonio-contenido {
    padding: 2.5rem;
}

.testimonio-texto {
    margin-bottom: 1.5rem;
}

.testimonio-texto p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--dark);
    font-style: italic;
}

.testimonio-autor {
    display: flex;
    align-items: center;
}

.testimonio-foto {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 1rem;
}

.testimonio-info {
    flex: 1;
}

.testimonio-nombre {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.testimonio-cargo {
    font-size: 16px;
    color: var(--dark);
    opacity: 0.8;
}

/* Flechas del slider */
.prev-testimony-arrow, .next-testimony-arrow {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

/* Puntos de navegación del slider */
.testimonios-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.testimonio-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.testimonio-dot.active {
    background-color: var(--white);
    transform: scale(1.2);
}

/* Media queries para la sección de testimonios en móvil */
@media (max-width: 768px) {
    .testimonios {
        padding: 4rem 1.5rem;
    }
    
    .testimonios-titulo {
        font-size: 32px;
        margin-bottom: 2rem;
    }
    
    .testimonio-texto p {
        font-size: 16px;
    }
    
    .testimonio-contenido {
        padding: 1.5rem;
    }
    
    .testimonio-foto {
        width: 50px;
        height: 50px;
    }
    
    .testimonio-nombre {
        font-size: 16px;
    }
    
    .testimonio-cargo {
        font-size: 14px;
    }
}