/* 1. RESET GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #111111;
    line-height: 1.5;
padding-top: 80px;
}

/* 2. CONTENEDOR PARA EVITAR QUE SE ESTIRE DEMASIADO */
.container {
    max-width: 1280px; /* Limita el ancho en pantallas grandes */
    margin: 0 auto;    /* Centra todo el contenido */
    padding: 0 20px;   /* Margen a los lados en celulares */
}

/* 3. NAVBAR (ARREGLADA) */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    border-bottom: 1px solid #eee;
    height: 80px;
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-menu a:hover {
    color: #6b1fb3;        /* Morado al pasar el mouse */
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

/* GRUPOS */
.nav-left { display: flex; align-items: center; gap: 15px; }
.nav-right { display: flex; align-items: center; gap: 20px; }

/* MENÚ PC */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icon { color: #0077b5; font-size: 1.2rem; }

/* BOTONES */
.btn-purple {
    background-color: #c494e1;
    color: black;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap; /* Evita que el texto se rompa en dos líneas */
}

/* 4. HERO CARD (EL CONTENEDOR GRIS) */
.hero-section {
    padding: 40px 0;
}

.hero-card {
    background-color: #f3f4f6;
    border-radius: 30px;
    display: grid; /* Cambiamos flex por grid para mejor control */
    grid-template-columns: 1.2fr 0.8fr; /* El texto es 1.2 y la imagen 0.8 */
    overflow: hidden;
    min-height: 500px;
    align-items: center;
}

.hero-text {
    flex: 1;
    padding: 60px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 30px;
}

.hero-image {
    height: 100%;
    display: flex;
    justify-content: center; /* Centra la imagen horizontalmente */
    align-items: center;     /* Centra la imagen verticalmente */
    padding: 40px;           /* Le da "aire" para que no se vea pegada al gris */
}

.hero-image img {
    max-width: 100%;         /* Que no se salga de su columna */
    max-height: 450px;       /* AQUÍ CONTROLAS EL TAMAÑO: Ajusta este número a tu gusto */
    width: auto;             /* Mantiene la proporción real */
    height: auto;            /* Mantiene la proporción real */
    object-fit: contain;     /* "Contain" hace que se vea el teléfono completo sin recortarse */
    border-radius: 20px;     /* Opcional: redondea un poco la imagen del dashboard */
}

.btn-purple-large {
    background-color: #c494e1;
    color: #000;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

/* --- ESTILOS INTRO SERVICIOS --- */
.intro-services {
    text-align: center;
    padding: 100px 20px 60px;
}

.subtitle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.line {
    width: 30px;
    height: 1px;
    background-color: #333;
}

.subtitle-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.intro-services h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
}

.intro-services p {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    color: #333;
}

.intro-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* BOTONES ESPECÍFICOS */
.btn-light-purple {
    background-color: #c494e1;
    color: #000;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}

.btn-dark-purple {
    background-color: #6b1fb3; /* Morado más fuerte */
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}

.carousel-section {
    padding: 60px 0;
    overflow: hidden; /* Evita scroll horizontal en toda la página */
}

.swiper {
    width: 100%;
    padding-bottom: 50px; /* Espacio para los puntos de abajo */
}
.swiper-wrapper {
    /* Ayuda a que la transición sea más lineal y no de saltos */
    transition-timing-function: ease-out; 
}

.swiper-slide {
    /* Asegura que el slide tenga un ancho definido para que el cálculo no falle */
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1); /* La central toma su tamaño real */
}

.swiper-slide img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    display: block;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Color de las flechas y puntos (puedes cambiarlos al morado de Exxan) */
.swiper-button-next, .swiper-button-prev {
    color: #ffffff;
    background: rgba(0,0,0,0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transform: scale(0.7);
}

.swiper-pagination-bullet-active {
    background: #c494e1 !important;
}

/* 5. RESPONSIVO (MÓVILES) */
@media (max-width: 900px) {
    
    /* 1. Ajuste de la Navbar */
    .navbar {
        padding: 10px 15px;
        justify-content: space-between;
    }

    /* Escondemos los links del menú en móvil para que no se amontonen */
    .navbar .menu {
        display: none; 
    }

    /* El logo y el botón de agendar se ajustan de tamaño */
    .logo {
        font-size: 1.2rem;
    }

    .btn-purple {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    /* 2. El contenedor Gris (Hero Card) */
    .hero-card {
        grid-template-columns: 1fr; /* Cambia de 2 columnas a 1 sola */
        border-radius: 20px;
        text-align: left; /* Alineación a la izquierda como en tu captura */
        min-height: auto;
    }

    /* 3. El Texto arriba */
    .hero-text {
        padding: 40px 25px; /* Menos espacio lateral en móvil */
        order: 1; /* Asegura que el texto sea lo primero */
    }

    .hero-text h1 {
        font-size: 2.2rem; /* Título más pequeño para que no choque */
        margin-bottom: 15px;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /* 4. La Imagen abajo */
    .hero-image {
        order: 2; /* Asegura que la imagen vaya después del texto */
        padding: 0 20px 40px 20px; /* Espacio para que el teléfono no toque el borde inferior */
        height: auto;
    }

    .hero-image img {
        max-height: 400px; /* Tamaño ideal para que se vea el dashboard en móvil */
        width: 100%;
        object-fit: contain;
    }

    /* Botón ancho completo en móvil (opcional, estilo Durable) */
    .btn-purple-large {
        display: block;
        text-align: center;
        width: 100%;
    }
}

/* --- ESTILOS TESTIMONIOS --- */
.testimonials {
    padding: 100px 20px;
}

.testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;
}

.header-left { flex: 1; }
.header-right { flex: 1; }

.header-left h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.header-right p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Botón Outline de Durable */
.btn-outline-dark {
    display: inline-block;
    padding: 14px 30px;
    border: 1px solid #333;
    border-radius: 50px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline-dark:hover {
    background-color: #333;
    color: #fff;
}

/* GRID DE TARJETAS */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas */
    gap: 30px;
}

.testimonial-card {
    background-color: #f3f4f6; /* Gris de Durable */
    padding: 50px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-icon {
    color: #6b1fb3; /* Morado fuerte para la comilla */
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.quote-text {
    font-size: 1.25rem;
    line-height: 1.5;
    color: #111;
    margin-bottom: 40px;
}

/* PERFIL */
.profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info strong {
    display: block;
    font-size: 1.1rem;
    color: #111;
}

.profile-info span {
    font-size: 0.9rem;
    color: #666;
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .testimonials-header {
        flex-direction: column;
        gap: 20px;
    }
    .header-left h2 { font-size: 2.5rem; }
    .testimonials-grid {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
    }
    .testimonial-card { padding: 30px; }
}

/* --- SECCIÓN IMPACTO --- */
.impact-section {
    padding: 100px 20px;
    border-top: 1px solid #eee; /* Opcional: una línea sutil para separar */
}

.impact-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 80px;
}

.impact-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* REJILLA DE ESTADÍSTICAS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas iguales */
    gap: 0; /* Quitamos el gap para que las líneas divisorias se vean bien */
}

.stat-item {
    padding: 0 30px;
    border-left: 1px solid #ddd; /* Línea divisoria vertical */
}

/* Quitamos la línea de la primera estadística */
.stat-item:first-child {
    border-left: none;
    padding-left: 0;
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.stat-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #111;
}

.stat-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

/* RESPONSIVO */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr; /* 2x2 en tablets */
        gap: 40px 0;
    }
    .stat-item:nth-child(odd) {
        border-left: none; /* Quitamos bordes en la columna izquierda */
        padding-left: 0;
    }
    .stat-item {
        padding-left: 30px;
    }
}

@media (max-width: 768px) {
    .impact-header {
        flex-direction: column;
    }
    .stats-grid {
        grid-template-columns: 1fr; /* Una columna en móvil */
    }
    .stat-item {
        border-left: none;
        padding-left: 0;
        padding-bottom: 40px;
        border-bottom: 1px solid #eee;
        margin-bottom: 40px;
    }
    .stat-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    .stat-value {
        font-size: 2.8rem;
    }
}

/* --- SECCIÓN BANNER FULL WIDTH --- */
.full-width-banner {
    width: 100%;
    min-height: 600px; /* Altura en PC */
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Cambiar a 'fixed' si quieres efecto parallax */
    position: relative;
    display: flex;
    align-items: center;
}

.banner-overlay {
    background: rgba(0, 0, 0, 0.5); /* Capa oscura para leer el texto */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.banner-content {
    text-align: center;
    color: white;
    max-width: 900px !important; /* Estrecha un poco el texto para que no sea tan largo */
}

.banner-content h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.banner-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.banner-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* RESPONSIVO MÓVIL */
@media (max-width: 768px) {
    .full-width-banner {
        min-height: 500px; /* Un poco más corto en móvil */
    }

    .banner-overlay {
        padding: 60px 20px;
    }

    .banner-content h2 {
        font-size: 2.2rem; /* Tamaño de la captura que pasaste */
    }

    .banner-btns {
        flex-direction: column; /* Botones uno sobre otro en móvil */
        gap: 15px;
    }

    .banner-btns .btn-light-purple, 
    .banner-btns .btn-dark-purple {
        width: 100%; /* Botones ocupan todo el ancho */
        display: block;
        text-align: center;
    }
}

/* --- ESTILOS MISIÓN --- */
.mission-section {
    padding: 100px 20px;
}

.mission-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.mission-header .header-left h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    max-width: 600px;
}

.mission-header .header-right p {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.6;
}

/* --- ESTILOS FOOTER --- */
.main-footer {
    padding: 60px 0 40px;
    background-color: #fff;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Alinea los links con la base del logo */
    margin-bottom: 40px;
}

.logo-subtext {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.footer-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.footer-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
}

.footer-nav a:hover { color: #6b1fb3; }

.footer-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: left;
    font-size: 0.9rem;
    color: #999;
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .mission-header {
        flex-direction: column;
        gap: 30px;
    }
    .mission-header .header-left h2 {
        font-size: 2.5rem;
    }
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
    .footer-nav ul {
        flex-direction: column;
        gap: 15px;
    }
}

.menu-toggle {
    display: none; /* Escondido en PC */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- MENÚ HAMBURGUESA (MÓVIL) --- */
/* --- AJUSTES MÓVIL (MEDIA QUERY) --- */
@media (max-width: 900px) {
    .nav-menu {
        display: none; /* Se esconde en móvil por defecto */
        flex-direction: column;
        position: fixed;
        left: 0;
        top: 70px; /* Debajo de la barra principal */
        background-color: white;
        width: 100%;
        height: calc(100vh - 70px);
        padding: 50px 0;
        gap: 40px;
        z-index: 999;
    }

    /* Cuando el menú está abierto */
    .nav-menu.active {
        display: flex; /* Se muestra al activar las rayitas */
    }

    .nav-menu a {
        font-size: 1.5rem; /* Letra más grande en móvil */
        width: 100%;
        display: block;
        text-align: center;
    }

    /* Estilo para el botón de agendar dentro del menú móvil */
    .mobile-only {
        display: flex;
        justify-content: center;
    }
}

/* Asegurar que el botón hamburguesa se vea bien */
.menu-toggle {
    display: none; /* Escondido en PC */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .menu-toggle { display: block; } /* Aparece hamburguesa */

    /* Menú que se desliza */
    .nav-menu {
        display: none; /* Se esconde */
        flex-direction: column;
        position: fixed;
        left: 0;
        top: 80px;
        background: white;
        width: 100%;
        height: 100vh;
        padding: 40px;
        text-align: center;
        gap: 30px;
    }

    .nav-menu.active { display: flex; }

    /* Ajuste para que el LinkedIn y el botón no se amontonen tanto */
    .nav-right .social-icon {
        display: none; /* Escondemos LinkedIn en la barra superior móvil si estorba */
    }
    
    .btn-purple {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .logo { font-size: 1.1rem; }
}

/* --- SECCIÓN NOSOTROS HERO --- */
.about-hero {
    padding: 60px 0;
}

.about-wrapper {
    display: flex;
    gap: 30px; /* Espacio entre los dos contenedores */
    align-items: stretch; /* Hace que ambos midan lo mismo de alto */
}

/* CONTENEDOR GRIS (MÁS PEQUEÑO) */
.about-text-card {
    flex: 0.8; /* Ocupa menos espacio (aprox 40%) */
    background-color: #f3f4f6;
    padding: 60px 40px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text-card h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #000;
}

.about-text-card p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* LISTA CON CHECKMARKS */
.about-list {
    list-style: none;
    margin-bottom: 35px;
}

.about-list li {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-list li i {
    color: #333; /* Color de la palomita */
    font-size: 0.9rem;
}

/* CONTENEDOR DE IMAGEN (MÁS GRANDE) */
.about-image-card {
    flex: 1.2; /* Ocupa más espacio (aprox 60%) */
    border-radius: 30px;
    overflow: hidden;
}

.about-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen al contenedor */
}

/* RESPONSIVO MÓVIL */
@media (max-width: 1024px) {
    .about-wrapper {
        flex-direction: column; /* Se apilan en tablet y móvil */
    }
    
    .about-text-card, .about-image-card {
        flex: none;
        width: 100%;
    }

    .about-text-card h1 {
        font-size: 2.5rem;
    }
}

/* --- SECCIÓN EQUIPO --- */
.team-section {
    padding: 80px 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas en PC */
    gap: 30px;
}

.team-member {
    display: flex;
    flex-direction: column;
}

.team-img {
    width: 100%;
    margin-bottom: 20px;
}

.team-img img {
    width: 100%;
    aspect-ratio: 4 / 5; /* Mantiene una proporción vertical elegante */
    object-fit: cover;
    border-radius: 24px; /* Bordes redondeados como en la imagen */
}

.team-role {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.team-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin-bottom: 20px;
}

.team-member h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 15px;
    line-height: 1.2;
}

.team-member p {
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
}

/* RESPONSIVO */
@media (max-width: 1100px) {
    .team-grid {
        grid-template-columns: 1fr 1fr; /* 2 columnas en tablets */
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr; /* 1 columna en celulares */
    }
    
    .team-member h3 {
        font-size: 1.4rem;
    }
}