/* ==========================================================================
   Asociación BRILLAR — Hoja de Estilos Principal
   Diseño responsivo Mobile-First optimizado para móviles, tablets y desktop
   ========================================================================== */

:root {
    --navy-950: #091b38;
    --navy-900: #0f2c59;
    --navy-800: #163a70;
    --gold-500: #d99b26;
    --gold-400: #f59e0b;
    --gold-100: #fef3c7;
    --red-600: #dc2626;
    --red-50: #fef2f2;
    --green-700: #047857;
    --green-600: #059669;
    --green-50: #ecfdf5;
    --indigo-600: #4338ca;
    --indigo-50: #eef2ff;
    --coral-500: #ea580c;

    --bg-white: #ffffff;
    --bg-muted: #f8fafc;
    --border-color: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #475569;
    --text-light: #cbd5e1;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 8px rgba(15, 44, 89, 0.06);
    --shadow-md: 0 10px 28px rgba(15, 44, 89, 0.10);
    --shadow-lg: 0 18px 42px rgba(15, 44, 89, 0.16);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --header-height: 74px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-main);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--navy-900);
    line-height: 1.22;
    margin-top: 0;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--navy-800);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--navy-900);
    color: #fff;
    padding: 0.75rem 1rem;
    z-index: 2000;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* Contenedor fluido que aprovecha bien el ancho en desktop y deja margen cómodo en móvil */
.container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    text-align: center;
}
.btn:hover {
    transform: translateY(-1px);
}
.btn-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
}
.btn-block {
    width: 100%;
}
.btn-primary {
    background: var(--gold-400);
    color: var(--navy-950);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.28);
}
.btn-primary:hover {
    background: #fbbf24;
    color: var(--navy-950);
}
.btn-outline-light {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
}
.btn-outline-light:hover {
    background: #ffffff;
    color: var(--navy-900);
}
.btn-outline-dark {
    background: transparent;
    color: var(--navy-900);
    border-color: var(--navy-900);
}
.btn-outline-dark:hover {
    background: var(--navy-900);
    color: #ffffff;
}
.btn-green {
    background: var(--green-600);
    color: #ffffff;
}
.btn-green:hover {
    background: var(--green-700);
    color: #ffffff;
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    flex-shrink: 0;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    background: #ffffff;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text strong {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: var(--navy-900);
}

.brand-text small {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 0.35rem 0;
    position: relative;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--navy-900);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gold-400);
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
}

.menu-bar {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--navy-900);
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    background: radial-gradient(circle at 80% 20%, #1d4ed8 0%, var(--navy-900) 45%, var(--navy-950) 100%);
    color: #ffffff;
    padding-block: clamp(2.75rem, 6vw, 4.75rem);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 3.5rem);
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(254, 240, 138, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(1.95rem, 4vw, 3.1rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.1rem;
}

.text-gold {
    color: #fbbf24;
}

.text-green {
    color: var(--green-600);
}

.hero-lead {
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    color: #e2e8f0;
    max-width: 62ch;
    margin-bottom: 1.6rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.hero-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 1.35rem;
}

.pillar-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #ffffff;
}

.pillar-item span {
    font-size: 0.82rem;
    color: #cbd5e1;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-logo-card {
    background: #ffffff;
    padding: clamp(1rem, 2.5vw, 1.75rem);
    border-radius: 28px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
    max-width: 390px;
    width: 100%;
}

.hero-logo-card img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */
.section {
    padding-block: clamp(3rem, 6vw, 4.75rem);
}

.section-light {
    background: var(--bg-white);
}

.section-muted {
    background: var(--bg-muted);
}

.section-green-tint {
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.section-header {
    max-width: 760px;
    margin-bottom: clamp(1.75rem, 3.5vw, 2.6rem);
}

.section-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--navy-800);
    background: #e0f2fe;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.65rem;
}

.kicker-red {
    color: #991b1b;
    background: #fee2e2;
}

.kicker-green {
    color: #065f46;
    background: #d1fae5;
}

.kicker-indigo {
    color: #3730a3;
    background: #e0e7ff;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    margin-bottom: 0.65rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.03rem;
    margin-bottom: 0;
}

/* ==========================================================================
   IDENTIDAD
   ========================================================================== */
.identity-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.35fr);
    gap: clamp(1.5rem, 3.5vw, 2.75rem);
    align-items: center;
}

.identity-logo-showcase {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.identity-logo-showcase img {
    margin-inline: auto;
    max-width: 260px;
    margin-bottom: 1.15rem;
}

.identity-summary {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--navy-900);
    background: #fffbeb;
    border-left: 4px solid var(--gold-400);
    padding: 0.85rem 1rem;
    border-radius: 0 10px 10px 0;
    text-align: left;
    margin-bottom: 0;
}

.identity-cards {
    display: grid;
    gap: 1rem;
}

.feature-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.feature-card h3 {
    font-size: 1.08rem;
    margin-bottom: 0.35rem;
}

.feature-card p {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    color: #ffffff;
}
.icon-blue { background: #2563eb; }
.icon-coral { background: #ea580c; }
.icon-gold { background: #d97706; }

/* ==========================================================================
   EDUCACIÓN VIAL - PARE SU ACTITUD
   ========================================================================== */
.pare-banner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1.25rem, 3vw, 2.25rem);
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
    border: 1px solid #fecaca;
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.pare-sign {
    display: flex;
    justify-content: center;
}

.pare-banner-text h3 {
    font-size: 1.35rem;
    color: #991b1b;
    margin-bottom: 0.6rem;
}

.pare-banner-text p:last-child {
    margin-bottom: 0;
}

/* Tabs */
.tabs-wrapper {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.85rem;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: #ffffff;
    color: var(--navy-900);
}

.tab-btn.is-active {
    background: var(--navy-900);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 44, 89, 0.22);
}

.tabs-panels {
    padding: clamp(1.35rem, 3vw, 2.2rem);
}

.panel-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--red-600);
    background: var(--red-50);
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.7rem;
}

.tab-panel h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    margin-bottom: 0.85rem;
}

.tab-panel p {
    color: var(--text-main);
}

.panel-highlight {
    margin-top: 1.2rem;
    padding: 0.95rem 1.15rem;
    background: #f8fafc;
    border-left: 4px solid var(--navy-900);
    border-radius: 0 10px 10px 0;
    font-weight: 600;
    color: var(--navy-900);
}

/* ==========================================================================
   GALERÍAS DE VIDEO
   ========================================================================== */
.media-block {
    margin-top: 2rem;
}

.media-block-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.media-block-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.media-block-header p {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.video-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #94a3b8;
}

.video-thumb {
    position: relative;
    height: 122px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.thumb-vial {
    background: linear-gradient(135deg, #0f2c59 0%, #b91c1c 100%);
}

.thumb-green {
    background: linear-gradient(135deg, #065f46 0%, #059669 100%);
}

.thumb-indigo {
    height: 210px;
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%);
}

.play-badge {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    border: 2px solid #ffffff;
    display: grid;
    place-items: center;
    font-size: 1rem;
    padding-left: 3px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.play-badge-lg {
    width: 62px;
    height: 62px;
    font-size: 1.35rem;
}

.video-card:hover .play-badge {
    transform: scale(1.08);
    background: var(--gold-400);
    color: var(--navy-950);
    border-color: var(--gold-400);
}

.video-num {
    position: absolute;
    bottom: 0.6rem;
    right: 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.48);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.video-meta {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.video-meta strong {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--navy-900);
    line-height: 1.3;
}

.video-meta small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   MOVILIDAD S-CAPA-T
   ========================================================================== */
.scapat-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.85fr);
    gap: clamp(1.5rem, 3.5vw, 2.75rem);
    align-items: start;
    margin-bottom: 2.25rem;
}

.lead-paragraph {
    font-size: 1.08rem;
    font-weight: 500;
    color: var(--navy-900);
}

.scapat-quote {
    margin: 0 0 1.25rem 0;
    padding: 1.5rem;
    background: var(--navy-900);
    color: #ffffff;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.45;
    box-shadow: var(--shadow-md);
}

.scapat-quote footer {
    margin-top: 0.85rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #fde68a;
}

.scapat-benefits {
    background: #ffffff;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-md);
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
}

.scapat-benefits h3 {
    font-size: 1.1rem;
    color: var(--green-700);
    margin-bottom: 0.85rem;
}

.scapat-benefits ul {
    margin: 0 0 1.25rem 0;
    padding-left: 1.15rem;
}

.scapat-benefits li {
    margin-bottom: 0.55rem;
    font-size: 0.93rem;
}

/* ==========================================================================
   PSICOLOGÍA
   ========================================================================== */
.psych-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.85fr);
    gap: clamp(1.5rem, 3.5vw, 3rem);
    align-items: center;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0 0;
    display: grid;
    gap: 0.65rem;
}

.check-list li {
    position: relative;
    padding-left: 1.75rem;
    font-weight: 500;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--indigo-600);
    font-weight: 800;
}

/* ==========================================================================
   ALIANZAS
   ========================================================================== */
.allies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.ally-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--navy-900);
    border-radius: var(--radius-md);
    padding: 1.45rem;
    box-shadow: var(--shadow-sm);
}

.ally-card h3 {
    font-size: 1.12rem;
    margin-bottom: 0.3rem;
}

.ally-person {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--gold-500);
    margin-bottom: 0.75rem;
}

.ally-card p:last-child {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.94rem;
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.75rem, 4vw, 3.25rem);
    align-items: start;
}

.contact-cards {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.contact-mini-card {
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.contact-mini-card strong {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.contact-mini-card a {
    font-weight: 600;
    color: var(--navy-900);
    text-decoration: underline;
}

.contact-form {
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(1.35rem, 3vw, 2rem);
    box-shadow: var(--shadow-sm);
}

.hp-field {
    position: absolute;
    left: -9999px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.72rem 0.9rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-main);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy-900);
    box-shadow: 0 0 0 3px rgba(15, 44, 89, 0.12);
}

.form-status {
    margin-top: 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 1.25rem;
}
.form-status.is-success { color: var(--green-700); }
.form-status.is-error { color: var(--red-600); }

/* ==========================================================================
   FOOTER Y CRÉDITO MDIGITAL
   ========================================================================== */
.site-footer {
    background: var(--navy-950);
    color: #cbd5e1;
    padding-top: 3.25rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2.25rem;
    padding-bottom: 2.5rem;
}

.footer-logo-wrap {
    display: inline-block;
    background: #ffffff;
    padding: 0.45rem;
    border-radius: 14px;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.footer-desc {
    font-size: 0.92rem;
    max-width: 38ch;
    margin-bottom: 0.65rem;
}

.footer-location {
    font-size: 0.84rem;
    color: #94a3b8;
    margin-bottom: 0;
}

.footer-heading {
    color: #ffffff;
    font-size: 0.98rem;
    margin-bottom: 0.9rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.9rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-block: 1.1rem;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.copyright {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0;
}

/* Crédito muy pequeño solicitado: Elaborado con ❤️ por MDIGITAL */
.mdigital-credit {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    color: rgba(203, 213, 225, 0.72);
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.mdigital-credit span {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.05em;
}

.heart-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ==========================================================================
   MODAL DE VIDEO
   ========================================================================== */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.video-modal[hidden] {
    display: none;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 27, 56, 0.82);
    backdrop-filter: blur(4px);
}

.video-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 820px;
    background: #0f172a;
    color: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.video-modal-header h3 {
    color: #ffffff;
    font-size: 1rem;
    margin: 0;
}

.video-modal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.1rem 0.4rem;
}

.video-modal-body {
    padding: 1rem;
    background: #000000;
}

.video-modal-body video {
    width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    background: #000000;
}

.video-missing-notice {
    padding: 1.5rem;
    text-align: center;
    color: #e2e8f0;
}

.video-missing-notice code {
    display: inline-block;
    margin-top: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    color: #fde68a;
    word-break: break-all;
}

/* ==========================================================================
   RESPONSIVE: TABLET Y MÓVIL
   ========================================================================== */
@media (max-width: 960px) {
    .hero-grid,
    .identity-layout,
    .scapat-grid,
    .psych-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
    }

    .hero-logo-card {
        max-width: 250px;
        padding: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 780px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        padding: 1.25rem;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .main-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .nav-link {
        display: block;
        padding: 0.55rem 0.25rem;
        font-size: 1rem;
    }

    .nav-cta {
        margin-top: 0.4rem;
    }

    .pare-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pare-banner-text {
        text-align: left;
    }

    .hero-pillars {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-actions .btn {
        width: 100%;
    }

    .tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   PILLS DE REDES SOCIALES EN CONTACTO
   ========================================================================== */
.social-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--navy-900);
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}

.social-pill:hover {
    background: var(--navy-900);
    color: #ffffff;
    border-color: var(--navy-900);
    transform: translateY(-1px);
}

.social-pill-whatsapp_voluntarios {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #065f46;
}

.social-pill-whatsapp_voluntarios:hover {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
}

/* ==========================================================================
   BOTÓN FLOTANTE ORIGINAL DE WHATSAPP — VOLUNTARIADO BRILLAR
   ========================================================================== */
.wa-volunteer-widget {
    position: fixed;
    right: clamp(0.9rem, 2.2vw, 1.5rem);
    bottom: 4.5rem;
    z-index: 1400;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
    pointer-events: none;
}

.wa-callout,
.wa-fab {
    pointer-events: auto;
}

/* Globo sugerente de invitación al voluntariado */
.wa-callout {
    position: relative;
    max-width: 268px;
    background: #ffffff;
    border: 1px solid #d1fae5;
    border-left: 4px solid #25d366;
    border-radius: 16px 16px 4px 16px;
    padding: 0.8rem 1.8rem 0.8rem 0.95rem;
    box-shadow: 0 14px 32px rgba(9, 27, 56, 0.18);
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.wa-callout.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.wa-callout.is-hidden {
    display: none;
}

.wa-callout-close {
    position: absolute;
    top: 0.35rem;
    right: 0.45rem;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.wa-callout-close:hover {
    background: #f1f5f9;
    color: var(--navy-900);
}

.wa-callout-link {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-decoration: none;
}

.wa-callout-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #047857;
}

.wa-callout-title {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    line-height: 1.25;
    color: var(--navy-900);
}

.wa-callout-cta {
    font-size: 0.78rem;
    font-weight: 700;
    color: #16a34a;
}

.wa-callout-link:hover .wa-callout-cta {
    text-decoration: underline;
}

/* Botón flotante principal con pulso y destello BRILLAR */
.wa-fab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff !important;
    padding: 0.7rem 1.15rem 0.7rem 0.85rem;
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(18, 140, 126, 0.38);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.wa-fab:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 32px rgba(18, 140, 126, 0.48);
}

.wa-icon {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.wa-fab-label {
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

/* Destello dorado inspirado en la estrella de Asociación BRILLAR */
.wa-spark-badge {
    position: absolute;
    top: -5px;
    left: -4px;
    z-index: 3;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    border: 2px solid #ffffff;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.45);
    animation: waSparkFloat 2.8s ease-in-out infinite;
}

/* Anillo de pulso sutil */
.wa-pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 2px solid rgba(37, 211, 102, 0.75);
    animation: waPulse 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    pointer-events: none;
}

@keyframes waPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.16, 1.32);
        opacity: 0;
    }
    100% {
        transform: scale(1.16, 1.32);
        opacity: 0;
    }
}

@keyframes waSparkFloat {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.12) rotate(12deg);
    }
}

@media (max-width: 780px) {
    .wa-volunteer-widget {
        bottom: 5.5rem;
    }
}

@media (max-width: 600px) {
    .wa-volunteer-widget {
        bottom: 5.75rem;
    }

    .wa-callout {
        max-width: 230px;
        padding: 0.7rem 1.6rem 0.7rem 0.85rem;
    }

    .wa-callout-title {
        font-size: 0.85rem;
    }

    .wa-fab {
        padding: 0.65rem 1rem 0.65rem 0.78rem;
        font-size: 0.84rem;
    }

    .wa-icon {
        width: 26px;
        height: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-pulse-ring,
    .wa-spark-badge {
        animation: none;
    }
}
