/* --- ESTILOS GLOBALES Y VARIABLES (DARK MODE CORPORATIVO) --- */
:root {
    --primary-blue: #0A192F;
    --secondary-blue: #112240;
    --accent-cyan: #00AEEF;
    --text-light: #ccd6f6;
    --text-dark: #8892b0;
    --border-color: rgba(136, 146, 176, 0.2);
    --font-family: 'Poppins', 'Inter', sans-serif;
    --transition-fast: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    --header-height: 70px;
}

/* --- RESET BÁSICO Y ESTILOS DE BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--primary-blue);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
h1, h2, h3, h4 { color: var(--text-light); font-weight: 700; line-height: 1.2; }
h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; text-align: center; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; font-weight: 600; }
p { margin-bottom: 1rem; color: var(--text-dark); }
a { color: var(--accent-cyan); text-decoration: none; transition: var(--transition-fast); }
a:hover { filter: brightness(1.2); }
.btn { display: inline-block; background: var(--accent-cyan); color: var(--primary-blue) !important; font-weight: 700; padding: 14px 35px; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; border: 2px solid var(--accent-cyan); transition: var(--transition-fast); cursor: pointer; }
.btn:hover { background: transparent; color: var(--accent-cyan) !important; }
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== ESTILOS AÑADIDOS PARA EL BOTÓN SECUNDARIO Y SU ESPACIADO ===== */
.btn-secondary {
    background: transparent;
    color: var(--accent-cyan) !important;
}
.btn-secondary:hover {
    background: var(--accent-cyan);
    color: var(--primary-blue) !important;
}
.btn + .btn, .btn + .btn-secondary, .btn-secondary + .btn {
    margin-top: 1.5rem;
}
.btn i {
    margin-right: 8px;
}
/* ===== FIN DE ESTILOS AÑADIDOS ===== */

/* --- HEADER Y NAVEGACIÓN --- */
#main-header { position: sticky; top: 0; left: 0; width: 100%; z-index: 1000; height: var(--header-height); display: flex; align-items: center; background-color: rgba(10, 25, 47, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px -10px rgba(2,12,27,0.7); transition: var(--transition-fast); }
#main-header .navbar { display: flex; justify-content: space-between; align-items: center; width: 100%; }
#main-header .logo img { height: 45px; }
#main-header nav ul { display: flex; list-style: none; }
#main-header nav ul li { margin-left: 2.5rem; }
#main-header nav ul li a { color: var(--text-light); font-weight: 600; padding: 5px 0; position: relative; }
#main-header nav ul li a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background-color: var(--accent-cyan); transition: width 0.3s ease-out; }
#main-header nav ul li a:hover::after, #main-header nav ul li a.active::after { width: 100%; }

/* --- HERO SECTION (INDEX) --- */
#hero { position: relative; height: calc(100vh - var(--header-height)); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--text-light); overflow: hidden; }
#hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translateX(-50%) translateY(-50%); z-index: -2; object-fit: cover; filter: brightness(0.4); }
.hero-content { z-index: 1; max-width: 950px; padding: 2rem; }
.hero-content h1 { color: var(--text-light); font-size: 4.5rem; }
.hero-content h1 span { color: var(--accent-cyan); }
.hero-content p { font-size: 1.3rem; margin: 1rem auto 2.5rem auto; max-width: 750px; color: var(--text-light); text-align: center; }

/* --- PÁGINA "NOSOTROS" / "CONTACTO" - HERO BANNER --- */
#team-hero, #contact-hero { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8rem 2rem; color: var(--text-light); overflow: hidden; }
#team-hero-video, #contact-hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translate(-50%, -50%); z-index: -1; object-fit: cover; filter: brightness(0.5); }
.team-hero-content, .contact-hero-content { position: relative; z-index: 1; }
.team-hero-content p, .contact-hero-content p { font-size: 1.2rem; max-width: 800px; margin: 1rem auto 0 auto; color: var(--text-light); text-align: center; }

/* --- PÁGINA DE SERVICIOS --- */
.service-row-section { position: relative; width: 100%; height: 90vh; overflow: hidden; background-color: var(--primary-blue); }
.row-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; transition: background-image 0.4s ease-in-out, transform 0.8s ease; transform: scale(1.05); }
.service-row-section:hover .row-background { transform: scale(1); }
.row-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; display: flex; background: linear-gradient(90deg, rgba(10, 25, 47, 0.8) 0%, rgba(10, 25, 47, 0.5) 50%, rgba(10, 25, 47, 0.8) 100%); }
/* Aclarar overlay base solo para la primera fila (servicio individual) */
main > .service-row-section:first-of-type .row-overlay {
    background: linear-gradient(90deg, rgba(10, 25, 47, 0.3) 0%, rgba(10, 25, 47, 0.15) 50%, rgba(10, 25, 47, 0.3) 100%);
}
.service-lane { flex: 1; border-right: 1px solid var(--border-color); padding: 3rem; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; transition: var(--transition-fast); }
.service-lane:last-child { border-right: none; }
.service-lane h3 { font-size: 2.5rem; line-height: 1.1; font-weight: 600; margin-bottom: 1rem; color: rgba(204, 214, 246, 0.7); transition: var(--transition-fast); }
.service-lane p { text-align: left; }
.service-lane .arrow-link { font-weight: 700; color: var(--accent-cyan); margin-top: 1rem; opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease; }
.service-lane.active { background-color: rgba(17, 34, 64, 0.4); }
.service-lane.active h3 { color: var(--text-light); }
.service-lane.active .arrow-link { opacity: 1; transform: translateY(0); }
/* Ajuste: reducir oscurecimiento en la fila con un solo servicio (primera fila) */
main > .service-row-section:first-of-type .service-lane.active { background-color: rgba(17, 34, 64, 0.1); }

/* --- OTRAS SECCIONES Y PÁGINAS --- */
.section { padding: 6rem 0; }
.section-light { background-color: var(--secondary-blue); }
.section-subtitle { max-width: 800px; margin: 0 auto 4rem auto; text-align: center; font-size: 1.1rem; }

/* === BLOQUE MODIFICADO: ESTILOS PARA LA SECCIÓN DE SOCIOS (NOSOTROS) === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.team-member-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-fast);
}
.team-member-link:hover { transform: translateY(-8px); filter: none; }
.team-member { background: var(--secondary-blue); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.team-member img { width: 100%; height: auto; object-fit: cover; object-position: center; filter: grayscale(100%) contrast(1.1); transition: var(--transition-fast); }
.team-member-link:hover .team-member img { filter: grayscale(0%) contrast(1); }
.team-member .content { padding: 1.5rem 2rem 2rem; text-align: left; flex-grow: 1; display: flex; flex-direction: column; }
.team-member .content h4 { text-align: center; }
.team-member .role { color: var(--accent-cyan); text-align: center; margin-bottom: 1.5rem; }
.team-member .content ul { list-style: none; padding-left: 0; margin: 0; flex-grow: 1; }
.team-member .content ul li { position: relative; padding-left: 22px; margin-bottom: 0.7rem; font-size: 0.9rem; line-height: 1.5; color: var(--text-dark); }
.team-member .content ul li::before { content: '\f054'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 5px; color: var(--accent-cyan); font-size: 0.8rem; }
/* ======================================================================== */

.contact-wrapper { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: flex-start; }
.contact-form .form-group { margin-bottom: 1.5rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px; border: 1px solid var(--border-color); border-radius: 4px; font-family: var(--font-family); font-size: 1rem; transition: var(--transition-fast); background: var(--primary-blue); color: var(--text-light); margin-top: 0.5rem; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent-cyan); background: var(--secondary-blue); }
.contact-form label { color: var(--text-dark); }
.contact-info .info-item { display: flex; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-info .info-item i { font-size: 1.5rem; color: var(--accent-cyan); margin-right: 1.5rem; margin-top: 0.25rem; }
.contact-info .info-item-cta { margin-top: 2rem; border-top: 1px solid var(--border-color); padding-top: 2rem; }
.contact-info .info-item-cta .btn { width: 100%; text-align: center; }

#main-footer { background: var(--secondary-blue); padding: 3rem 0; text-align: center; }
#main-footer .copyright { color: var(--text-dark); }
#challenge .stats-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
#challenge .stat-item { display: flex; align-items: center; gap: 2.5rem; background-color: var(--primary-blue); padding: 2rem; border-radius: 4px; border-left: 4px solid var(--accent-cyan); transition: var(--transition-fast); }
#challenge .stat-item:hover { transform: translateY(-5px); background-color: var(--primary-blue); }
#challenge .stat-number { font-size: 5rem; font-weight: 700; color: var(--accent-cyan); line-height: 1; flex-shrink: 0; }
#challenge .stat-text h4 { color: var(--text-light); }
#challenge .stat-text p { margin-bottom: 0; text-align: left;}
#solution .solution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
#solution .solution-card { position: relative; height: 450px; border-radius: 8px; overflow: hidden; background-size: cover; background-position: center; transition: transform 0.3s ease; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; }
#solution .solution-card:hover { transform: translateY(-10px); }
#solution .solution-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(10, 25, 47, 0) 0%, rgba(10, 25, 47, 0.4) 60%, rgba(10, 25, 47, 0.95) 100%); z-index: 1; transition: background 0.4s ease; }
#solution .solution-card:hover::before { background: rgba(10, 25, 47, 0.85); }
#solution .solution-content { position: relative; z-index: 2; padding: 2.5rem; width: 100%; transition: var(--transition-fast); }
#solution .solution-content h3 { font-size: 1.8rem; color: var(--text-light); margin-bottom: 1rem; }
#solution .solution-content p { opacity: 0; max-height: 0; overflow: hidden; margin-bottom: 0; transition: opacity 0.4s ease, max-height 0.4s ease, margin-bottom 0.4s ease; color: var(--text-light); }
#solution .solution-card:hover .solution-content p { opacity: 1; max-height: 200px; margin-bottom: 1.5rem; }
.solution-content .button-wrapper { margin-top: 1rem; transition: margin-top 0.4s ease; }
#process .process-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem; padding-top: 3rem; }
#process .process-steps::before { content: ''; position: absolute; top: 52px; left: 15%; width: 70%; height: 2px; background-color: var(--border-color); z-index: 0; }
#process .process-step { position: relative; text-align: center; z-index: 1; }
#process .step-number { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent-cyan); background-color: var(--secondary-blue); color: var(--accent-cyan); font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem auto; }
#process .process-step h3 { font-size: 1.5rem; margin-bottom: 1rem; }
#cta .container { text-align: center; }
#cta .btn { margin-top: 2rem; }
.service-detail-hero { position: relative; padding: 10rem 2rem 8rem; color: var(--text-light); background-size: cover; background-position: center; text-align: center; }
.service-detail-hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(10, 25, 47, 1) 0%, rgba(10, 25, 47, 0.7) 100%); z-index: 1; }
.service-detail-hero-content { position: relative; z-index: 2; }
.service-detail-hero h1 { font-size: 3.2rem; margin-bottom: 1rem; }
.service-detail-hero p { font-size: 1.2rem; max-width: 800px; margin: 0 auto; color: var(--text-dark); text-align: center; }
.scroll-cue { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-light); opacity: 0.8; z-index: 3; pointer-events: none; }
.scroll-cue .cue-text { font-size: 0.9rem; letter-spacing: 0.3px; color: var(--text-dark); }
.scroll-cue .cue-arrow { animation: cue-bounce 1.8s infinite ease-in-out; color: var(--accent-cyan); }
@keyframes cue-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}
.service-detail-content-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; align-items: flex-start; }
.service-detail-description h2 { text-align: left; font-size: 2.2rem; margin-bottom: 2rem; }
.service-detail-description h3 { color: var(--accent-cyan); margin-top: 2rem; margin-bottom: 1rem; }
.service-detail-description ul { list-style: none; padding-left: 0; }
.service-detail-description ul li { position: relative; padding-left: 25px; margin-bottom: 0.8rem; }
.service-detail-description ul li::before { content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 3px; color: var(--accent-cyan); }
.service-aside-box { background-color: var(--secondary-blue); padding: 2rem; border-radius: 4px; position: sticky; top: calc(var(--header-height) + 40px); }
.service-aside-box h3 { margin-bottom: 1.5rem; border-left: 3px solid var(--accent-cyan); padding-left: 1rem; }
.service-aside-box .btn { width: 100%; text-align: center; }
.team-grid-four-cols { grid-template-columns: repeat(4, 1fr); align-items: stretch; }

/* ===== NUEVOS ESTILOS/ARREGLOS PARA SECCIÓN DE DIAGNÓSTICO ===== */
.diagnostic-grid-v2 {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: stretch;              /* <- asegura columnas con misma altura */
    margin-top: 2rem;
}
#diagnostic-process h3 {
    font-size: 1.6rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    font-weight: 600;
}
.diagnostic-features {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    height: 100%;                      /* <- permite estirar para igualar altura */
}
.diagnostic-features .btn-secondary {  /* botón al fondo cuando haya altura extra */
    margin-top: auto;
    align-self: flex-start;
}
.feature-card { display: flex; align-items: flex-start; gap: 1.5rem; }
.feature-icon { flex-shrink: 0; color: var(--accent-cyan); font-size: 2.5rem; margin-top: 5px; }
.feature-content h3 { color: var(--text-light); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-content p { margin-bottom: 0; font-size: 0.95rem; }

.diagnostic-deliverables-v2 {
    background-color: var(--secondary-blue);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    height: 100%;                      /* <- llena la altura disponible */
    display: flex;
    flex-direction: column;
}

/* --- NUEVO LAYOUT CON DL (dos columnas estables por fila) --- */
.deliverables { display: grid; gap: 1.2rem; }
.deliverables .row {
    display: grid;
    grid-template-columns: minmax(220px, 0.95fr) minmax(280px, 1.05fr);
    align-items: start;
    column-gap: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-color);
}
.deliverables .row:last-child { border-bottom: none; padding-bottom: 0; }
.deliverables dt {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
}
.deliverables dt i { color: var(--accent-cyan); font-size: 1.2rem; margin-top: 2px; }
.deliverables dt span { line-height: 1.4; }
.deliverables dd {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.5;
    overflow-wrap: anywhere; /* evita desbordes con palabras largas */
}

/* ESTILOS PARA EL NUEVO BLOQUE DE CTA */
.diagnostic-cta-wrapper { margin-top: 4rem; display: flex; justify-content: center; }
.actionable-insight-box {
    display: flex; align-items: flex-start; gap: 2rem;
    background-color: var(--secondary-blue);
    padding: 2rem 2.5rem; border-radius: 8px; border-left: 4px solid var(--accent-cyan);
    max-width: 850px;
}
.insight-icon i { font-size: 2.2rem; color: var(--accent-cyan); margin-top: 5px; }
.insight-content h4 { color: var(--text-light); font-size: 1.3rem; margin-bottom: 0.5rem; }
.insight-content p { font-size: 1rem; margin-bottom: 1.5rem; color: var(--text-dark); }
.insight-content .btn { margin-top: 1rem; }
/* =================================================================== */

/* --- NAVEGACIÓN MÓVIL Y ESTILOS RESPONSIVE --- */
.mobile-nav-toggle { display: none; background: transparent; border: none; cursor: pointer; z-index: 1100; padding: 10px; margin: -10px; }
.mobile-nav-toggle .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--text-light); transition: all 0.3s ease-in-out; }
.mobile-nav-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-nav-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
#mobile-menu { display: flex; flex-direction: column; justify-content: center; align-items: center; position: fixed; top: 0; right: 0; width: 70%; max-width: 320px; height: 100vh; background-color: var(--secondary-blue); z-index: 1050; transform: translateX(100%); visibility: hidden; transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out; }
#mobile-menu.is-active { transform: translateX(0); visibility: visible; }
#mobile-menu ul { list-style: none; padding: 0; text-align: center; }
#mobile-menu ul li { margin: 2rem 0; }
#mobile-menu ul li a { color: var(--text-light); font-size: 1.5rem; font-weight: 600; }

/* --- PUBLICACIONES --- */
.publications-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.publication-card { background: var(--secondary-blue); border-radius: 4px; border-left: 4px solid var(--accent-cyan); padding: 2.5rem; display: flex; flex-direction: column; justify-content: space-between; transition: var(--transition-fast); }
.publication-card:hover { transform: translateY(-8px); box-shadow: 0 10px 30px -10px rgba(2,12,27,0.7); }
.publication-content h4 { margin-bottom: 0.5rem; font-size: 1.6rem; }
.publication-meta { color: var(--accent-cyan); font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.publication-content p { margin-bottom: 0; }
.publication-detail-header { text-align: center; margin-bottom: 4rem; }
.publication-detail-header h2 { font-size: 2.5rem; text-align: center; margin-bottom: 0.5rem; }
.publication-detail-header .publication-meta { margin-bottom: 2rem; }
.pdf-embed-container { position: relative; width: 100%; padding-bottom: 141%; height: 0; overflow: hidden; border: 1px solid var(--border-color); border-radius: 4px; }
.pdf-embed-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* --- MEDIA QUERIES --- */
@media (max-width: 1200px) {
    .team-grid-four-cols { gap: 1.5rem; }
}

@media (max-width: 992px) {
    #solution .solution-grid { grid-template-columns: 1fr; }
    #process .process-steps { grid-template-columns: 1fr; gap: 3rem; }
    #process .process-steps::before { display: none; }
    .service-detail-content-wrapper { grid-template-columns: 1fr; }
    .service-aside-box { position: static; margin-top: 3rem; }
    .team-grid-four-cols { grid-template-columns: repeat(2, 1fr); }
    .contact-grid {grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));}
    .diagnostic-grid-v2 { grid-template-columns: 1fr; }

    /* en pantallas medianas/pequeñas, el dt y dd se apilan */
    .deliverables .row {
        grid-template-columns: 1fr;
        row-gap: 0.4rem;
    }
}

@media (max-width: 768px) {
    #main-header nav { display: none; }
    .mobile-nav-toggle { display: block; }
    .container { padding: 0 1rem; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 3rem; }
    .hero-content .btn, .cta .btn { display: block; margin-left: auto; margin-right: auto; max-width: 320px; }
    .service-row-section { height: 70vh; }
    .row-overlay { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; background: linear-gradient(90deg, rgba(10, 25, 47, 0.7) 0%, rgba(10, 25, 47, 0.4) 100%); }
    .service-lane { flex: 0 0 90%; scroll-snap-align: center; border-right: none; justify-content: center; text-align: center; padding: 2rem; }
    .service-lane h3 { font-size: 2rem; color: var(--text-light); }
    .service-lane p { text-align: center; }
    .service-lane .arrow-link { opacity: 1; transform: translateY(0); }
    .service-row-section:hover .row-background { transform: scale(1.05); }
    .service-detail-hero { padding: 6rem 1rem 4rem; }
    .service-detail-hero h1 { font-size: 2.2rem; }
    .service-detail-hero p { font-size: 1rem; }
    .service-detail-description h2 { font-size: 1.8rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
    #challenge .stat-item { flex-direction: column; text-align: center; gap: 1rem; }
    #challenge .stat-number { font-size: 4rem; }
    #challenge .stat-text p { text-align: center; }
    .team-grid-four-cols { grid-template-columns: 1fr; }
    .team-member img { height: auto; }
    .contact-grid { grid-template-columns: 1fr; }
    .actionable-insight-box { flex-direction: column; align-items: center; text-align: center; }
}

/* --- ESTILOS ADICIONALES PARA PÁGINA DE CONTACTO (EQUIPO) --- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; align-items: stretch; }
.contact-card { background-color: var(--primary-blue); border: 1px solid var(--border-color); border-radius: 4px; padding: 2.5rem 2rem; transition: var(--transition-fast); display: flex; flex-direction: column; }
.contact-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px -10px rgba(2, 12, 27, 0.7); border-color: var(--accent-cyan); }
.contact-card h4 { color: var(--text-light); font-size: 1.2rem; }
.contact-card .role { color: var(--accent-cyan); font-size: 0.9rem; font-weight: 600; margin-bottom: 2rem; letter-spacing: 0.5px; min-height: 2.8rem; }
.contact-card .contact-details { margin-bottom: 1.5rem; }
.contact-card .info-item { display: flex; align-items: flex-start; margin-bottom: 1.2rem; line-height: 1.4; }
.contact-card .info-item i { font-size: 1.2rem; width: 20px; margin-right: 1.2rem; margin-top: 4px; color: var(--text-dark); }
.contact-card .social-links { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--border-color); text-align: right; }
.contact-card .social-links a { color: var(--text-dark); font-size: 1.6rem; margin-left: 1rem; transition: var(--transition-fast); }
.contact-card .social-links a:hover { color: var(--accent-cyan); transform: scale(1.1); }

/* --- Indicador vertical integrado (línea-pastilla) --- */
.scroll-rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); width: 8px; height: 60vh; background: linear-gradient(180deg, rgba(204,214,246,0.08), rgba(204,214,246,0.25), rgba(204,214,246,0.08)); border-radius: 999px; z-index: 50; overflow: hidden; }
.scroll-rail::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 22%; background: radial-gradient(ellipse at 50% 0%, rgba(0,174,239,0.35) 0%, rgba(0,174,239,0.15) 45%, rgba(0,174,239,0) 70%); animation: rail-hint 1.7s infinite ease-in-out; opacity: 0; }
.scroll-rail.show-arrow::after { opacity: 1; }
@keyframes rail-hint { 0% { transform: translateY(0); } 50% { transform: translateY(8px); } 100% { transform: translateY(0); } }

/* Thumb de progreso y flecha de bajada */
.scroll-rail .rail-thumb { position: absolute; left: 1px; width: 6px; height: 64px; top: 0; background: linear-gradient(180deg, rgba(0,174,239,0.8), rgba(0,174,239,0.45)); border-radius: 999px; box-shadow: 0 0 10px rgba(0,174,239,0.25); transition: top 260ms ease, height 260ms ease, opacity 200ms ease; }
.scroll-rail .rail-thumb::after { content: '\f063'; /* fa-arrow-down */ font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 0.7rem; color: var(--accent-cyan); opacity: 0; transition: opacity 220ms ease, transform 220ms ease; }
.scroll-rail.show-arrow .rail-thumb::after { opacity: 1; animation: arrow-pop 1.2s infinite ease-in-out; }
@keyframes arrow-pop { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 4px); } }

@media (max-width: 768px) {
    .scroll-rail { right: 10px; height: 50vh; width: 7px; }
}
