/* =========================================
   VARIABLES GLOBALES Y RESET
========================================= */
:root {
    --rojo-bomberos: #E63946;
    --rojo-oscuro: #B22222;
    --azul-oscuro: #1D3557;
    --texto-claro: #F1FAEE;
    --texto-oscuro: #333333;
    --fuente-principal: 'Arial', sans-serif;
}

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

/* EL MAGNÍFICO FONDO PARALLAX BASE */
body {
    font-family: var(--fuente-principal);
    color: var(--texto-oscuro);
    line-height: 1.6;
    background: url('../img/hero2.webp') no-repeat center center fixed;
    background-size: cover;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   EFECTOS REVEAL PRO Y ANIMACIONES
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.25, 0.8, 0.25, 1); 
}

.reveal.reveal-down { transform: translateY(-50px); }
.reveal.reveal-left { transform: translateX(50px); }
.reveal.reveal-right { transform: translateX(-50px); }
.reveal.reveal-up { transform: translateY(60px); }

.reveal.reveal-3d { 
    transform: translateY(30px) rotateX(-45deg) scale(0.95); 
    transform-origin: top;
    filter: blur(8px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0) rotateX(0) scale(1); 
    filter: blur(0);
}

/* =========================================
   BOTONES Y ELEMENTOS DE UI
========================================= */
.btn {
    text-decoration: none !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-donar {
    background-color: var(--rojo-bomberos);
    color: var(--texto-claro) !important;
    box-shadow: 0 4px 6px rgba(230, 57, 70, 0.3);
}

.btn-donar:hover {
    background-color: var(--rojo-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(230, 57, 70, 0.5);
}

.btn-donar-large {
    background-color: var(--rojo-bomberos);
    color: var(--texto-claro) !important;
    padding: 15px 30px;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(230, 57, 70, 0.3);
}

.btn-donar-large:hover {
    background-color: var(--rojo-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(230, 57, 70, 0.5);
}

.btn-donar-cta {
    background-color: var(--texto-claro);
    color: var(--rojo-bomberos) !important;
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-donar-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    background-color: var(--rojo-bomberos);
    color: var(--texto-claro) !important;
}

.btn-outline {
    background-color: transparent;
    color: var(--texto-claro) !important;
    border: 2px solid var(--texto-claro);
    padding: 13px 30px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--texto-claro);
    color: var(--texto-oscuro) !important;
}

.menu-toggle {
    display: none;
    color: var(--texto-claro);
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* =========================================
   MENÚ DE NAVEGACIÓN (HEADER)
========================================= */
.header {
    background-color: rgba(29, 53, 87, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    top: 0; left: 0; right: 0; width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); 
}

.navbar { display: flex; justify-content: space-between; align-items: center; height: 100px; transition: all 0.5s ease; }
.logo-link { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.logo-img { max-height: 85px; transition: all 0.5s ease; animation: pulso-sirena-img 1.6s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.logo-link:hover .logo-img { transform: scale(1.08); }
.logo-text { display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; max-width: 300px; transition: max-width 0.4s ease, opacity 0.3s ease; white-space: nowrap; }
.logo-title { font-size: 1.15rem; font-weight: 900; text-transform: uppercase; line-height: 1.1; letter-spacing: 1px; animation: sirena-baliza-flash 1.6s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.logo-subtitle { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2.2px; margin-top: 2px; color: var(--texto-claro); animation: sirena-baliza-flash 1.6s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94); animation-delay: -0.8s; }

@keyframes sirena-baliza-flash {
    0% { color: var(--rojo-bomberos); text-shadow: 0 1px 2px rgba(0,0,0,0.9), 0 0 12px rgba(230, 57, 70, 0.8); }
    50% { color: #007BFF; text-shadow: 0 1px 2px rgba(0,0,0,0.9), 0 0 12px rgba(0, 123, 255, 0.8); }
    100% { color: var(--rojo-bomberos); text-shadow: 0 1px 2px rgba(0,0,0,0.9), 0 0 12px rgba(230, 57, 70, 0.8); }
}

@keyframes pulso-sirena-img {
    0% { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
    60% { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)) drop-shadow(0 0 15px rgba(0, 123, 255, 0.8)); }
    100% { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
}

.nav-links { list-style: none; display: flex; gap: 35px; transition: all 0.5s ease; }
.nav-links a { color: var(--texto-claro); text-decoration: none; font-weight: 600; font-size: 1.05rem; position: relative; padding-bottom: 5px; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--rojo-bomberos); }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 3px; bottom: 0; left: 0; background-color: var(--rojo-bomberos); transition: width 0.3s ease; border-radius: 2px; }
.nav-links a:hover::after { width: 100%; }

.header.scrolled { width: auto; left: auto; right: 30px; top: 20px; border-radius: 50px; background-color: rgba(29, 53, 87, 0.85); box-shadow: 0 8px 20px rgba(0,0,0,0.4); padding: 0 35px; }
.header.scrolled .navbar { height: 75px; }
.header.scrolled .logo-img { max-height: 55px; }
.header.scrolled .logo-text { max-width: 0; opacity: 0; }
.header.scrolled .nav-links { gap: 30px; margin: 0 25px; }
.header.scrolled .btn-donar { padding: 10px 20px; font-size: 1rem; }

/* =========================================
   SECCIÓN HERO (OPACA PARA TAPAR EL PARALLAX AQUI)
========================================= */
.hero {
    height: 100vh; position: relative; display: flex; align-items: center; text-align: center;
    background-color: #000; overflow: hidden;
}

.hero-slider, .slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.slide { background-size: cover; background-position: center; opacity: 0; z-index: 1; transition: opacity 1.5s ease-in-out; animation: kenburns 20s infinite alternate linear; }
.slide.active { opacity: 1; z-index: 2; }

@keyframes kenburns { 0% { transform: scale(1.0); } 100% { transform: scale(1.15); } }

.hero-overlay.fire-glow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(29, 53, 87, 0.7); z-index: 3; pointer-events: none;
    animation: firePulse 5s infinite alternate ease-in-out;
}

@keyframes firePulse {
    0% { box-shadow: inset 0 0 50px rgba(226, 88, 34, 0.1); background-color: rgba(29, 53, 87, 0.75); }
    100% { box-shadow: inset 0 0 150px rgba(226, 88, 34, 0.3); background-color: rgba(29, 53, 87, 0.6); }
}

.hero-content { position: relative; z-index: 4; color: var(--texto-claro); max-width: 850px; margin: 0 auto; padding: 0 20px; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; text-transform: uppercase; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.2rem; margin-bottom: 40px; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* =========================================
   ESTILOS GENERALES
========================================= */
.seccion { padding: 60px 0; scroll-margin-top: 90px; }
.titulo-wrapper { display: inline-block; cursor: default; }
.seccion h2 { font-size: 2.5rem; color: var(--azul-oscuro); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; transition: color 0.4s ease, transform 0.4s ease; display: inline-block; }
.titulo-wrapper:hover h2 { color: var(--rojo-bomberos); transform: translateY(-5px); }

.linea-decorativa { width: 60px; height: 4px; background-color: var(--rojo-bomberos); margin-bottom: 30px; border-radius: 2px; transition: width 0.4s ease; }
.titulo-wrapper:hover + .linea-decorativa { width: 100px; }
.linea-decorativa.center { margin: 0 auto 30px auto; }
.white-line { background-color: var(--texto-claro); }

/* =========================================
   INPUTS GLOBALES (MODAL Y CONTACTO)
========================================= */
.input-group { margin-bottom: 15px; display: flex; flex-direction: column; width: 100%; }
.input-group label { font-size: 0.9rem; font-weight: bold; color: var(--azul-oscuro); margin-bottom: 5px; }
.input-group input, .input-group textarea { 
    width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #ccc; 
    border-radius: 6px; font-size: 1rem; font-family: var(--fuente-principal); 
    transition: border-color 0.3s ease; background-color: #fff;
}
.input-group input:focus, .input-group textarea:focus { outline: none; border-color: var(--rojo-bomberos); }

/* =========================================
   SECCIÓN NOSOTROS (CRISTAL Y 3D)
========================================= */
.nosotros { 
    background-color: rgba(255, 255, 255, 0.92); 
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow: hidden; 
}
.nosotros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.nosotros-texto p { font-size: 1.1rem; margin-bottom: 20px; color: #555; text-align: justify; }
.nosotros-texto h3 { font-size: 1.5rem; color: var(--rojo-oscuro); margin-top: 30px; margin-bottom: 15px; }

.nosotros-imagen { perspective: 1200px; padding: 20px; }
.nosotros-imagen img { width: 100%; border-radius: 12px; box-shadow: 0 15px 30px rgba(0,0,0,0.2); transform-style: preserve-3d; transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); animation: levitar3D 6s ease-in-out infinite; }
@keyframes levitar3D { 0% { transform: translateY(0) rotateX(4deg) rotateY(-4deg); box-shadow: 0 15px 30px rgba(0,0,0,0.2); } 50% { transform: translateY(-25px) rotateX(-4deg) rotateY(4deg); box-shadow: 0 35px 50px rgba(0,0,0,0.35); } 100% { transform: translateY(0) rotateX(4deg) rotateY(-4deg); box-shadow: 0 15px 30px rgba(0,0,0,0.2); } }
.nosotros-imagen img:hover { animation-play-state: paused; transform: scale(1.12) rotateX(15deg) rotateY(-15deg) translateZ(40px); box-shadow: -20px 40px 60px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.5); }

/* =========================================
   SECCIÓN ESPECIALIDAD (CRISTAL + BLUR)
========================================= */
.especialidad { background-color: rgba(248, 249, 250, 0.90); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.especialidad-header { text-align: center; margin-bottom: 40px; }
.especialidad-intro { max-width: 800px; margin: 0 auto; font-size: 1.15rem; color: #555; }
.especialidad-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 30px; }

.especialidad-grid:hover .especialidad-card { filter: blur(4px); opacity: 0.6; transform: scale(0.98); }
.especialidad-grid .especialidad-card:hover { filter: blur(0); opacity: 1; transform: translateY(-10px) scale(1.05); box-shadow: 0 20px 40px rgba(0,0,0,0.15); z-index: 2; }

.especialidad-card { position: relative; background-color: #ffffff; padding: 40px 30px; border-radius: 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); text-align: center; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); border-bottom: 4px solid var(--rojo-bomberos); }
.card-icon { font-size: 3rem; margin-bottom: 20px; color: #b0b5b9; transition: transform 0.4s ease; }
.especialidad-card:hover .card-icon { transform: scale(1.15); animation: sirena-baliza-flash 1.6s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.especialidad-card h3 { color: var(--azul-oscuro); margin-bottom: 15px; font-size: 1.3rem; transition: all 0.3s ease; }
.especialidad-card:hover h3 { color: #007BFF; transform: translateX(5px); }
.especialidad-card p { color: #666; font-size: 1rem; }

/* =========================================
   SECCIÓN GALERÍA (CRISTAL NEGRO)
========================================= */
.galeria { background-color: rgba(17, 17, 17, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; padding-top: 50px; } 
.galeria h2 { color: #fff; }
.galeria .linea-decorativa { background-color: var(--rojo-bomberos); }
.galeria p { color: #ccc; }
.galeria-header { text-align: center; margin-bottom: 30px; }

.galeria-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; }
.galeria-item { position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; aspect-ratio: 4/3; }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.galeria-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(226, 57, 70, 0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.galeria-overlay i { color: #fff; font-size: 3rem; transform: scale(0); transition: transform 0.3s ease; }
.galeria-item:hover img { transform: scale(1.1); }
.galeria-item:hover .galeria-overlay { opacity: 1; }
.galeria-item:hover .galeria-overlay i { transform: scale(1); }

.ver-mas-item { background-color: #1a1a1a; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed #444; transition: all 0.3s ease; }
.ver-mas-item i { font-size: 3rem; color: #666; margin-bottom: 15px; transition: all 0.3s ease; }
.ver-mas-item span { color: #999; font-weight: bold; font-size: 1.1rem; transition: color 0.3s ease; }
.ver-mas-item:hover { background-color: #222; border-color: var(--rojo-bomberos); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.ver-mas-item:hover i { color: var(--rojo-bomberos); transform: scale(1.1) translateY(-5px); }
.ver-mas-item:hover span { color: #fff; }
.foto-oculta { display: none; animation: fadeIn 0.8s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* VISOR LIGHTBOX */
.lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95); display: flex; align-items: center; justify-content: center; z-index: 3000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-content { max-width: 85%; max-height: 85vh; box-shadow: 0 0 40px rgba(0,0,0,0.9); border: 4px solid #fff; border-radius: 4px; transform: scale(0.9); transition: transform 0.3s ease; user-select: none; }
.lightbox-overlay.active .lightbox-content { transform: scale(1); }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 3rem; cursor: pointer; transition: color 0.3s ease; z-index: 3001; }
.lightbox-close:hover { color: var(--rojo-bomberos); transform: rotate(90deg); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, 0.6); font-size: 4rem; cursor: pointer; transition: color 0.3s ease; z-index: 3001; padding: 20px; user-select: none; }
.lightbox-prev { left: 2%; } .lightbox-next { right: 2%; }
.lightbox-prev:hover, .lightbox-next:hover { color: var(--rojo-bomberos); transform: translateY(-50%) scale(1.1); }

/* =========================================
   SECCIÓN HAZTE SOCIO (CRISTAL AZUL)
========================================= */
.donar { 
    background-color: rgba(29, 53, 87, 0.94); 
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    background-image: radial-gradient(circle at 100% 100%, rgba(230, 57, 70, 0.15) 0%, transparent 50%), radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    color: var(--texto-claro); padding: 80px 0; overflow: hidden;
}
.donar h2 { color: var(--texto-claro); }
.donar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.donar-imagen img { width: 100%; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); border: 4px solid rgba(255,255,255,0.1); transition: transform 0.5s ease; }
.donar-imagen img:hover { transform: scale(1.03) translateY(-10px); }
.donar-intro { font-size: 1.15rem; color: #e2e8f0; margin-bottom: 25px; line-height: 1.7; }
.donar-beneficios { list-style: none; margin-bottom: 35px; }
.donar-beneficios li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; background: rgba(255, 255, 255, 0.05); padding: 15px; border-radius: 8px; border-left: 4px solid var(--rojo-bomberos); transition: background 0.3s ease, transform 0.3s ease; }
.donar-beneficios li:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(10px); }
.donar-beneficios i { color: var(--rojo-bomberos); font-size: 1.8rem; margin-top: 5px; }
.donar-beneficios strong { display: block; color: #fff; font-size: 1.1rem; margin-bottom: 3px; }
.donar-beneficios div { color: #cbd5e1; font-size: 0.95rem; }
.pago-seguro-text { margin-top: 20px; font-size: 0.9rem; color: #94a3b8; }
.pago-seguro-text i { color: #4CAF50; margin-right: 5px; }

/* =========================================
   CONTACTO (TARJETA FLOTANTE)
========================================= */
.contacto { background-color: rgba(240, 242, 245, 0.90); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding-top: 40px; }
.contacto-header { text-align: center; margin-bottom: 40px; }
.contacto-header p { color: #555; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.contacto-tarjeta {
    display: flex; background: #ffffff; border-radius: 15px; box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    overflow: hidden; max-width: 1000px; margin: 0 auto; transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.contacto-tarjeta:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(0,0,0,0.15); }
.contacto-grid { display: grid; grid-template-columns: 4fr 6fr; }
.contacto-info-mapa { background-color: var(--azul-oscuro); color: #fff; padding: 40px; display: flex; flex-direction: column; }
.info-box-h { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.icon-circle { background: var(--rojo-bomberos); width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.info-box-h h4 { font-size: 1.1rem; margin-bottom: 2px; }
.info-box-h p { font-size: 0.9rem; color: #d1d5db; word-break: break-word; }
.mapa-integrado { border-radius: 8px; overflow: hidden; margin-top: auto; border: 3px solid rgba(255,255,255,0.1); height: 220px; }
.mapa-integrado iframe { width: 100%; height: 100%; display: block; border: 0; }
.contacto-formulario { padding: 40px; background: #ffffff; }
.contacto-formulario h3 { margin-bottom: 20px; color: var(--azul-oscuro); font-size: 1.6rem; }

/* =========================================
   FOOTER (FONDO SÓLIDO)
========================================= */
.footer { background-color: #0b1c2e; color: #d1d5db; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-logo { max-height: 80px; margin-bottom: 20px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.footer h3 { color: var(--texto-claro); font-size: 1.3rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background-color: var(--rojo-bomberos); border-radius: 2px; }
.footer-links ul, .footer-contacto ul { list-style: none; }
.footer-links li, .footer-contacto li { margin-bottom: 12px; }
.footer-links a { color: #d1d5db; text-decoration: none; transition: color 0.3s ease, padding-left 0.3s ease; }
.footer-links a:hover { color: var(--rojo-bomberos); padding-left: 8px; }
.redes-sociales { display: flex; gap: 15px; margin-top: 20px; }
.redes-sociales a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: rgba(255,255,255,0.1); color: var(--texto-claro); border-radius: 50%; text-decoration: none; transition: all 0.3s ease; }
.redes-sociales a:hover { background-color: var(--rojo-bomberos); transform: translateY(-3px) rotate(360deg); }
.footer-contacto i { color: var(--rojo-bomberos); margin-right: 10px; width: 20px; text-align: center; }
.footer-bottom { background-color: rgba(0,0,0,0.3); text-align: center; padding: 20px 0; font-size: 0.9rem; }
.footer-bottom p { margin-bottom: 5px; }
.ubicom-credito a { color: var(--rojo-bomberos); text-decoration: none; font-weight: bold; letter-spacing: 1px; transition: color 0.3s ease; }
.ubicom-credito a:hover { color: var(--texto-claro); }

/* =========================================
   MODALES (PASO 1 Y 2)
========================================= */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 4000; opacity: 0; visibility: hidden; transition: all 0.4s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: #ffffff; width: 90%; max-width: 550px; border-radius: 12px; padding: 40px; position: relative; transform: scale(0.9); transition: all 0.4s ease; max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 50px rgba(0,0,0,0.3); }
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 1.5rem; color: #888; cursor: pointer; transition: color 0.3s ease; }
.modal-close:hover { color: var(--rojo-bomberos); }

.modal-header { text-align: center; margin-bottom: 25px; }
.modal-header h3 { color: var(--azul-oscuro); font-size: 1.8rem; margin-bottom: 10px; }
.modal-header p { color: #666; font-size: 0.95rem; }

/* Efectos visuales para los botones del Paso 1 */
#btn-selec-socio { transition: all 0.3s ease; }
#btn-selec-socio:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4); }

#btn-selec-unica { transition: all 0.3s ease; }
#btn-selec-unica:hover {
    background-color: var(--rojo-bomberos) !important;
    color: var(--texto-claro) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.monto-section { margin-bottom: 25px; }
.monto-title { display: block; font-size: 0.9rem; font-weight: bold; color: var(--azul-oscuro); margin-bottom: 10px; }
.monto-opciones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.monto-radio { cursor: pointer; }
.monto-radio input { display: none; }
.monto-btn { display: block; text-align: center; padding: 10px 5px; background-color: #f8f9fa; border: 2px solid #ddd; border-radius: 6px; font-weight: bold; color: #555; transition: all 0.3s ease; }
.monto-radio input:checked + .monto-btn { background-color: var(--rojo-bomberos); color: white; border-color: var(--rojo-bomberos); }
.input-otro-monto { display: none; margin-top: 15px; }
.modal-submit { width: 100%; margin-top: 10px; font-size: 1.2rem; }
.pago-seguro { text-align: center; font-size: 0.85rem; color: #888; margin-top: 15px; }
.pago-seguro i { color: #4CAF50; }

input.no-arrows::-webkit-outer-spin-button, input.no-arrows::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input.no-arrows { -moz-appearance: textfield; }

/* =========================================
   DISEÑO RESPONSIVO (MÓVILES Y TABLETS)
========================================= */
@media (max-width: 900px) {
    .seccion h2 { font-size: 2rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .nosotros-grid, .donar-grid { grid-template-columns: 1fr; gap: 40px; }
    .donar-imagen { order: -1; }
    .contacto-grid { grid-template-columns: 1fr; }
    .contacto-tarjeta { flex-direction: column; }
    .contacto-info-mapa, .contacto-formulario { width: 100%; padding: 30px; }
    .mapa-integrado { margin-top: 20px; height: 250px; }
    
    .menu-toggle { display: block; }
    .nav-cta { display: none; }
    .nav-links { display: flex; flex-direction: column; position: absolute; top: 100%; left: 5%; width: 90%; background-color: rgba(29, 53, 87, 0.95); backdrop-filter: blur(15px); border-radius: 12px; padding: 20px; text-align: center; gap: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.4); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; }
    .nav-links.active { opacity: 1; visibility: visible; transform: translateY(10px); }
    .form-grid { grid-template-columns: 1fr; }
    .monto-opciones { grid-template-columns: 1fr 1fr; }
}