/* =========================================
   BELUGA ACADEMY STEM - ESTILOS DEDICADOS
   ========================================= */

/* --- UTILIDADES GENERALES --- */
.stem-body { background-color: #0f011a; }
.text-cyan { color: var(--beluga-lightblue); }
.text-orange { color: var(--beluga-orange); }
.text-gold { color: #ffd700; }
.text-white { color: #ffffff; }
.text-center { text-align: center; }
.mb-10 { margin-bottom: 10px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }
.mt-15 { margin-top: 15px; }
.border-radius-8 { border-radius: 8px; }
.title-white { font-size: 2.5rem; margin-bottom: 20px; color: white; }
.section-subtitle { color: var(--text-muted); max-width: 600px; margin: 0 auto 50px; }

/* --- HERO STEM --- */
.stem-hero {
    height: 65vh; 
    background: radial-gradient(circle at center, #1a022e 0%, #05000a 100%);
}

/* --- AUTHORITY DATA (Stats) --- */
.authority-section {
    padding: 60px 0;
    background: #0a0112;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.stat-number {
    font-size: 3rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.stat-desc {
    color: var(--beluga-lightblue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* --- CONTENEDOR INDIVIDUAL DE CADA MEDALLA --- */
.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Espacio perfecto entre la imagen y la etiqueta */
    transition: transform 0.3s ease;
}

.badges-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
}

.authority-badge {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

/* --- ENLACE "POWERED BY" EN HERO --- */
.powered-by-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(94, 162, 250, 0.05);
    border: 1px solid rgba(94, 162, 250, 0.3);
    color: var(--beluga-lightblue);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.powered-by-badge:hover {
    background: rgba(94, 162, 250, 0.15);
    border-color: var(--beluga-lightblue);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 5px 15px rgba(94, 162, 250, 0.2);
}

/* --- BOTÓN B2B (INSTITUCIONES) --- */
.btn-outline-white {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}
.btn-outline-white:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

/* --- IMÁGENES BADGES ACCREDIBLE --- */
.badge-img-link img {
    height: 140px; /* Tamaño perfecto para que destaquen sin exagerar */
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 4px 10px rgba(255, 215, 0, 0.15));
}
.badge-img-link:hover img {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(0 8px 15px rgba(255, 215, 0, 0.4)); /* Brillo dorado al pasar el mouse */
}

/* --- METODOLOGÍA STEM --- */
.stem-philosophy {
    background-color: #05000a; 
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.icon-cyan { background-color: var(--beluga-lightblue) !important; color: #000 !important; }
.icon-white { background-color: #fff !important; color: #000 !important; }

/* --- CARRUSEL DE TESTIMONIOS (CSS Only) --- */
.testimonials-section {
    padding: 100px 0;
    background: #0f011a;
    overflow: hidden; /* Evita scroll horizontal en toda la página */
}

.carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0 40px 0; /* Padding bottom para la sombra */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    
    /* Ocultar scrollbar visualmente pero permitir scroll */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.testimo-card {
    background: var(--bg-card);
    min-width: 320px;
    max-width: 320px;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    border-top: 4px solid #fff; /* Por defecto */
    scroll-snap-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

/* Colores Dinámicos por Materia */
.border-math { border-top-color: var(--beluga-lightblue); }
.border-physics { border-top-color: var(--beluga-orange); }
.border-algebra { border-top-color: #8a64d6; } /* Violeta suave */

.stars {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.testimo-quote {
    color: #ddd;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.testimo-footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
}

.testimo-subject {
    display: block;
    color: white;
    font-weight: bold;
    font-size: 0.95rem;
}

.testimo-origin {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}

/* --- SECCIÓN ADN --- */
.founder-stem-section {
    padding: 100px 0; 
    background: #08000a;
}

/* =========================================
    STAFF DE TUTORES
    ======================================== */
/* --- TARJETAS DE TUTORES --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.tutor-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
}

.tutor-card:hover {
    transform: translateY(-10px);
    border-color: var(--beluga-lightblue);
    background: rgba(94, 162, 250, 0.05);
}

.tutor-img-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    /* Filtro para que todas las fotos se vean uniformes */
    filter: grayscale(100%) contrast(1.1);
    transition: all 0.5s ease;
}

.tutor-card:hover .tutor-img-container {
    filter: grayscale(0%);
}

.tutor-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tutor-info {
    padding: 25px;
}

.tutor-info h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.tutor-specialty {
    display: block;
    color: var(--beluga-lightblue);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.tutor-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}
/* --- ÁREAS DE ESPECIALIDAD STEM --- */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.spec-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: left; /* Alineado a la izquierda da un look más "Técnico" */
}

.spec-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
}

.spec-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.spec-card h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.spec-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   MAPA GLOBAL - NODOS DE TALENTO
   ========================================= */

.map-wrapper {
    position: relative;
    max-width: 900px; /* Tamaño máximo para que no se deforme en monitores ultra anchos */
    margin: 60px auto 0;
    padding: 0 20px;
}

.world-map {
    width: 100%;
    height: auto;
    /*opacity: 0.15; */
    /*filter: invert(1); */
}

/* El Nodo Base (Punto central) */
.talent-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--beluga-orange);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    cursor: pointer;
}

/* El Efecto Pulse Ring (Animación CSS Pura) */
.talent-node .pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: var(--beluga-orange);
    border-radius: 50%;
    z-index: -1;
    /* Animación infinita: 2 segundos, aceleración suave */
    animation: pulse-animation 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* Desfasaje de tiempo para que no pulsen todos exactamente a la vez (Efecto orgánico) */
.node-cdmx .pulse { animation-delay: 0s; }
.node-bogota .pulse { animation-delay: 0.5s; }
.node-quito .pulse { animation-delay: 0.7s; }
.node-lima .pulse { animation-delay: 1s; }
.node-santiago .pulse { animation-delay: 1.3s; }
.node-ba .pulse { animation-delay: 1.5s; }


/* Keyframes del Pulso */
@keyframes pulse-animation {
    0% {
        width: 8px;
        height: 8px;
        opacity: 0.8;
    }
    100% {
        width: 45px; /* Hasta dónde se expande el anillo */
        height: 45px;
        opacity: 0;
    }
}

/* =========================================
   POSICIONAMIENTO GEOGRÁFICO (Top / Left %)
   ========================================= */
/* Estas coordenadas (X,Y en porcentajes) son aproximadas para un mapa rectangular estándar. 
   Deberás ajustar levemente estos números (+/- 2%) dependiendo del SVG exacto que descargues */

.node-cdmx  { top: 46%; left: 20%; }
.node-bogota { top: 55%; left: 26.5%; } 
.node-quito { top: 59%; left: 25.5%; }
.node-lima  { top: 64%; left: 26%; }
.node-santiago  { top:78%; left: 27.5%; }
.node-ba    { top: 82%; left: 30%; }



/* Opcional: Tooltip al pasar el mouse (Nombre de la ciudad) */
.talent-node::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.talent-node:hover::before {
    opacity: 1;
    visibility: visible;
    bottom: 200%;
}

/* --- TABLAS DE PRECIOS STEM --- */
.pricing-section {
    padding: 100px 0; 
    background: #0f011a;
}

.grid-4-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: center;
}

.pricing-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 35px 25px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover { border-color: rgba(255,255,255,0.2); }

.pricing-card h4 {
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.price-big {
    font-size: 2.8rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.price-big .currency {
    font-size: 0.9rem;
    color: #888;
    margin-left: 5px;
}

.price-desc {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 25px;
    min-height: 40px; 
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
    margin-top: auto; 
}

/* --- ALINEACIÓN PERFECTA DE BOTONES DE PRECIO --- */
.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Esto empuja el botón hacia abajo */
}

.feature-list {
    margin-bottom: 30px; /* Asegura espacio antes del botón */
}


/* --- COLORES METALIZADOS (BRONCE Y PLATA) --- */

/* BRONCE */
.highlight-bronze {
    border-color: #cd7f32;
    transform: scale(1.02); /* Un pelín más grande que el base */
    box-shadow: 0 15px 40px rgba(205, 127, 50, 0.15);
    background: linear-gradient(180deg, #18032e 0%, #26140b 100%);
    z-index: 2;
}

.highlight-bronze .badge-top {
    background-color: #cd7f32;
    color: white;
}

.btn-bronze {
    background-color: #cd7f32 !important;
    border-color: #cd7f32 !important;
    color: white !important;
}
.btn-bronze:hover {
    background-color: transparent !important;
    color: #cd7f32 !important;
}

/* PLATA (Silver) */
.highlight-silver {
    border-color: #aeb6bf; /* Gris metálico/azulado */
    transform: scale(1.05); /* El más destacado de B2C */
    box-shadow: 0 15px 40px rgba(174, 182, 191, 0.15);
    background: linear-gradient(180deg, #18032e 0%, #151a22 100%);
    z-index: 3;
}

.highlight-silver .badge-top {
    background-color: #aeb6bf;
    color: #000; /* Texto oscuro para contraste */
}

.btn-silver {
    background-color: #aeb6bf !important;
    border-color: #aeb6bf !important;
    color: #000 !important;
}
.btn-silver:hover {
    background-color: transparent !important;
    color: #aeb6bf !important;
}

/* Ajuste del precio grande para que "Desde" entre bien */
.pricing-card .price-big {
    line-height: 1.1;
}

/* Destacados */
.highlight-cyan {
    border-color: var(--beluga-lightblue);
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(94, 162, 250, 0.1);
    background: linear-gradient(180deg, #18032e 0%, #0d162a 100%);
    z-index: 2;
}

.btn-cyan {
    background-color: var(--beluga-lightblue) !important;
    border-color: var(--beluga-lightblue) !important;
    color: #000 !important;
}

.highlight-orange {
    border-color: var(--beluga-orange);
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(240, 68, 13, 0.15);
    background: linear-gradient(180deg, #18032e 0%, #2a0b0b 100%);
    z-index: 3;
}

.card-gold {
    border-color: rgba(255, 215, 0, 0.3);
    background: linear-gradient(180deg, #18032e 0%, #1a1600 100%);
}

.btn-gold-outline {
    border-color: #ffd700 !important;
    color: #ffd700 !important;
}
.btn-gold-outline:hover {
    background: #ffd700 !important;
    color: #000 !important;
}

.badge-top {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--beluga-lightblue);
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 15px;
    border-radius: 20px;
    letter-spacing: 1px;
    white-space: nowrap; 
    text-align: center;
}
.highlight-orange .badge-top { background-color: var(--beluga-orange); color: white; }



/* Nota de Pago MEP */
.payment-note {
    margin-top: 50px;
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.1);
    padding: 15px 20px;
    border-radius: 8px;
    color: #999;
    font-size: 0.85rem;
    text-align: center;
}
.payment-note i { color: var(--beluga-lightblue); margin-right: 5px; }

/* --- PROTOCOLO MENORES --- */
.minors-protocol {
    padding: 60px 0;
    background: #08000a;
    border-top: 1px solid rgba(255,255,255,0.02);
}
.protocol-icon {
    font-size: 2.5rem;
    color: #555;
    margin-bottom: 20px;
}
.minors-protocol h3 { color: #ddd; margin-bottom: 15px; font-size: 1.3rem; }
.minors-protocol p {
    color: #888;
    font-size: 0.85rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- FOOTER FLUIDO --- */
.stem-footer {
    background: linear-gradient(180deg, #08000a 0%, #000 100%);
    border-top: 1px solid rgba(255,255,255,0.02);
    padding-top: 60px;
}
.email-footer-link {
    color: #aaa; text-decoration: none; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; transition: color 0.3s;
}


/* --- RESPONSIVIDAD STEM --- */
@media (max-width: 1100px) {
    .grid-4-cols {
        grid-template-columns: repeat(2, 1fr); /* 2x2 en tablets */
        gap: 30px;
    }
    .highlight-cyan, .highlight-orange { transform: scale(1); }
}

@media (max-width: 768px) {
    .grid-4-cols { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto;} /* 1 columna en celular */
    .badges-container { flex-direction: column; align-items: center; }
}