/* =============================================
   HEROICO CUERPO DE BOMBEROS TAPACHULA
   Estilos principales
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;600&display=swap');

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

:root {
    --red: #C62828;
    --red-dark: #8E0000;
    --red-light: #EF5350;
    --yellow: #FFB300;
    --yellow-dark: #F57F17;
    --black: #1a1a1a;
    --gray-dark: #2d2d2d;
    --gray: #555;
    --gray-light: #f4f4f4;
    --white: #ffffff;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--black);
    line-height: 1.65;
    background: var(--white);
    overflow-x: hidden;
}

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

a { text-decoration: none; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============ EMERGENCY BAR ============ */
.emergency-bar {
    background: var(--red-dark);
    color: #fff;
    font-size: 0.82rem;
    font-family: var(--font-body);
    padding: 6px 0;
}
.emergency-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.emergency-bar a { color: var(--yellow); font-weight: 600; }
.emergency-bar .sep { opacity: 0.4; }

/* ============ HEADER ============ */
header {
    background: var(--red);
    color: #fff;
    padding: 0.75rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 3px 12px rgba(0,0,0,0.35);
    transition: background 0.3s, transform 0.35s ease;
    overflow: visible;
}
header.header-hidden {
    transform: translateY(-100%);
}
header.scrolled {
    background: rgba(140, 0, 0, 0.97);
    backdrop-filter: blur(8px);
}

/* ============ HEADER CONTAINER — 3 ZONAS ============ */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
}

/* Logo — pegado a la izquierda con pequeño margen */
.logo-section {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    z-index: 2;
}

/* Nav central — centrado absolutamente para independencia total */
@media (min-width: 769px) {
    #mainNav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        z-index: 1;
    }
    #mainNav > ul {
        display: flex;
        align-items: center;
        gap: 4px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    /* Botón Contacto — fuera del nav, alineado a la derecha */
    #mainNav > ul > li.nav-cta-item {
        display: none;
    }
}

/* Botón Contacto independiente a la derecha */
.header-cta {
    flex-shrink: 0;
    z-index: 2;
}
.header-cta a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: var(--yellow);
    color: var(--red-dark);
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
}
.header-cta a:hover {
    background: #fff;
    transform: translateY(-1px);
}

.logo-circle {
    width: 72px;
    height: 72px;
    background: #fff;
    border-radius: 50%;
    border: 3px solid var(--yellow);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-circle img { width: 100%; height: 100%; object-fit: contain; }

.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-top {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
}
.logo-bottom {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--yellow);
    line-height: 1;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}
nav a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    text-transform: uppercase;
}
nav a:hover { background: rgba(255,255,255,0.12); color: var(--yellow); }
nav a.nav-cta {
    background: var(--yellow);
    color: var(--red-dark);
    font-weight: 700;
}
nav a.nav-cta:hover { background: #fff; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(140,0,0,0.8) 0%, rgba(0,0,0,0.75) 60%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 0 80px;
    max-width: 750px;
}

.hero-badge {
    display: inline-block;
    background: var(--yellow);
    color: var(--red-dark);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 3px;
    padding: 6px 18px;
    border-radius: 2px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-shadow: 2px 3px 10px rgba(0,0,0,0.5);
}
.hero-title span { color: var(--yellow); }

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-emergency {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--yellow);
    color: var(--red-dark);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.btn-emergency:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.4); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    padding: 16px 30px;
    border-radius: 4px;
    border: 2px solid rgba(255,255,255,0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.hero-slider-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}
.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    padding: 0;
}
.dot.active { background: var(--yellow); border-color: var(--yellow); }

.hero-number-banner {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 3;
    padding: 14px 0;
    border-top: 3px solid var(--red);
}
.hero-number-banner .container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1px;
}
.hero-number-banner strong { color: var(--yellow); font-size: 1.3rem; }
.hero-number-banner .sep-v { opacity: 0.3; }

/* ============ SECTION TITLES ============ */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--red-dark);
    position: relative;
    margin-bottom: 12px;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--yellow);
    margin-top: 10px;
    border-radius: 2px;
}
.section-title.centered { text-align: center; }
.section-title.centered::after { margin: 10px auto 0; }
.section-title.light { color: #fff; }
.section-title.light::after { background: var(--yellow); }

.section-sub {
    text-align: center;
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 50px;
    margin-top: 8px;
}
.section-sub.light { color: rgba(255,255,255,0.75); }

/* ============ NOSOTROS ============ */
.nosotros-section { padding: 90px 0; background: var(--white); }
.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.nosotros-img { position: relative; border-radius: 8px; overflow: hidden; }
.nosotros-img img { width: 100%; height: 420px; object-fit: cover; border-radius: 8px; }
.nosotros-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--red);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}
.nosotros-text .section-title { margin-bottom: 20px; }
.nosotros-text p { margin-bottom: 16px; color: var(--gray); font-size: 1.02rem; }
.nosotros-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}
.stat { text-align: center; }
.stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--red);
}
.stat span { font-size: 0.85rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }

/* ============ SERVICIOS ============ */
.servicios-section { padding: 90px 0; background: var(--gray-light); }
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}
.servicio-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.servicio-img-wrap { position: absolute; inset: 0; }
.servicio-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.servicio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(140,0,0,0.92) 0%, rgba(0,0,0,0.3) 100%);
    transition: opacity 0.3s;
}
.servicio-card:hover .servicio-img-wrap img { transform: scale(1.08); }
.servicio-info {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    padding: 20px;
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.servicio-info i { font-size: 1.8rem; color: var(--yellow); }
.servicio-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.otros-servicios {
    background: #fff;
    border-radius: 8px;
    padding: 36px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.otros-servicios h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--red-dark);
    text-transform: uppercase;
    margin-bottom: 12px;
}
.otros-servicios p { color: var(--gray); margin-bottom: 20px; }
.otros-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 24px; }
.otros-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--gray); font-size: 0.95rem; }
.otros-list li i { color: var(--red); margin-top: 3px; flex-shrink: 0; }

.btn-red {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--red);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
}
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ============ GALERÍA ============ */
.galeria-section {
    padding: 90px 0;
    background: var(--gray-dark);
}
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 12px;
    margin-top: 40px;
}
.galeria-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.galeria-item.tall { grid-row: span 2; aspect-ratio: auto; }
.galeria-item.wide { grid-column: span 2; aspect-ratio: auto; }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.galeria-hover {
    position: absolute;
    inset: 0;
    background: rgba(140,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.galeria-hover i { color: #fff; font-size: 2rem; }
.galeria-item:hover img { transform: scale(1.07); }
.galeria-item:hover .galeria-hover { opacity: 1; }

/* ============ EMERGENCY BANNER ============ */
.emergency-banner {
    background: var(--red);
    padding: 30px 0;
}
.emergency-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.eb-left {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
}
.eb-left i { font-size: 2.2rem; color: var(--yellow); flex-shrink: 0; }
.eb-left div { display: flex; flex-direction: column; }
.eb-left strong { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; text-transform: uppercase; }
.eb-left span { font-size: 0.88rem; opacity: 0.8; }
.eb-numbers {
    display: flex;
    align-items: center;
    gap: 16px;
}
.eb-numbers a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--yellow);
    letter-spacing: 1px;
    transition: color 0.2s;
}
.eb-numbers a:hover { color: #fff; }
.eb-numbers span { color: rgba(255,255,255,0.3); font-size: 1.5rem; }

/* ============ VOLUNTARIADO ============ */
.voluntariado-section { padding: 90px 0; background: var(--white); }
.voluntariado-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.voluntariado-text .section-title { margin-bottom: 20px; }
.voluntariado-text p { color: var(--gray); margin-bottom: 24px; }
.vol-requisitos { list-style: none; margin-bottom: 30px; display: flex; flex-direction: column; gap: 10px; }
.vol-requisitos li { display: flex; align-items: center; gap: 12px; color: var(--gray); }
.vol-requisitos li i { color: var(--red); font-size: 0.9rem; }
.voluntariado-img {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.voluntariado-img img { width: 100%; height: 450px; object-fit: cover; }
.voluntariado-img::before {
    content: '';
    position: absolute;
    top: -12px; left: -12px;
    width: 100%; height: 100%;
    border: 4px solid var(--yellow);
    border-radius: 8px;
    z-index: -1;
}

/* ============ ESTACIONES ============ */
.estaciones-section { padding: 90px 0; background: var(--gray-light); }
.estaciones-tabs {
    display: flex;
    gap: 8px;
    margin: 36px 0 0;
    border-bottom: 3px solid #ddd;
}
.etab {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: color 0.2s, border-color 0.2s;
}
.etab.active { color: var(--red); border-color: var(--red); }
.estacion-panel { display: none; padding: 36px 0; }
.estacion-panel.active { display: block; }
.estacion-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: start;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.estacion-info { padding: 36px; }
.estacion-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.estacion-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
}
.estacion-info ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.estacion-info li { display: flex; align-items: flex-start; gap: 12px; color: var(--gray); font-size: 0.95rem; }
.estacion-info li i { color: var(--red); margin-top: 3px; width: 16px; flex-shrink: 0; }
.estacion-info a { color: var(--red); font-weight: 600; }
.estacion-map iframe { display: block; }

/* ============ DONACIONES ============ */
.donaciones-section {
    padding: 90px 0;
    background: var(--red-dark);
}
.donaciones-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: start;
}
.donaciones-text .section-title { margin-bottom: 20px; }
.donaciones-text p { color: rgba(255,255,255,0.8); margin-bottom: 20px; }
.donaciones-text h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}
.dona-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.dona-list li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.dona-list li i { color: var(--yellow); width: 18px; flex-shrink: 0; }

.donaciones-metodos {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 36px;
}
.donaciones-metodos h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}
.dona-opciones { display: flex; flex-direction: column; gap: 14px; }
.dona-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    width: 100%;
}
.dona-btn i { font-size: 1.3rem; color: var(--yellow); width: 24px; flex-shrink: 0; }
.dona-btn:hover { background: rgba(255,255,255,0.18); border-color: var(--yellow); transform: translateX(4px); }

/* ============ ESTRUCTURA ============ */
.estructura-section {
    padding: 90px 0;
    background: linear-gradient(135deg, #1a0a0a 0%, #2d0f0f 40%, #1f1010 100%);
    position: relative;
    overflow: hidden;
}
.estructura-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(198,40,40,0.18) 0%, transparent 55%),
                      radial-gradient(circle at 80% 20%, rgba(255,179,0,0.07) 0%, transparent 45%);
    pointer-events: none;
}
.estructura-section .section-title { color: #fff; }
.estructura-section .section-title::after { background: var(--yellow); }

.estructura-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}
.estructura-card {
    text-align: center;
    padding: 36px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);
    transition: box-shadow 0.3s, transform 0.3s, background 0.3s, border-color 0.3s;
}
.estructura-card:hover {
    transform: translateY(-8px);
    background: rgba(198,40,40,0.18);
    border-color: rgba(198,40,40,0.4);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.ec-icon {
    width: 70px;
    height: 70px;
    background: rgba(198,40,40,0.2);
    border: 2px solid rgba(198,40,40,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--yellow);
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.estructura-card:hover .ec-icon {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    transform: scale(1.1);
}
.estructura-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.estructura-card p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.55; }

/* ============ CONTACTO ============ */
.contacto-section { padding: 90px 0; background: var(--gray-light); }
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    margin-top: 50px;
    align-items: start;
}
.contacto-info { display: flex; flex-direction: column; gap: 16px; }
.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--red);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}
.contacto-item:hover { transform: translateX(5px); }
.ci-icon {
    font-size: 1.4rem;
    color: var(--red);
    width: 40px;
    flex-shrink: 0;
    margin-top: 2px;
    text-align: center;
}
.contacto-item h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--red-dark);
    margin-bottom: 4px;
}
.contacto-item p { color: var(--gray); font-size: 0.92rem; line-height: 1.5; }
.contacto-item a { color: var(--red); font-weight: 600; }

.contacto-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    height: 420px;
    position: relative;
}
.contacto-map iframe { width: 100%; height: 100%; border: 0; }
.directions-btn {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 11px 24px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}
.directions-btn:hover { background: var(--red-dark); transform: translateX(-50%) translateY(-2px); }

/* ============ FOOTER ============ */
footer {
    background: var(--black);
    color: rgba(255,255,255,0.75);
    padding: 60px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 28px;
}

.footer-logo-wrap {
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
    border: 2px solid var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.footer-brand > div p { font-size: 0.82rem; color: var(--yellow); }
.footer-desc { font-size: 0.88rem; margin-top: 16px; line-height: 1.6; }

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--yellow);
    margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; }
.footer-col li i { color: var(--red-light); margin-top: 3px; flex-shrink: 0; }
.footer-col a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.footer-col a:hover { color: var(--yellow); }

.footer-social { display: flex; gap: 10px; margin-bottom: 20px; }
.footer-social a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--red); color: #fff; }

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--yellow); }

.footer-bottom {
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.footer-bottom strong { color: var(--yellow); }

/* ============ MODALES ============ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-box {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    position: relative;
}
.modal-box h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--red-dark);
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-box p { color: var(--gray); margin-bottom: 10px; font-size: 0.95rem; }
.modal-box small { color: #aaa; font-size: 0.82rem; }
.modal-close {
    position: absolute;
    top: 14px; right: 16px;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--gray);
    line-height: 1;
    transition: color 0.2s;
}
.modal-close:hover { color: var(--red); }

/* =============================================
   RESPONSIVE — COMPLETO Y REVISADO
   ============================================= */

/* ---- Tablets grandes y laptops pequeñas (≤1200px) ---- */
@media (max-width: 1200px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
    .logo-bottom { font-size: 1.45rem; }
}

/* ---- Tablets (≤1024px) ---- */
@media (max-width: 1024px) {
    section { padding: 70px 0; }

    /* Header */
    .logo-bottom { font-size: 1.3rem; }
    nav a { font-size: 0.88rem; padding: 8px 10px; }

    /* Grids de 2 columnas → 1 columna */
    .nosotros-grid,
    .voluntariado-grid,
    .donaciones-grid { grid-template-columns: 1fr; gap: 40px; }

    /* Imágenes de secciones */
    .nosotros-img img { height: 300px; }
    .voluntariado-img img { height: 300px; }
    .voluntariado-img::before { display: none; }

    /* Servicios */
    .servicios-grid { grid-template-columns: repeat(2, 1fr); }

    /* Galería */
    .galeria-grid { grid-template-columns: repeat(3, 1fr); }

    /* Estaciones */
    .estacion-grid { grid-template-columns: 1fr; }
    .estacion-map iframe { height: 260px; }

    /* Estructura */
    .estructura-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

    /* Noticias */
    .noticias-grid { grid-template-columns: 1fr; }
    .noticias-side { flex-direction: row; flex-wrap: wrap; gap: 16px; }
    .noticia-card.small { flex: 1 1 260px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }

    /* Contacto */
    .contacto-grid { grid-template-columns: 1fr; }
    .contacto-map { height: 340px; }
}

/* ---- Tablets pequeñas y móviles grandes (≤768px) ---- */
@media (max-width: 768px) {

    /* Barra de emergencias */
    .emergency-bar { display: none; }

    /* Header — menú hamburguesa */
    header { position: fixed; top: 0; }
    .menu-toggle { display: flex; }

    /* Overlay oscuro detrás del menú */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.55);
        z-index: 996;
        opacity: 0;
        transition: opacity 0.35s ease;
        backdrop-filter: blur(2px);
    }
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Menú drawer de izquierda a derecha */
/* Menú drawer de derecha a izquierda */
nav#mainNav {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0; /* cambiado */
    width: 80%;
    max-width: 300px;
    height: 100dvh;
    background: linear-gradient(180deg, #1a0505 0%, #2d0a0a 60%, #1a0505 100%);
    z-index: 997;
    padding: 0;
    box-shadow: -6px 0 30px rgba(0,0,0,0.5); /* invertido */
    transform: translateX(100%); /* cambiado */
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
}
    nav#mainNav.active {
        transform: translateX(0);
    }

    /* Cabecera del drawer */
    nav#mainNav::before {
        content: '';
        display: block;
        width: 100%;
        height: 5px;
        background: linear-gradient(90deg, var(--red), var(--yellow), var(--red));
        flex-shrink: 0;
    }

    /* Links del menú */
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
        flex: 1;
    }
    nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px 24px;
        border-radius: 0;
        font-size: 1rem;
        letter-spacing: 1px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        color: rgba(255,255,255,0.85);
        position: relative;
        transition: background 0.2s, color 0.2s;
        text-align: center;
    }
    nav a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0; bottom: 0;
        width: 0;
        background: var(--red);
        transition: width 0.25s ease;
        border-radius: 0 3px 3px 0;
    }
    nav a:hover, nav a.active {
        background: rgba(255,255,255,0.05);
        color: #fff;
    }
    nav a:hover::before, nav a.active::before { width: 3px; }
    nav a::after { display: none; }

    nav a.nav-cta {
        margin: 10px 20px 0;
        border-radius: 6px;
        text-align: center;
        border-bottom: none;
        justify-content: center;
        padding-left: 24px;
    }
    nav a.nav-cta:hover { padding-left: 24px; }
    nav a.nav-cta::before { display: none; }

    /* Redes sociales al fondo del drawer */
    .nav-social {
        padding: 20px 24px;
        border-top: 1px solid rgba(255,255,255,0.08);
        flex-shrink: 0;
    }
    .nav-social p {
        font-size: 0.7rem;
        color: rgba(255,255,255,0.35);
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 12px;
        font-family: var(--font-heading);
    }
    .nav-social-icons {
        display: flex;
        gap: 10px;
    }
    .nav-social-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        text-decoration: none;
        color: #fff;
        transition: transform 0.2s, opacity 0.2s;
    }
    .nav-social-icon:hover { transform: translateY(-2px); opacity: 0.85; }
    .nav-social-icon.fb  { background: #1877F2; }
    .nav-social-icon.wa  { background: #25D366; }
    .nav-social-icon.ig  { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }

    /* Sidebar flotante — oculta en móvil */
    .floating-sidebar { display: none !important; }

    /* Logo más pequeño */
    .logo-circle { width: 56px; height: 56px; }
    .logo-top { font-size: 0.7rem; letter-spacing: 1px; }
    .logo-bottom { font-size: 1.15rem; }

    /* Hero */
    .hero-content { padding: 90px 0 70px; }
    .hero-badge { font-size: 0.7rem; letter-spacing: 2px; }
    .hero-sub { font-size: 1rem; }
    .hero-number-banner .container {
        font-size: 0.85rem;
        gap: 10px;
        flex-direction: column;
    }
    .hero-number-banner strong { font-size: 1.1rem; }
    .hero-number-banner .sep-v { display: none; }
    .hero-slider-dots { bottom: 110px; }

    /* Secciones */
    section { padding: 60px 0; }
    .section-title { font-size: 1.7rem; }

    /* Nosotros */
    .nosotros-stats { justify-content: center; gap: 24px; }

    /* Servicios */
    .servicios-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .otros-list { grid-template-columns: 1fr; }
    .otros-servicios { padding: 24px; }

    /* Galería */
    .galeria-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .galeria-item.tall,
    .galeria-item.wide { grid-row: span 1; grid-column: span 1; }

    /* Banner emergencias */
    .emergency-banner-inner { flex-direction: column; text-align: center; gap: 16px; }
    .eb-left { flex-direction: row; justify-content: center; }
    .eb-numbers { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .eb-numbers a { font-size: 1.4rem; }
    .eb-numbers span { display: none; }

    /* Voluntariado */
    .voluntariado-img img { height: 260px; }

    /* Estaciones */
    .estaciones-tabs { gap: 4px; }
    .etab { padding: 10px 18px; font-size: 0.88rem; }

    /* Noticias */
    .noticias-grid { grid-template-columns: 1fr; }
    .noticias-side { flex-direction: column; }
    .noticia-card.featured .noticia-img-wrap { height: 220px; }
    .noticia-card.featured .noticia-body { padding: 20px; }
    .noticia-card.small { grid-template-columns: 95px 1fr; }
    .noticia-card.small .noticia-img-wrap { min-height: 100px; }

    /* Estructura */
    .estructura-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .estructura-card { padding: 28px 16px; }

    /* Contacto */
    .contacto-grid { grid-template-columns: 1fr; }
    .contacto-map { height: 300px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-brand { grid-column: auto; }

    /* Sidebar flotante */
    .floating-sidebar { display: none; }

    /* Chatbot */
    .chatbot-window { width: 310px; }
    .chatbot-toggle { height: 52px; }
    .icon-extintor { width: 36px; height: 36px; }

    /* Modales */
    .modal-box { padding: 28px 20px; }
}

/* ---- Móviles (≤480px) ---- */
@media (max-width: 480px) {

    .container { width: 94%; }

    /* Hero */
    .hero-title { font-size: 1.9rem; }
    .hero-sub { font-size: 0.95rem; }
    .hero-actions { flex-direction: column; gap: 12px; }
    .btn-emergency,
    .btn-secondary,
    .btn-response-time { width: 100%; justify-content: center; font-size: 1rem; padding: 14px 20px; }
    .hero-badge { font-size: 0.65rem; letter-spacing: 1.5px; padding: 5px 12px; }

    /* Servicios → 1 columna */
    .servicios-grid { grid-template-columns: 1fr; }
    .servicio-card { aspect-ratio: 16/9; }

    /* Galería → 1 columna */
    .galeria-grid { grid-template-columns: 1fr; }

    /* Estructura → 1 columna */
    .estructura-grid { grid-template-columns: 1fr; }

    /* Estaciones — tabs verticales */
    .estaciones-tabs {
        flex-direction: column;
        border-bottom: none;
        border-left: 3px solid #ddd;
        gap: 0;
        padding-left: 0;
    }
    .etab {
        border-bottom: none;
        border-left: 3px solid transparent;
        margin-bottom: 0;
        margin-left: -3px;
        text-align: left;
        padding: 12px 20px;
    }
    .etab.active { border-left-color: var(--red); color: var(--red); border-bottom: none; }

    /* Noticias */
    .noticia-card.small { grid-template-columns: 80px 1fr; }
    .noticia-card.small .noticia-body { padding: 10px 12px; }
    .noticia-card.small h3 { font-size: 0.85rem; }
    .noticia-card.featured h3 { font-size: 1.15rem; }

    /* Nosotros stats */
    .nosotros-stats { flex-wrap: wrap; gap: 20px; justify-content: center; }
    .stat strong { font-size: 1.6rem; }

    /* Donaciones */
    .dona-btn { font-size: 0.88rem; padding: 13px 16px; }

    /* Chatbot */
    .chatbot-container { bottom: 16px; right: 12px; align-items: flex-end; }
    .chatbot-window { width: calc(100vw - 24px); max-height: 480px; }
    .chatbot-label { display: none; }
    .chatbot-toggle { padding: 0 12px 0 8px; border-radius: 50px; align-self: flex-end; }

    /* Footer */
    .footer-social { justify-content: flex-start; }

    /* Emergency banner */
    .eb-left { flex-direction: column; align-items: center; }
    .eb-left i { font-size: 1.6rem; }
}

/* ---- Móviles muy pequeños (≤360px) ---- */
@media (max-width: 360px) {
    .hero-title { font-size: 1.6rem; }
    .logo-top { display: none; }
    .logo-bottom { font-size: 1rem; }
    .logo-circle { width: 48px; height: 48px; }
    .chatbot-window { max-height: 420px; }
    .section-title { font-size: 1.5rem; }
}

/* ============ NOTICIAS ============ */
.noticias-section {
    padding: 90px 0;
    background: var(--white);
    overflow-x: hidden;
}

.noticias-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    margin-top: 50px;
}

/* Tarjeta destacada */
.noticia-card.featured {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0,0,0,0.1);
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}
.noticia-card.featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.14);
}
.noticia-card.featured .noticia-img-wrap {
    height: 280px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.noticia-card.featured .noticia-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.noticia-card.featured:hover .noticia-img-wrap img { transform: scale(1.06); }

.noticia-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%);
    pointer-events: none;
}

.noticia-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--red);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 3px;
    z-index: 2;
}

.noticia-card.featured .noticia-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.noticia-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.noticia-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.noticia-meta i { color: var(--red); }

.noticia-card.featured h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.3;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.noticia-card.featured p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}
.noticia-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--red);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 18px;
    transition: gap 0.2s, color 0.2s;
}
.noticia-link:hover { gap: 12px; color: var(--red-dark); }

/* Columna de noticias pequeñas */
.noticias-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.noticia-card.small {
    display: grid;
    grid-template-columns: 110px 1fr;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.noticia-card.small:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.noticia-card.small .noticia-img-wrap {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 110px;
}
.noticia-card.small .noticia-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.noticia-card.small:hover .noticia-img-wrap img { transform: scale(1.08); }
.noticia-card.small .noticia-tag { font-size: 0.65rem; padding: 4px 8px; top: 8px; left: 8px; }

.noticia-card.small .noticia-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.noticia-card.small .noticia-meta { margin-bottom: 6px; }
.noticia-card.small .noticia-meta span { font-size: 0.72rem; }

.noticia-card.small h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--black);
    line-height: 1.3;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.noticia-card.small p {
    font-size: 0.8rem;
    color: var(--gray);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.noticia-card.small .noticia-link {
    font-size: 0.78rem;
    margin-top: 8px;
}

.noticias-footer-link {
    text-align: center;
    margin-top: 40px;
}

/* ============ FLOATING SIDEBAR ============ */
.floating-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #1a1a1a;
    border-radius: 0 10px 10px 0;
    overflow: hidden;
    box-shadow: 4px 0 20px rgba(0,0,0,0.25);
}

.fsb-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: var(--yellow);
    font-size: 1rem;
    transition: background 0.2s, color 0.2s, width 0.2s;
    text-decoration: none;
    overflow: visible;
}
.fsb-item:hover { background: rgba(0,0,0,0.2); }
.fsb-item.phone { background: var(--red); color: var(--yellow); }

.fsb-tooltip {
    position: absolute;
    left: calc(100% + 8px);
    background: rgba(20,20,20,0.92);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s, transform 0.2s;
}
.fsb-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: rgba(20,20,20,0.92);
}
.fsb-item:hover .fsb-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.fsb-divider {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 0;
}

/* ============ CHATBOT ============ */
.chatbot-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

/* Botón toggle */
.chatbot-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--red);
    border: none;
    border-radius: 50px;
    padding: 0 20px 0 8px;
    height: 58px;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(198,40,40,0.5);
    transition: transform 0.25s, box-shadow 0.25s;
}
.chatbot-toggle:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 32px rgba(198,40,40,0.6);
}
.chatbot-icon-wrap {
    position: relative;
    width: 42px;
    height: 42px;
}
.icon-extintor {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.chatbot-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--yellow);
    color: var(--red-dark);
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-badge 1.8s infinite;
}
@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
.chatbot-label {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Ventana del chat */
.chatbot-window {
    width: 340px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: slideUpChat 0.3s ease;
    transform-origin: bottom right;
    max-height: 520px;
}
.chatbot-window.open {
    display: flex;
}
@keyframes slideUpChat {
    from { opacity: 0; transform: scale(0.88) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Header del chat */
.chatbot-header {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chatbot-avatar {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}
.chatbot-avatar svg { width: 28px; height: 28px; }
.chatbot-header-info strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.chatbot-header-info span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 5px;
}
.chatbot-header-info span::before {
    content: '';
    width: 7px; height: 7px;
    background: #4CAF50;
    border-radius: 50%;
    display: inline-block;
}
.chatbot-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-size: 0.85rem;
}
.chatbot-close:hover { background: rgba(255,255,255,0.3); }

/* Mensajes */
.chatbot-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8f8f8;
    scroll-behavior: smooth;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.chat-msg {
    display: flex;
    flex-direction: column;
    gap: 3px;
    animation: fadeInMsg 0.3s ease;
}
@keyframes fadeInMsg {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot { align-items: flex-start; }
.chat-msg.user { align-items: flex-end; }

.chat-bubble {
    max-width: 85%;
    padding: 11px 15px;
    border-radius: 14px;
    font-size: 0.875rem;
    line-height: 1.55;
}
.chat-msg.bot .chat-bubble {
    background: #fff;
    color: var(--black);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.chat-msg.user .chat-bubble {
    background: var(--red);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-time {
    font-size: 0.68rem;
    color: #aaa;
    padding: 0 4px;
}

/* Opciones predefinidas */
.chat-options { display: flex; flex-direction: column; gap: 7px; }
.options-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}
.chat-option-btn {
    background: #fff;
    border: 1.5px solid #eaeaea;
    color: var(--black);
    font-family: var(--font-body);
    font-size: 0.83rem;
    padding: 9px 14px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
    line-height: 1.3;
}
.chat-option-btn:hover {
    border-color: var(--red);
    background: rgba(198,40,40,0.05);
    color: var(--red-dark);
    transform: translateX(3px);
}

/* Barra inferior del chat */
.chatbot-input-bar {
    padding: 10px 14px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.chat-reset-btn {
    background: var(--gray-light);
    border: none;
    color: var(--gray);
    width: 34px; height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}
.chat-reset-btn:hover { background: var(--red); color: #fff; }
.chat-input-hint {
    font-size: 0.78rem;
    color: #bbb;
    font-style: italic;
}

/* fin estilos chatbot */

/* ============ SKIP LINK (ACCESIBILIDAD) ============ */
/* ============ WHATSAPP en sidebar ============ */
/* Colores permanentes de redes sociales en sidebar */
.fsb-item.whatsapp  { background: #25D366; color: #fff; }
.fsb-item.facebook  { background: #1877F2; color: #fff; }
.fsb-item.instagram { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.fsb-item.twitter   { background: #1DA1F2; color: #fff; }

/* Hover: oscurecer el fondo */
.fsb-item.whatsapp:hover  { background: #1da851; color: #fff; }
.fsb-item.facebook:hover  { background: #1258c7; color: #fff; }
.fsb-item.instagram:hover { background: linear-gradient(135deg,#d4821e,#c94e28,#b81a31,#a81550,#9a0e6e); color: #fff; }
.fsb-item.twitter:hover   { background: #0d8bd9; color: #fff; }

/* Tooltip siempre visible en ítems de teléfono */
.fsb-item.phone .fsb-tooltip {
    opacity: 1;
    transform: translateX(0);
    background: rgba(20,20,20,0.88);
    font-size: 0.75rem;
}

/* ============ FOOTER social WhatsApp ============ */
.footer-social a:nth-child(2):hover { background: #25D366; }

/* ============ NOTICIAS — Facebook note ============ */
.noticias-footer-link {
    text-align: center;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.noticias-fb-note {
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 7px;
}
.noticias-fb-note i { color: #1877F2; }
.noticias-fb-note strong { color: var(--black); }

/* ============ CONSEJOS DE PREVENCIÓN ============ */
.prevencion-section {
    padding: 90px 0;
    background: linear-gradient(180deg, #fff 0%, #faf4f4 100%);
}

.prevencion-tabs {
    display: flex;
    gap: 8px;
    margin: 40px 0 0;
    flex-wrap: wrap;
    justify-content: center;
}

.ptab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 11px 22px;
    background: #fff;
    border: 2px solid #eaeaea;
    border-radius: 50px;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.25s;
}
.ptab i { font-size: 0.95rem; }
.ptab:hover {
    border-color: var(--red);
    color: var(--red);
    background: rgba(198,40,40,0.04);
}
.ptab.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    box-shadow: 0 4px 16px rgba(198,40,40,0.35);
}

.prevencion-panels { margin-top: 36px; }

.prev-panel { display: none; }
.prev-panel.active { display: block; animation: fadeInPanel 0.35s ease; }
@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.prev-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.prev-col {
    background: #fff;
    border-radius: 10px;
    padding: 28px 24px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    border-top: 4px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}
.prev-col:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.prev-col:nth-child(1) { border-top-color: #4CAF50; }
.prev-col:nth-child(2) { border-top-color: var(--yellow); }
.prev-col:nth-child(3) { border-top-color: #2196F3; }

.prev-col h3 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.prev-num {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    background: #4CAF50;
    color: #fff;
    font-size: 0.78rem;
}
.prev-num.durante {
    background: var(--yellow);
    color: var(--red-dark);
}
.prev-num.despues { background: #2196F3; }

.prev-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.prev-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--gray);
    line-height: 1.55;
}
.prev-list li span {
    flex: 1;
    text-align: left;
}
.prev-col:nth-child(1) .prev-list li i { color: #4CAF50; flex-shrink: 0; margin-top: 2px; }
.prev-col:nth-child(2) .prev-list li i { color: var(--yellow-dark); flex-shrink: 0; margin-top: 2px; }
.prev-col:nth-child(3) .prev-list li i { color: #2196F3; flex-shrink: 0; margin-top: 2px; }

.prevencion-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--red);
    color: #fff;
    border-radius: 10px;
    padding: 22px 32px;
    margin-top: 36px;
}
.prevencion-cta i {
    font-size: 2rem;
    color: var(--yellow);
    flex-shrink: 0;
}
.prevencion-cta p { font-size: 1rem; line-height: 1.5; }
.prevencion-cta strong { color: var(--yellow); font-size: 1.1rem; }
.prevencion-cta a { color: var(--yellow); font-weight: 700; text-decoration: underline; }

/* Responsive prevención */
@media (max-width: 900px) {
    .prev-grid { grid-template-columns: 1fr; gap: 16px; }
    .prevencion-tabs { gap: 6px; }
    .ptab { font-size: 0.82rem; padding: 9px 16px; }
}
@media (max-width: 600px) {
    .prevencion-cta { flex-direction: column; text-align: center; padding: 20px; }
    .prevencion-cta i { font-size: 1.5rem; }
    .ptab { font-size: 0.78rem; padding: 8px 14px; gap: 5px; }
}

/* ============ NOTICIA HASHTAGS ============ */
.noticia-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 4px;
}
.noticia-hashtags span {
    font-size: 0.75rem;
    color: var(--red);
    font-weight: 600;
    background: rgba(198,40,40,0.07);
    padding: 2px 8px;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

/* Override: noticias footer link — solo botón, sin nota */
.noticias-footer-link {
    flex-direction: row !important;
    justify-content: center;
}

/* =============================================
   ANIMACIONES MODERNAS
   ============================================= */

/* ============ PRELOADER ============ */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 2;
    position: relative;
}

.preloader-logo {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 50%;
    border: 4px solid var(--red);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: preloaderPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(198,40,40,0.4);
}
.preloader-logo img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}
@keyframes preloaderPulse {
    0%   { box-shadow: 0 0 0 0 rgba(198,40,40,0.5); }
    70%  { box-shadow: 0 0 0 20px rgba(198,40,40,0); }
    100% { box-shadow: 0 0 0 0 rgba(198,40,40,0); }
}

.preloader-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: fadeInUp 0.6s ease 0.3s both;
}
.preloader-title {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
}
.preloader-sub {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--yellow);
    text-transform: uppercase;
}

.preloader-bar-wrap {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}
.preloader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--red), var(--yellow));
    border-radius: 3px;
    transition: width 0.05s linear;
}
.preloader-percent {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
}

/* Llamas decorativas en el preloader */
.preloader-flames {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    padding-bottom: 0;
    pointer-events: none;
}
.flame {
    width: 30px;
    border-radius: 50% 50% 20% 20%;
    animation: flameAnim 1.2s ease-in-out infinite alternate;
    transform-origin: bottom center;
}
.flame:nth-child(1) { height: 60px;  background: linear-gradient(to top, #C62828, #FF6B35, #FFB300); animation-delay: 0s;    width: 25px; }
.flame:nth-child(2) { height: 90px;  background: linear-gradient(to top, #8E0000, #C62828, #FF6B35); animation-delay: 0.2s;  width: 35px; }
.flame:nth-child(3) { height: 110px; background: linear-gradient(to top, #C62828, #FF6B35, #FFD700); animation-delay: 0.1s;  width: 40px; }
.flame:nth-child(4) { height: 80px;  background: linear-gradient(to top, #8E0000, #C62828, #FF6B35); animation-delay: 0.3s;  width: 32px; }
.flame:nth-child(5) { height: 50px;  background: linear-gradient(to top, #C62828, #FF6B35, #FFB300); animation-delay: 0.15s; width: 22px; }
@keyframes flameAnim {
    0%   { transform: scaleY(1)   scaleX(1)    rotate(-2deg); opacity: 0.9; }
    50%  { transform: scaleY(1.1) scaleX(0.95) rotate(1deg);  opacity: 1;   }
    100% { transform: scaleY(0.9) scaleX(1.05) rotate(2deg);  opacity: 0.85;}
}

/* ============ SCROLL REVEAL ============ */
/* ====== SISTEMA SEGURO DE ANIMACIONES ======
   Los elementos SIEMPRE son visibles (opacity:1).
   La clase safe-animated solo añade una entrada
   suave — nunca oculta nada previamente.         */
.safe-animated {
    animation: safeEntrance 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes safeEntrance {
    from { opacity: 0.2; transform: translateY(18px); }
    to   { opacity: 1;   transform: translateY(0); }
}

/* ============ STATS SECTION ============ */
.stats-section {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 60%, #c0392b 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}
.stat-item {
    text-align: center;
    color: #fff;
    padding: 20px 10px;
}
.stat-icon {
    font-size: 2.2rem;
    color: var(--yellow);
    margin-bottom: 12px;
    display: block;
}
.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}
.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* Divisores entre stats */
.stat-item:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.15);
}

/* ============ PARALLAX ============ */
.hero-slide {
    will-change: transform;
}

/* ============ BOTÓN VOLVER ARRIBA ============ */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 46px;
    height: 46px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(198,40,40,0.4);
    z-index: 890;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
    pointer-events: none;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    background: var(--red-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(198,40,40,0.5);
}

/* ============ ANIMACIÓN ENTRADA SECCIONES ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Stats responsive */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.15); }
    .stat-item:nth-child(even) { border-right: none; }
    .stat-number { font-size: 2.2rem; }
    .back-to-top { bottom: 90px; right: 16px; width: 40px; height: 40px; font-size: 0.9rem; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stats-section { padding: 40px 0; }
    .preloader-sub { font-size: 1.4rem; }
    .preloader-logo { width: 80px; height: 80px; }
}

/* ====== ANIMACIÓN SEGURA DE TÍTULOS ======
   Nunca oculta el título — solo añade animación
   cuando entra al viewport                      */
/* Títulos y stats siempre visibles por defecto */
.section-title,
.section-sub,
.stat-item {
    opacity: 1;
    transform: none;
}
/* ====================== TODOS LOS SERVICIOS ====================== */
.servicios-categorias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.categoria {
    background: white;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s;
}

.categoria:hover {
    transform: translateY(-8px);
}

.categoria h3 {
    font-family: var(--font-heading);
    color: var(--red);
    margin-bottom: 20px;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.servicios-lista {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.servicios-lista span {
    font-size: 0.98rem;
    color: var(--gray);
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {
    .servicios-lista {
        grid-template-columns: 1fr;
    }
}
/* =============================================
   BANNER SERVICIO GRATUITO (index.html)
   ============================================= */
.sgb-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d0f0f 100%);
    border: 1px solid rgba(198,40,40,0.3);
    border-left: 5px solid var(--red);
    border-radius: 12px;
    padding: 22px 28px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.sgb-icon {
    font-size: 2.4rem;
    color: var(--yellow);
    flex-shrink: 0;
    animation: sgbHeartbeat 2s ease-in-out infinite;
}
@keyframes sgbHeartbeat {
    0%,100% { transform: scale(1); }
    14%      { transform: scale(1.15); }
    28%      { transform: scale(1); }
    42%      { transform: scale(1.1); }
}
.sgb-texto { flex: 1; }
.sgb-texto strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.sgb-texto strong span { color: var(--yellow); font-size: 1.25rem; }
.sgb-texto p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.5;
}
.sgb-sello {
    flex-shrink: 0;
    background: var(--red);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(198,40,40,0.4);
}
@media (max-width: 768px) {
    .sgb-banner { flex-direction: column; text-align: center; padding: 20px; gap: 14px; }
    .sgb-sello { align-self: center; }
}

/* =============================================
   SERVICIOS.HTML — Página completa
   ============================================= */
.servicios-page-hero {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
    padding: 110px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.servicios-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.sph-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
}
.sph-breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.sph-breadcrumb a:hover { color: #fff; }
.sph-breadcrumb i { font-size: 0.7rem; }
.servicios-page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 14px;
}
.servicios-page-hero h1 span { color: var(--yellow); }
.servicios-page-hero p {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Banner gratuito en servicios.html */
.pgb-banner {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 2px solid var(--yellow);
    border-radius: 14px;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
    box-shadow: 0 4px 20px rgba(255,179,0,0.15);
}
.pgb-icon {
    font-size: 2.5rem;
    color: var(--red);
    flex-shrink: 0;
}
.pgb-texto strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--black);
    display: block;
    margin-bottom: 5px;
}
.pgb-texto p {
    font-size: 0.88rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.5;
}
.pgb-sello {
    margin-left: auto;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.3;
    border: 3px solid var(--yellow);
    box-shadow: 0 4px 14px rgba(198,40,40,0.3);
}
.pgb-sello i { font-size: 1.1rem; margin-bottom: 2px; display: block; }

/* Contenido principal servicios.html */
.servicios-page-content {
    padding: 60px 0 80px;
    background: var(--gray-light);
}
.cat-bloque { margin-bottom: 50px; }
.cat-titulo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--red);
}
.cat-icono {
    width: 46px;
    height: 46px;
    background: var(--red);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.cat-titulo h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--black);
    margin: 0;
}
.cat-num {
    margin-left: auto;
    background: var(--red);
    color: #fff;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    padding: 4px 14px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.svc-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}
.svc-item {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border-left: 4px solid var(--red);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.svc-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(198,40,40,0.12);
}
.svc-code {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: var(--red);
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    min-width: 40px;
    text-align: center;
}
.svc-nombre {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--black);
    line-height: 1.3;
}

/* CTA final servicios.html */
.svc-cta {
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    border-radius: 16px;
    padding: 44px 40px;
    text-align: center;
    margin-top: 50px;
    color: #fff;
}
.svc-cta h3 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.svc-cta p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 26px;
    font-size: 0.95rem;
}
.svc-cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-white {
    background: #fff;
    color: var(--red);
    padding: 14px 28px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
}
.btn-white:hover { background: var(--yellow); transform: translateY(-2px); }
.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    padding: 14px 28px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn-outline-white:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Responsive servicios.html */
@media (max-width: 768px) {
    .pgb-banner { flex-wrap: wrap; gap: 14px; }
    .pgb-sello { margin-left: 0; }
    .svc-lista { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .svc-cta { padding: 28px 20px; }
    .servicios-page-hero { padding: 90px 0 40px; }
}

/* =============================================
   ORGANIGRAMA.HTML — Dark Glassmorphism
   ============================================= */

/* Hero */
.org-page-hero {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a0505 50%, #2d0a0a 100%);
    padding: 110px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.org-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(198,40,40,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(255,179,0,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.org-page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(198,40,40,0.6), rgba(255,179,0,0.4), rgba(198,40,40,0.6), transparent);
}
.org-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.org-breadcrumb a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.org-breadcrumb a:hover { color: var(--yellow); }
.org-page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 6vw, 4rem);
    color: #fff;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
}
.org-page-hero h1 span {
    color: var(--yellow);
    text-shadow: 0 0 30px rgba(255,179,0,0.4);
}
.org-page-hero p {
    color: rgba(255,255,255,0.55);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Contenido principal */
.org-content {
    background: linear-gradient(180deg, #111 0%, #1a1a1a 50%, #111 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.org-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 30%, rgba(198,40,40,0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 70%, rgba(255,179,0,0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Árbol */
.org-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Tarjeta glassmorphism */
.org-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 22px;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    z-index: 1;
    width: 100%;
}
.org-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.org-card:hover {
    transform: translateY(-6px) scale(1.02);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(198,40,40,0.3);
}

/* Tarjeta nivel 1 — Presidencia */
.org-card.nivel-1 {
    max-width: 480px;
    border-color: rgba(255,179,0,0.3);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,179,0,0.15), inset 0 1px 0 rgba(255,179,0,0.1);
}
.org-card.nivel-1:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(255,179,0,0.15), 0 0 0 1px rgba(255,179,0,0.4);
}

/* Tarjeta nivel 2 — Comandante */
.org-card.nivel-2 {
    max-width: 460px;
    border-color: rgba(198,40,40,0.35);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(198,40,40,0.15);
}
.org-card.nivel-2:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(198,40,40,0.2), 0 0 0 1px rgba(198,40,40,0.5);
}

/* Tarjeta nivel 3 — Sub Oficiales */
.org-card.nivel-3 {
    max-width: 380px;
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 6px 30px rgba(0,0,0,0.3);
}

/* Tarjeta nivel 4 — Grupos */
.org-card.nivel-4 {
    max-width: 340px;
    border-color: rgba(255,255,255,0.07);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* Avatar circular */
.org-avatar {
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.org-avatar.gold {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, #b8860b, #FFB300, #ffd700);
    box-shadow: 0 0 0 3px rgba(255,179,0,0.2), 0 6px 20px rgba(255,179,0,0.4);
    font-size: 1.8rem;
    color: #fff;
}
.org-avatar.gold::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(255,179,0,0.4);
    animation: orgPulse 2.5s ease-in-out infinite;
}
.org-avatar.red {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    box-shadow: 0 0 0 3px rgba(198,40,40,0.2), 0 6px 20px rgba(198,40,40,0.4);
    font-size: 1.6rem;
    color: #fff;
}
.org-avatar.dark {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #2a2a2a, #444);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    font-size: 1.4rem;
    color: rgba(255,255,255,0.8);
}
@keyframes orgPulse {
    0%,100% { transform: scale(1); opacity: 0.6; }
    50%      { transform: scale(1.08); opacity: 1; }
}

/* Info de la tarjeta */
.org-info { flex: 1; }
.org-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 8px;
}
.org-badge.gold { background: rgba(255,179,0,0.15); color: var(--yellow); border: 1px solid rgba(255,179,0,0.3); }
.org-badge.red  { background: rgba(198,40,40,0.15); color: #ff6b6b; border: 1px solid rgba(198,40,40,0.3); }
.org-badge.gray { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.12); }
.org-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.nivel-1 .org-name { font-size: 1.5rem; }
.nivel-2 .org-name { font-size: 1.35rem; }
.nivel-3 .org-name { font-size: 1.15rem; }
.nivel-4 .org-name { font-size: 1.1rem; color: rgba(255,255,255,0.85); }
.org-role {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.4;
}
.nivel-1 .org-role { color: rgba(255,179,0,0.65); font-size: 0.9rem; }
.nivel-2 .org-role { color: rgba(255,100,100,0.7); font-size: 0.88rem; }

/* Conectores */
.org-vline {
    width: 2px;
    background: linear-gradient(to bottom, rgba(198,40,40,0.8), rgba(198,40,40,0.2));
    position: relative;
    z-index: 0;
}
.org-vline.tall { height: 50px; }
.org-vline.short { height: 32px; }
.org-vline.gold-line {
    background: linear-gradient(to bottom, rgba(255,179,0,0.8), rgba(198,40,40,0.6));
    height: 50px;
}

/* Bifurcación horizontal */
.org-fork {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 50px;
    position: relative;
    width: 100%;
    max-width: 960px;
}
.org-fork::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(50% + 25px);
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(198,40,40,0.5), var(--red), rgba(198,40,40,0.5), transparent);
}
.org-branch {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.org-branch-vline {
    width: 2px;
    height: 32px;
    background: rgba(198,40,40,0.6);
}

/* Nota final */
.org-note {
    margin-top: 60px;
    padding: 22px 30px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 4px solid var(--yellow);
    border-radius: 12px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.org-note p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
    line-height: 1.7;
}
.org-note strong { color: rgba(255,255,255,0.7); }

/* Responsive */
@media (max-width: 860px) {
    .org-fork { flex-direction: column; align-items: center; gap: 0; }
    .org-fork::before { display: none; }
    .org-card.nivel-1,
    .org-card.nivel-2,
    .org-card.nivel-3,
    .org-card.nivel-4 { max-width: 360px; }
    .org-name { font-size: 1.1rem !important; }
}
@media (max-width: 480px) {
    .org-card { padding: 20px; gap: 14px; }
    .org-avatar.gold { width: 54px; height: 54px; font-size: 1.3rem; }
    .org-avatar.red  { width: 50px; height: 50px; font-size: 1.2rem; }
    .org-avatar.dark { width: 44px; height: 44px; font-size: 1.1rem; }
}

/* =============================================
   CLUB BOMBERITOS — Sección en index.html
   ============================================= */
.bomberitos-section {
    background: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.bomberitos-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 0% 50%, rgba(198,40,40,0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 100% 50%, rgba(255,179,0,0.05) 0%, transparent 55%);
    pointer-events: none;
}
.bomberitos-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.bomberitos-logo-col {
    display: flex;
    justify-content: center;
}
.bomberitos-logo-wrap {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 0 6px rgba(198,40,40,0.12),
        0 0 0 14px rgba(198,40,40,0.06),
        0 20px 60px rgba(198,40,40,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bomberitosPulse 3s ease-in-out infinite;
    overflow: hidden;
    padding: 0;
}
.bomberitos-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
@keyframes bomberitosPulse {
    0%,100% { box-shadow: 0 0 0 8px rgba(198,40,40,0.08), 0 0 0 16px rgba(198,40,40,0.04), 0 20px 60px rgba(198,40,40,0.15); }
    50%      { box-shadow: 0 0 0 12px rgba(198,40,40,0.12), 0 0 0 22px rgba(198,40,40,0.05), 0 20px 60px rgba(198,40,40,0.2); }
}
.bomberitos-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,179,0,0.12);
    color: #b8860b;
    border: 1px solid rgba(255,179,0,0.3);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 2px;
    padding: 5px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.bomberitos-text-col h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--black);
    margin-bottom: 18px;
    line-height: 1.1;
}
.bomberitos-text-col h2 span { color: var(--red); }
.bomberitos-text-col > p {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 520px;
}
.bomberitos-highlights {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.bh-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-light);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--black);
    border-left: 3px solid var(--red);
}
.bh-item i { color: var(--red); font-size: 1rem; }
.bomberitos-btn { font-size: 1rem; padding: 14px 32px; }

@media (max-width: 900px) {
    .bomberitos-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .bomberitos-logo-col { justify-content: center; }
    .bomberitos-logo-wrap { width: 200px; height: 200px; }
    .bomberitos-highlights { justify-content: center; }
    .bomberitos-text-col > p { margin-left: auto; margin-right: auto; }
}

/* =============================================
   BOMBERITOS.HTML — Página completa
   ============================================= */
.bom-hero {
    background: linear-gradient(135deg, #C62828 0%, #8E0000 100%);
    padding: 110px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.bom-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='4'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.bom-hero::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 60px;
    background: #fff;
    clip-path: ellipse(55% 100% at 50% 100%);
}
.bom-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.bom-breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.bom-breadcrumb a:hover { color: #fff; }
.bom-hero-logo {
    width: 160px;
    height: 160px;
    background: #fff;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 5px rgba(255,255,255,0.2), 0 8px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    padding: 0;
    position: relative;
    z-index: 1;
}
.bom-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.bom-hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.bom-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: #fff;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.bom-hero h1 span { color: var(--yellow); }
.bom-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Contenido */
.bom-content {
    background: #fff;
    padding: 70px 0 90px;
}

/* Bienvenida */
.bom-welcome {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 70px;
}
.bom-welcome-text h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 16px;
}
.bom-welcome-text h2 span { color: var(--red); }
.bom-welcome-text p {
    font-size: 0.98rem;
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: 14px;
}
.bom-quote {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--red);
    border-left: 4px solid var(--yellow);
    padding: 12px 20px;
    margin-top: 24px;
    background: rgba(198,40,40,0.04);
    border-radius: 0 8px 8px 0;
}
.bom-welcome-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(0,0,0,0.12);
    position: relative;
}
.bom-welcome-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}
.bom-welcome-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(198,40,40,0.2), transparent 60%);
}

/* Aprenden */
.bom-learn {
    background: var(--gray-light);
    border-radius: 20px;
    padding: 50px 40px;
    margin-bottom: 70px;
}
.bom-learn h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--black);
    text-align: center;
    margin-bottom: 36px;
}
.bom-learn h2 span { color: var(--red); }
.bom-learn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.bom-learn-card {
    background: #fff;
    border-radius: 14px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-top: 4px solid var(--red);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bom-learn-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(198,40,40,0.12);
}
.bom-learn-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin: 0 auto 16px;
    box-shadow: 0 6px 20px rgba(198,40,40,0.3);
}
.bom-learn-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: 10px;
}
.bom-learn-card p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.6;
}

/* Galería */
.bom-gallery { margin-bottom: 70px; }
.bom-gallery h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--black);
    text-align: center;
    margin-bottom: 30px;
}
.bom-gallery h2 span { color: var(--red); }
.bom-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.bom-gallery-grid img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.bom-gallery-grid img:hover { transform: scale(1.02); }

/* CTA contacto */
.bom-cta {
    background: linear-gradient(135deg, #C62828, #8E0000);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.bom-cta::before {
    content: '👨‍🚒';
    position: absolute;
    font-size: 8rem;
    opacity: 0.07;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.bom-cta h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.bom-cta p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.bom-cta .bom-phones {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0 28px;
    position: relative;
    z-index: 1;
}
.bom-phone-item {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: background 0.2s;
}
.bom-phone-item:hover { background: rgba(255,255,255,0.2); }
.bom-phone-item i { color: var(--yellow); }
.bom-cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Responsive bomberitos.html */
@media (max-width: 900px) {
    .bom-welcome { grid-template-columns: 1fr; gap: 30px; }
    .bom-welcome-img { order: -1; }
    .bom-welcome-img img { height: 260px; }
    .bom-learn-grid { grid-template-columns: 1fr; }
    .bom-gallery-grid { grid-template-columns: 1fr; }
    .bom-gallery-grid img { height: 240px; }
    .bom-learn { padding: 36px 24px; }
    .bom-cta { padding: 36px 24px; }
}

/* Teléfonos bomberitos con etiqueta */
.bom-phone-item {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}
.bom-phone-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.bom-phone-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: 0.5px;
}

/* Botón WhatsApp verde */
.btn-whatsapp {
    background: #25D366;
    color: #fff;
    padding: 14px 28px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
}
.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
}

/* ============ SIDEBAR: ETIQUETAS Y MENSAJE ============ */

/* Teléfono con etiqueta visible */
.fsb-phone-labeled {
    flex-direction: column;
    height: 52px;
    gap: 1px;
    font-size: 0.85rem;
}
.fsb-phone-tag {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
    line-height: 1;
}

/* Mensaje de conciencia */
.fsb-awareness {
    position: relative;
    width: 46px;
    height: 46px;
    background: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    overflow: visible;
}
.fsb-awareness-tooltip {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    background: #1a1a1a;
    border: 1px solid rgba(255,179,0,0.3);
    border-left: 4px solid #dc2626;
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.5;
    padding: 12px 14px;
    border-radius: 0 8px 8px 0;
    width: 220px;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    z-index: 9999;
}
.fsb-awareness:hover .fsb-awareness-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}
.fsb-awareness-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #FFB300;
}
.fsb-awareness-tooltip strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    color: #FFB300;
}
.fsb-awareness-tooltip p {
    margin: 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
}

/* =============================================
   BOTÓN FLOTANTE DE EMERGENCIA + MODAL
   ============================================= */

/* Botón flotante — esquina inferior izquierda */
.emergency-float-btn {
    position: fixed;
    bottom: 32px;
    left: 62px;
    z-index: 890;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #C62828, #8E0000);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 13px 22px 13px 16px;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(198,40,40,0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    animation: efbPulse 2.5s ease-in-out infinite;
}
.emergency-float-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 36px rgba(198,40,40,0.6);
    animation: none;
}
@keyframes efbPulse {
    0%,100% { box-shadow: 0 6px 24px rgba(198,40,40,0.5); }
    50%      { box-shadow: 0 6px 32px rgba(198,40,40,0.75), 0 0 0 6px rgba(198,40,40,0.12); }
}
.efb-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.efb-text { text-align: left; line-height: 1.25; }
.efb-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.efb-sub {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.3px;
}
.efb-arrow {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-left: 2px;
}

/* Modal overlay */
.emergency-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}
.emergency-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.emergency-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.emergency-modal-overlay.open .emergency-modal {
    transform: translateY(0) scale(1);
}

/* Cabecera del modal */
.em-header {
    background: linear-gradient(135deg, #C62828 0%, #8E0000 100%);
    padding: 30px 24px 24px;
    text-align: center;
    position: relative;
}
.em-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.em-close:hover { background: rgba(255,255,255,0.25); }
.em-header-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 14px;
    border: 2px solid rgba(255,255,255,0.25);
}
.em-header h2 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 4px;
}
.em-header p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* Cuerpo del modal */
.em-body {
    padding: 24px;
}
.em-instruction {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

/* Botones de llamada */
.em-call-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #C62828, #8E0000);
    color: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    text-decoration: none;
    margin-bottom: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(198,40,40,0.3);
}
.em-call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(198,40,40,0.4);
}
.em-call-btn:last-of-type { margin-bottom: 0; }
.em-call-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.em-call-info { flex: 1; }
.em-call-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
}
.em-call-label {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.em-call-arrow {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Separador */
.em-divider {
    height: 1px;
    background: #eee;
    margin: 18px 0;
}

/* Aviso de conciencia */
.em-awareness {
    background: #fffbf0;
    border: 1px solid rgba(255,179,0,0.3);
    border-left: 4px solid #dc2626;
    border-radius: 0 10px 10px 0;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.em-awareness-icon {
    width: 36px;
    height: 36px;
    background: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #7a4f00;
    flex-shrink: 0;
    margin-top: 2px;
}
.em-awareness-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: var(--black);
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.em-awareness-text p {
    font-size: 0.78rem;
    color: var(--gray);
    line-height: 1.5;
    margin: 0 0 4px;
}
.em-awareness-text span {
    font-size: 0.75rem;
    color: var(--red);
    font-weight: 600;
}

/* Footer del modal */
.em-footer {
    text-align: center;
    padding: 14px 24px 20px;
    font-size: 0.78rem;
    color: var(--gray);
    border-top: 1px solid #f0f0f0;
}
.em-footer i { color: var(--red); margin-right: 4px; }

/* Responsive */
@media (max-width: 768px) {
    .emergency-float-btn {
        bottom: 20px;
        left: 58px;
        padding: 11px 16px 11px 12px;
        gap: 8px;
    }
    .efb-title { font-size: 0.78rem; }
    .efb-sub { display: none; }
    .efb-icon { width: 30px; height: 30px; font-size: 0.85rem; }
}

/* =============================================
   BOTÓN EMERGENCIA FLOTANTE + MODAL
   ============================================= */

/* Botón flotante */
.emg-fab {
    position: fixed;
    bottom: 100px;
    left: 0;
    z-index: 890;
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    border: none;
    border-radius: 0 50px 50px 0;
    padding: 0;
    cursor: pointer;
    box-shadow: 4px 6px 24px rgba(198,40,40,0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
}
.emg-fab:hover {
    transform: translateX(4px);
    box-shadow: 6px 8px 30px rgba(198,40,40,0.55);
}
.emg-fab-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px 12px 16px;
    position: relative;
    z-index: 1;
}
.emg-fab-icon {
    font-size: 1.2rem;
    color: var(--yellow);
    flex-shrink: 0;
    animation: fabRing 2s ease-in-out infinite;
}
@keyframes fabRing {
    0%,100% { transform: rotate(0deg); }
    10%      { transform: rotate(-15deg); }
    20%      { transform: rotate(15deg); }
    30%      { transform: rotate(0deg); }
}
.emg-fab-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}
.emg-fab-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.emg-fab-sub {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
}
.emg-fab-arrow {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    margin-left: 2px;
}
/* Pulso animado detrás del botón */
.emg-fab-pulse {
    position: absolute;
    inset: 0;
    border-radius: 0 50px 50px 0;
    background: var(--red);
    animation: emgPulse 2.5s ease-out infinite;
    z-index: 0;
}
@keyframes emgPulse {
    0%   { transform: scale(1);    opacity: 0.4; }
    70%  { transform: scale(1.08); opacity: 0; }
    100% { transform: scale(1.08); opacity: 0; }
}

/* Overlay */
.emg-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    z-index: 9800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.emg-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.emg-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    position: relative;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.emg-modal-overlay.open .emg-modal {
    transform: translateY(0) scale(1);
}
.emg-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s;
}
.emg-modal-close:hover { background: rgba(255,255,255,0.35); }

/* Cabecera del modal */
.emg-modal-header {
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    padding: 36px 30px 28px;
    text-align: center;
    color: #fff;
    position: relative;
}
.emg-modal-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--yellow);
    margin: 0 auto 14px;
    border: 2px solid rgba(255,255,255,0.2);
}
.emg-modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 4px;
    text-transform: uppercase;
}
.emg-modal-header p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* Cuerpo del modal */
.emg-modal-body {
    padding: 24px 24px 20px;
}
.emg-modal-hint {
    text-align: center;
    font-size: 0.82rem;
    color: var(--gray);
    margin-bottom: 14px;
}

/* Botones de llamada */
.emg-call-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    text-decoration: none;
    margin-bottom: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.emg-call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(198,40,40,0.25);
}
.emg-call-btn.primary {
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    color: #fff;
}
.emg-call-btn.secondary {
    background: linear-gradient(135deg, #b71c1c, #c62828);
    color: #fff;
}
.emg-call-btn i {
    font-size: 1.3rem;
    color: var(--yellow);
    flex-shrink: 0;
}
.emg-call-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.1;
}
.emg-call-label {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
    font-weight: 600;
}

/* Mensaje de conciencia dentro del modal */
.emg-warning {
    display: flex;
    gap: 12px;
    background: #fff8e1;
    border: 1px solid rgba(220,38,38,0.5);
    border-left: 4px solid #dc2626;
    border-radius: 10px;
    padding: 14px;
    margin: 14px 0 12px;
    align-items: flex-start;
}
.emg-warning-icon {
    width: 36px;
    height: 36px;
    background: #dc2626;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}
.emg-warning-text strong {
    display: block;
    font-size: 0.84rem;
    color: #ff4444;
    margin-bottom: 6px;
    font-weight: 800;
}
.emg-warning-text p {
    font-size: 0.77rem;
    color: #5a3000;
    margin: 0;
    line-height: 1.55;
}
.emg-warning-text p em {
    color: #ff4444;
    font-style: normal;
    font-weight: 800;
}
.emg-available {
    text-align: center;
    font-size: 0.78rem;
    color: var(--gray);
    margin: 0;
    padding-top: 4px;
}
.emg-available i { color: var(--red); margin-right: 4px; }

/* Responsive */
@media (max-width: 480px) {
    .emg-fab-text { display: none; }
    .emg-fab-arrow { display: none; }
    .emg-fab-inner { padding: 14px; }
    .emg-fab { border-radius: 0 50% 50% 0; }
}

/* =============================================
   EMPRESAS SOLIDARIAS
   ============================================= */
.empresas-section {
    background: linear-gradient(135deg, #1a0a0a 0%, #2d0f0f 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.empresas-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 0% 50%, rgba(198,40,40,0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 100% 50%, rgba(255,179,0,0.06) 0%, transparent 55%);
    pointer-events: none;
}
.empresas-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* Columna izquierda */
.empresas-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.empresas-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 50%;
    padding: 0px;
    object-fit: contain;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.empresas-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,179,0,0.1);
    color: var(--yellow);
    border: 1px solid rgba(255,179,0,0.25);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 2px;
    padding: 5px 14px;
    border-radius: 50px;
    text-transform: uppercase;
}
.empresas-info h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.1;
}
.empresas-info h2 span { color: var(--yellow); }
.empresas-desc {
    font-size: 0.98rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 540px;
}
.empresas-ejes h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.eje-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
}
.eje-icon {
    width: 48px;
    height: 48px;
    background: rgba(198,40,40,0.2);
    border: 1px solid rgba(198,40,40,0.35);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--red-light);
    flex-shrink: 0;
}
.eje-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}
.eje-item p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin: 0;
}
.empresas-vision {
    background: rgba(255,255,255,0.04);
    border-left: 3px solid var(--yellow);
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin-top: 10px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.empresas-vision i {
    color: var(--yellow);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.empresas-vision p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Columna derecha — tarjeta CTA */
.empresas-cta-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    position: sticky;
    top: 100px;
}
.ecta-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(198,40,40,0.3);
}
.ecta-icon.ecta-icon-logo {
    background: transparent;
    box-shadow: none;
    width: 72px;
    height: 72px;
}
.ecta-icon-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.empresas-cta-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--black);
    margin-bottom: 10px;
    line-height: 1.2;
}
.empresas-cta-card > p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 22px;
}
.ecta-beneficios {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    padding: 18px;
    background: var(--gray-light);
    border-radius: 12px;
}
.ecta-ben-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--black);
    font-weight: 600;
}
.ecta-ben-item i { color: var(--red); font-size: 1rem; }

.ecta-contacto {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}
.ecta-tel,
.ecta-mail {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--gray-light);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    border-left: 3px solid var(--red);
}
.ecta-tel:hover,
.ecta-mail:hover {
    background: #ffe8e8;
    transform: translateX(4px);
}
.ecta-tel i, .ecta-mail i { color: var(--red); font-size: 1.1rem; flex-shrink: 0; }
.ecta-tel-label {
    display: block;
    font-size: 0.68rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ecta-tel-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--black);
    font-weight: 600;
}
.ecta-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
    padding: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .empresas-grid { grid-template-columns: 1fr; gap: 40px; }
    .empresas-cta-card { position: static; }
}
@media (max-width: 768px) {
    .empresas-section { padding: 60px 0; }
    .empresas-cta-card { padding: 24px 20px; }
    .empresas-logo { width: 48px; height: 48px; }
}
/* Nav social — solo visible en móvil */
.nav-social { display: none; }
@media (max-width: 768px) {
    .nav-social { display: block; }
}
/* =============================================
   NOTICIAS: SOLO EN MÓVIL - Mismo diseño para todas
   ============================================= */

@media (max-width: 768px) {
    /* Forzar que todas las noticias usen el formato grande */
    .noticias-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    /* Convertir las noticias pequeñas al mismo estilo que la destacada */
    .noticia-card.small {
        display: block !important;
        width: 100% !important;
        background: white !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        box-shadow: 0 6px 28px rgba(0,0,0,0.1) !important;
    }
    
    /* Imagen a ancho completo (como la noticia grande) */
    .noticia-card.small .noticia-img-wrap {
        width: 100% !important;
        height: 200px !important;
        min-height: auto !important;
        position: relative !important;
    }
    
    .noticia-card.small .noticia-img-wrap img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* Eliminar el grid de 2 columnas de las pequeñas */
    .noticia-card.small .noticia-body {
        padding: 20px !important;
    }
    
    .noticia-card.small h3 {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
    }
    
    .noticia-card.small p {
        font-size: 0.9rem !important;
        margin-bottom: 12px !important;
        display: block !important;
    }
    
    /* Ocultar el contenedor lateral que las organizaba */
    .noticias-side {
        display: block !important;
    }
}

/* =============================================
   SERVICIOS PAGE — items con icono y descripción
   ============================================= */
.svc-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eee;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.svc-item:hover {
    box-shadow: 0 4px 18px rgba(198,40,40,0.1);
    transform: translateY(-2px);
    border-color: rgba(198,40,40,0.2);
}
.svc-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(198,40,40,0.25);
}
.svc-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.svc-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.svc-desc {
    font-size: 0.82rem;
    color: var(--gray);
    line-height: 1.5;
    margin: 0;
}
@media (max-width: 480px) {
    .svc-icon { width: 36px; height: 36px; min-width: 36px; font-size: 0.95rem; }
    .svc-desc { font-size: 0.78rem; }
}
/* ============ DROPDOWN MENÚ ============ */
.has-dropdown { position: relative; }

.has-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.6rem;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.has-dropdown:hover .dropdown-arrow,
.has-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* ── Desktop: hover con delay para no desaparecer rápido ── */
.has-dropdown > ul.dropdown {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    padding-top: 8px;
    background: var(--red-dark);
    border-top: 3px solid var(--yellow);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    min-width: 200px;
    z-index: 9999;
    padding: 8px 0;
    list-style: none;
    transition: opacity 0.2s ease 0s, visibility 0.2s ease 0s;
}

.has-dropdown:hover > ul.dropdown {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.2s ease 0s, visibility 0.2s ease 0s;
}

/* Pseudo-elemento puente para no perder el hover entre el link y el dropdown */
.has-dropdown > a::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
}

.has-dropdown > ul.dropdown li a {
    display: block !important;
    padding: 11px 20px !important;
    color: #fff !important;
    font-size: 0.87rem !important;
    white-space: nowrap;
    background: none;
    transition: background 0.15s, color 0.15s;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.has-dropdown > ul.dropdown li a:hover {
    background: rgba(255,255,255,0.1) !important;
    color: var(--yellow) !important;
}

/* ── Móvil: click, sin redirigir, despliega categorías ── */
@media (max-width: 768px) {
    .has-dropdown > ul.dropdown {
        visibility: visible;
        opacity: 1;
        position: static;
        display: none;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid var(--red);
        border-radius: 0;
        background: rgba(0,0,0,0.25);
        margin: 0;
        padding: 4px 0;
        pointer-events: auto;
    }
    .has-dropdown.open > ul.dropdown { display: block; }
    .has-dropdown > ul.dropdown li a {
        font-size: 0.85rem !important;
        padding: 9px 24px !important;
        color: rgba(255,255,255,0.9) !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }
    .has-dropdown > a { justify-content: center; width: 100%; gap: 8px; }
    .has-dropdown > a .dropdown-arrow { position: static; }
}
/* ============ HEADER CTA — CONTACTO ============ */
/* En desktop: botón independiente visible, el del nav oculto */
@media (min-width: 769px) {
    .nav-cta-mobile { display: none; }
    .header-cta { display: flex; align-items: center; }
}
/* En móvil: botón independiente oculto, el del nav visible en drawer */
@media (max-width: 768px) {
    .header-cta { display: none; }
    .nav-cta-mobile { display: block; }
}

/* Header container responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 12px;
    }
}
/* ================================================
   MODAL TIEMPO DE RESPUESTA
   ================================================ */
.btn-response-time {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    padding: 16px 30px;
    border-radius: 4px;
    border: 2px solid rgba(255,255,255,0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    cursor: pointer;
}
.btn-response-time:hover {
    border-color: var(--yellow);
    color: var(--yellow);
    background: rgba(255,200,0,0.08);
    transform: translateY(-2px);
}

/* Overlay */
.rt-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 10000;
    backdrop-filter: blur(3px);
    animation: rtFadeIn 0.25s ease;
}
.rt-overlay.active { display: block; }

/* Modal */
.rt-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%) scale(0.96);
    width: 92%;
    max-width: 520px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    z-index: 10001;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), opacity 0.3s ease;
    opacity: 0;
    max-height: 90vh;
    overflow-y: auto;
}
.rt-modal.active {
    display: block;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Header del modal */
.rt-header {
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    color: #fff;
    padding: 24px 20px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.rt-header-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.rt-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 2px;
    color: #fff;
}
.rt-header p {
    font-size: 0.82rem;
    margin: 0;
    opacity: 0.85;
}
.rt-close {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.rt-close:hover { background: rgba(255,255,255,0.35); }

/* Body */
.rt-body { padding: 28px 24px 24px; }
.rt-hidden { display: none !important; }

/* Info estación */
.rt-station-info {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.rt-station-icon {
    width: 42px;
    height: 42px;
    background: var(--red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.rt-station-info strong { display: block; font-size: 0.92rem; color: #1a1a1a; }
.rt-station-info span { font-size: 0.78rem; color: #666; }

.rt-desc { font-size: 0.88rem; color: #555; text-align: center; margin-bottom: 22px; line-height: 1.6; }

/* Botón ubicar */
.rt-btn-locate {
    width: 100%;
    background: var(--red);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, transform 0.2s;
}
.rt-btn-locate:hover { background: var(--red-dark); transform: translateY(-1px); }

/* Loading */
.rt-loading-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 20px 0;
}
.rt-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid #f0f0f0;
    border-top-color: var(--red);
    border-radius: 50%;
    animation: rtSpin 0.8s linear infinite;
}
.rt-loading-wrap p { font-size: 0.92rem; color: #555; margin: 0; }

/* Ruta visual */
.rt-route-visual {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fef2f2;
    border-radius: 14px;
    padding: 18px 16px;
    margin-bottom: 18px;
}
.rt-point { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.rt-point span { font-size: 0.72rem; color: #666; white-space: nowrap; }
.rt-point-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}
.rt-origin { background: var(--red); }
.rt-dest { background: #2563eb; }

.rt-route-line {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, var(--red), #2563eb);
    border-radius: 2px;
    position: relative;
    overflow: visible;
}
.rt-route-truck {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: var(--red);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 2px 8px rgba(198,40,40,0.4);
    transition: left linear;
}
.rt-route-truck.arrived {
    background: #16a34a;
    box-shadow: 0 2px 8px rgba(22,163,74,0.4);
}

/* Métricas */
.rt-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.rt-metric {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.rt-metric i { font-size: 1.2rem; color: var(--red); margin-bottom: 4px; }
.rt-metric strong { font-size: 1.5rem; font-weight: 700; color: #1a1a1a; line-height: 1; }
.rt-metric span { font-size: 0.75rem; color: #888; }

/* Mensaje resultado */
.rt-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.87rem;
    color: #166534;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
}
.rt-message.rt-msg-warn {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}
.rt-message.rt-msg-far {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.rt-disclaimer {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
    margin-bottom: 18px;
    line-height: 1.5;
}

.rt-btn-reset {
    width: 100%;
    background: #f3f4f6;
    color: #333;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}
.rt-btn-reset:hover { background: #e5e7eb; }

/* Error */
.rt-error-icon {
    text-align: center;
    font-size: 2.5rem;
    color: var(--red);
    margin-bottom: 14px;
}
#rtStateError p { text-align: center; color: #555; margin-bottom: 20px; font-size: 0.9rem; }

/* Animaciones */
@keyframes rtFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rtSpin { to { transform: rotate(360deg); } }


/* Responsive */
@media (max-width: 480px) {
    .rt-modal { width: 96%; border-radius: 16px; }
    .rt-header { padding: 18px 16px; }
    .rt-body { padding: 20px 16px 18px; }
    .rt-metric strong { font-size: 1.3rem; }
}
/* ===== FOOTER LEGAL LINKS ===== */
.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-top: 12px;
}
.footer-legal-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.3px;
    position: relative;
}
.footer-legal-links a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 1px;
    background: #C62828;
    vertical-align: middle;
    margin-left: 6px;
    transition: width 0.2s;
}
.footer-legal-links a:hover {
    color: #fff;
}
.footer-legal-links a:hover::after {
    width: 8px;
}
@media (max-width: 480px) {
    .footer-legal-links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

/* ===== BANNER DE COOKIES ===== */
#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #1a1a1a;
    border-top: 3px solid #C62828;
    padding: 16px 24px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.35);
}
#cookieBanner.cookie-banner--show {
    transform: translateY(0);
}
#cookieBanner.cookie-banner--hide {
    transform: translateY(100%);
}
.cookie-banner__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-banner__icon {
    color: #C62828;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.cookie-banner__text {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 220px;
}
.cookie-banner__text p {
    margin: 0;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.5;
}
.cookie-banner__text a {
    color: #ef9a9a;
    text-decoration: underline;
    white-space: nowrap;
}
.cookie-banner__text a:hover { color: #fff; }
.cookie-banner__btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 9px 22px;
    border-radius: 5px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s, transform 0.1s;
}
.cookie-btn:active { transform: scale(0.97); }
.cookie-btn--solid {
    background: #C62828;
    color: #fff;
}
.cookie-btn--solid:hover { background: #e53935; }
.cookie-btn--outline {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.25);
}
.cookie-btn--outline:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
@media (max-width: 600px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .cookie-banner__btns {
        width: 100%;
    }
    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}
/* ═══════════════════════════════════════════════
   SECCIÓN APP MÓVIL
═══════════════════════════════════════════════ */

.app-section {
    background: #eef1f6;
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

.app-section::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198,40,40,0.06) 0%, transparent 70%);
    top: -100px; right: -100px;
    pointer-events: none;
}

.app-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.app-content {
    flex: 1;
    max-width: 560px;
}

.app-badge {
    display: inline-block;
    background: rgba(198,40,40,0.1);
    border: 1px solid rgba(198,40,40,0.25);
    color: #C62828;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.app-section .section-title {
    color: #1a1a1a;
    font-size: 2.2rem;
    margin-bottom: 18px;
    line-height: 1.2;
}

.app-desc {
    color: #555;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 36px;
}

.app-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.app-store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 22px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 175px;
}

.app-store-btn i {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.app-store-btn div {
    display: flex;
    flex-direction: column;
}

.app-store-btn span {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.7rem;
    opacity: 0.8;
    line-height: 1;
    margin-bottom: 2px;
}

.app-store-btn strong {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
}

.app-store-btn.android {
    background: #1f1f1f;
    border: 1px solid #1f1f1f;
    color: #fff;
}

.app-store-btn.android i { color: #4CAF50; }

.app-store-btn.ios {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #111;
}

.app-store-btn.ios i { color: #111; }

.app-store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.3);
}

/* QR */
.app-qr-wrap {
    flex-shrink: 0;
    margin-right: 40px;
}

.app-qr-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border: 1px solid #e0e0e0;
    width: 320px;
}

.app-qr-card img {
    width: 288px;
    height: 288px;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
}

.app-qr-card p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.78rem;
    color: #555;
    margin: 0;
}

@media (max-width: 768px) {
    .app-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .app-buttons {
        justify-content: center;
    }
    .app-section .section-title {
        font-size: 1.7rem;
    }
    .app-section::before { display: none; }
}