@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Nunito:wght@400;600;700&display=swap');

:root {
    --primary-blue: #0B203E; /* Dark blue */
    --primary-cyan: #00AEEF; /* Cyan */
    --light-bg: #F4F7F6;
    --text-color: #333333;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
    position: relative;
}

/* Patrón de puntos de fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary-cyan) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--primary-blue);
}

a {
    text-decoration: none;
}

/* =========================================
   HEADER
========================================= */
header {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.top-bar-contact span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-bar-social a {
    color: var(--white);
    margin-left: 15px;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.top-bar-social a:hover {
    color: var(--primary-cyan);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-cyan);
}

.btn-primary {
    background-color: #00AEEF; /* Celeste del logo */
    color: var(--white);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    box-shadow: 0 0 15px rgba(0, 174, 239, 0.6); /* Efecto Glow */
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #009BD6; /* Celeste un poco más oscuro al pasar el mouse */
    transform: translateY(-2px);
    color: var(--white);
    box-shadow: 0 0 25px rgba(0, 174, 239, 0.8); /* Glow más fuerte en hover */
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%; /* Enfoca el 20% superior para que no se corten los rostros */
    background-repeat: no-repeat;
    opacity: 0;
    animation: fadeSlide 15s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    animation-delay: 5s;
}

.hero-slide:nth-child(3) {
    animation-delay: 10s;
}

@keyframes fadeSlide {
    0% { opacity: 0; transform: scale(1.05); }
    10% { opacity: 1; transform: scale(1); }
    33% { opacity: 1; transform: scale(1); }
    43% { opacity: 0; transform: scale(1.02); }
    100% { opacity: 0; transform: scale(1.05); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 32, 62, 0.9) 0%, rgba(11, 32, 62, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h2 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Animaciones de entrada para los textos */
@keyframes textSlideUp {
    0% { transform: translateY(50px); }
    10% { transform: translateY(0); }
    35% { transform: translateY(0); }
    43% { transform: translateY(-30px); }
    100% { transform: translateY(50px); }
}

.hero-slide .hero-content h2,
.hero-slide .hero-content p {
    animation: textSlideUp 15s infinite;
}

/* Slide 1 delays (Staggered effect: h2 entra primero, luego p) */
.hero-slide:nth-child(1) .hero-content h2 { animation-delay: 0s; }
.hero-slide:nth-child(1) .hero-content p { animation-delay: 0.3s; }

/* Slide 2 delays */
.hero-slide:nth-child(2) .hero-content h2 { animation-delay: 5s; }
.hero-slide:nth-child(2) .hero-content p { animation-delay: 5.3s; }

/* Slide 3 delays */
.hero-slide:nth-child(3) .hero-content h2 { animation-delay: 10s; }
.hero-slide:nth-child(3) .hero-content p { animation-delay: 10.3s; }

.hero-wave {
    position: absolute;
    bottom: -5px; /* Para evitar linea fina */
    left: 0;
    width: 100%;
    z-index: 4;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================================
   SERVICIOS
========================================= */
.services-section {
    padding: 100px 5%;
    text-align: center;
    background-color: var(--white);
    position: relative;
}

.section-title {
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--primary-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.section-title h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

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

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    position: relative;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-cyan);
}

.service-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* El estilo de badge/pastilla de la imagen */
.service-badge {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-cyan);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.4);
    z-index: 2;
}

.service-content {
    padding: 50px 30px 30px;
}

.service-content p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

/* =========================================
   PROPUESTA Y ESTADÍSTICAS
========================================= */
.about-section {
    padding: 80px 5%;
    background: linear-gradient(270deg, #0B203E, #005a8a, #0B203E, #004066);
    background-size: 800% 800%;
    animation: waterFlow 12s ease infinite;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes waterFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.about-section h2 {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 2.8rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    font-size: 1.8rem;
    color: var(--primary-cyan);
    margin-bottom: 12px;
    background: rgba(0, 163, 224, 0.1);
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #ffffff, var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-text {
    font-size: 1rem;
    opacity: 0.8;
}

.wave-top {
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    transform: rotate(180deg);
}

.wave-bottom {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
}

.wave-top svg, .wave-bottom svg {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================================
   POR QUÉ ELEGIRNOS (PESTAÑAS)
========================================= */
.features-section {
    padding: 100px 5%;
    background-color: var(--white);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    align-items: center;
}

.features-image {
    flex: 1;
}

.features-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.features-content {
    flex: 1;
}

.features-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.accordion-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.accordion-header {
    background: var(--light-bg);
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-blue);
    transition: background 0.3s;
}

.accordion-header:hover {
    background: #e8f0f2;
}

.accordion-header.active {
    background: var(--primary-cyan);
    color: var(--white);
}

.accordion-body {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.accordion-header.active + .accordion-body {
    padding: 20px;
    max-height: 200px;
}

/* =========================================
   FOOTER
========================================= */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 80px 5% 30px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col p {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-cyan);
    color: var(--white);
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 174, 239, 0.3);
}

.footer-social a i {
    color: var(--white);
}

.footer-social a:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(11, 32, 62, 0.4);
}

.footer-social a:hover i {
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-cyan);
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: rgba(255,255,255,0.8);
}

.footer-contact i {
    color: rgba(255, 255, 255, 0.8); /* Mismo color que el texto */
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* =========================================
   WHATSAPP FLOTANTE
========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20b858;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

    .menu-toggle {
        display: none;
    }

/* =========================================
   RESPONSIVE (MÓVILES Y TABLETS)
========================================= */
@media (max-width: 768px) {
    /* Header y Navegación */
    .top-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 10px;
    }
    .top-bar-contact {
        flex-direction: column;
        gap: 5px;
    }
    .main-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 15px 5%;
        position: relative;
    }
    .menu-toggle {
        display: block;
        font-size: 2rem;
        color: var(--primary-blue);
        cursor: pointer;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 15px;
        margin: 20px 0 0 0;
    }
    .main-nav .btn-primary {
        display: none;
        width: 100%;
        text-align: center;
        margin-top: 15px;
    }
    .main-nav.active .nav-links {
        display: flex;
    }
    .main-nav.active .btn-primary {
        display: block;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        display: block;
        padding: 10px;
    }

    /* Textos principales */
    .hero-content h2 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .page-header {
        padding: 50px 20px;
    }
    .page-header h1 {
        font-size: 2.2rem;
    }
    .features-content h2 {
        font-size: 1.8rem;
    }

    /* Contenedores Flex */
    .features-container,
    .contact-container,
    .about-container {
        flex-direction: column;
        margin: 30px auto;
        padding: 0 5%;
        gap: 30px;
    }
    .career-container {
        margin: 30px auto;
        padding: 30px 5%;
    }
    .hero-wave {
        bottom: -2px; /* Ajuste para evitar lineas blancas en móvil */
    }

    /* Footer */
    .footer-col {
        text-align: center;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-contact li {
        justify-content: center;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* Botón WhatsApp Flotante */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }
    .page-header h1 {
        font-size: 1.8rem;
    }
    .features-content h2 {
        font-size: 1.4rem;
        line-height: 1.2;
    }
    .contact-info, .contact-form, .career-form, .about-content {
        padding: 20px;
    }
}


/* Fix para el Logo */
.brand-logo {
    max-width: 200px;
    height: auto;
}

.footer-col .brand-logo {
    max-width: 130px; /* Logo más pequeño en el footer */
}

