/* ============================================================================
   estilos.css — Asociación Cooperadora Hospital Pasteur
   Diseño institucional, sobrio y profesional.
   Paleta y tipografías del sitio actual (cooperadorapasteur.com).
   ============================================================================ */

:root {
  --azul:          #002D62;   /* primario institucional */
  --azul-profundo: #001b3d;
  --azul-medio:    #1E6FB5;
  --cyan:          #17A2B8;   /* acento */
  --cyan-oscuro:   #128293;
  --teal:          #15919f;
  --tinta:         #0f1b2d;   /* títulos muy oscuros */
  --gris:          #56606e;   /* texto cuerpo */
  --gris-suave:    #7a838f;
  --linea:         #e6eaf0;
  --fondo:         #f7f9fc;   /* secciones alternas */
  --fondo-2:       #eef3f9;
  --blanco:        #ffffff;
  --verde:         #16a34a;
  --whatsapp:      #25D366;
  --rojo:          #d92d20;

  --sombra-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.05);
  --sombra:    0 1px 2px rgba(16,24,40,.05), 0 14px 30px -16px rgba(2,32,71,.22);
  --sombra-lg: 0 24px 60px -22px rgba(2,32,71,.28);
  --radio:     14px;
  --radio-sm:  10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  color: var(--gris); background: var(--blanco);
  line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased;
  overflow-x: hidden; width: 100%; max-width: 100%;
}
h1, h2, h3, h4 { font-family: 'Montserrat', system-ui, sans-serif; color: var(--tinta); line-height: 1.22; letter-spacing: -.01em; overflow-wrap: break-word; word-break: break-word; }
a { color: var(--cyan); text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }

.contenedor { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.seccion { padding: 96px 0; }
.seccion--clara { background: var(--fondo); }
.seccion--azul { background: var(--azul); color: #cdd9ec; }

/* ── Encabezado de sección ───────────────────────────────────────────────── */
.encabezado-seccion { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan-oscuro); background: rgba(23,162,184,.10);
  padding: 7px 15px; border-radius: 8px; margin-bottom: 20px;
}
.titulo-seccion { font-size: clamp(1.85rem, 3.6vw, 2.5rem); font-weight: 700; color: var(--azul); }
.titulo-seccion .acento { color: var(--cyan); }
.subrayado { width: 56px; height: 3px; border-radius: 3px; margin: 20px auto 0; background: var(--cyan); }
.encabezado-seccion p { margin-top: 18px; font-size: 1.06rem; color: var(--gris); }

/* ── Botones ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .95rem;
  padding: 13px 24px; border-radius: var(--radio-sm); border: 1.5px solid transparent;
  transition: all .2s ease; line-height: 1; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primario { color: #fff; background: var(--cyan); box-shadow: 0 6px 16px -6px rgba(23,162,184,.6); }
.btn-primario:hover { background: var(--cyan-oscuro); transform: translateY(-2px); box-shadow: 0 12px 22px -8px rgba(23,162,184,.6); }
.btn-oscuro { color: #fff; background: var(--azul); }
.btn-oscuro:hover { background: var(--azul-profundo); transform: translateY(-2px); }
.btn-fantasma { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); }
.btn-fantasma:hover { background: rgba(255,255,255,.16); }
.btn-borde { color: var(--azul); background: #fff; border-color: var(--linea); }
.btn-borde:hover { border-color: var(--cyan); color: var(--cyan-oscuro); }
.btn-verde { color: #fff; background: linear-gradient(90deg, #16a34a, #22c55e); box-shadow: 0 6px 16px -6px rgba(22,163,74,.6); }
.btn-verde:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 12px 22px -8px rgba(22,163,74,.6); }
.btn-grande { padding: 16px 30px; font-size: 1.05rem; border-radius: 12px; }
.btn-grande svg { width: 20px; height: 20px; }
.btn-bloque { width: 100%; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.header { position: sticky; top: 0; z-index: 900; background: var(--azul); border-bottom: 1px solid rgba(255,255,255,.08); transition: background .25s, box-shadow .25s; }
.header.scrolled { background: rgba(0,27,61,.96); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.header .contenedor { display: flex; align-items: center; gap: 20px; height: 76px; transition: height .25s; }
.header.scrolled .contenedor { height: 66px; }
.marca { display: flex; align-items: center; gap: 13px; min-width: 0; }
.marca .escudo { width: 46px; height: 46px; flex: none; border-radius: 10px; background: #fff; padding: 4px; box-shadow: var(--sombra-sm); }
.marca .escudo img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.marca .nombre { min-width: 0; }
.marca .nombre b { font-family: 'Montserrat', sans-serif; font-weight: 700; color: #fff; font-size: .98rem; line-height: 1.2; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marca .nombre span { display: block; font-size: .72rem; color: #9fb6d6; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; color: #d7e2f2; font-weight: 600; font-size: .92rem; padding: 9px 13px; border-radius: 8px; transition: color .2s; }
.nav a:hover { color: #fff; }
.nav a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after { transform: scaleX(1); }
.badge-nuevo { background: var(--rojo); color: #fff; font-size: .56rem; font-weight: 700; padding: 2px 6px; border-radius: 5px; position: absolute; top: -2px; right: -4px; letter-spacing: .05em; }
.btn-nav-sec { margin-left: 8px; padding: 9px 15px; font-size: .88rem; }
.btn-nav-sec svg { width: 16px; height: 16px; }
.btn-donar-nav { margin-left: 8px; padding: 10px 18px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: none; color: #fff; cursor: pointer; padding: 6px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url('../img/hero.jpg') center/cover no-repeat; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(0,21,46,.95) 0%, rgba(0,45,98,.88) 45%, rgba(0,45,98,.55) 100%); }
.hero .contenedor { position: relative; z-index: 2; max-width: 760px; padding-top: 120px; padding-bottom: 150px; }
.hero .pill { background: rgba(255,255,255,.12); color: #cfeaf1; border: 1px solid rgba(255,255,255,.18); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; margin: 18px 0 20px; letter-spacing: -.02em; }
.hero p { font-size: 1.2rem; color: #dbe6f5; margin-bottom: 36px; max-width: 580px; }
.hero-botones { display: flex; gap: 14px; flex-wrap: wrap; }
.onda { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; line-height: 0; }
.onda svg { width: 100%; height: 64px; }
.hero-scroll { position: absolute; left: 50%; transform: translateX(-50%); bottom: 70px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; font-family: 'Montserrat', sans-serif; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; opacity: .92; transition: opacity .2s; }
.hero-scroll:hover { opacity: 1; color: #fff; }
.hero-scroll span { animation: latirTexto 2s ease-in-out infinite; }
.hero-scroll svg { animation: bajar 1.5s ease-in-out infinite; }
@keyframes bajar {
  0%   { transform: translateY(-2px); opacity: .5; }
  50%  { transform: translateY(8px);  opacity: 1; }
  100% { transform: translateY(-2px); opacity: .5; }
}
@keyframes latirTexto { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }

/* ── Badge de ícono (cuadrado, tinte suave) ──────────────────────────────── */
.icono-circulo { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; color: var(--cyan); background: rgba(23,162,184,.1); }
.icono-circulo svg { width: 28px; height: 28px; }
.icono-circulo.azul { color: var(--azul); background: rgba(0,45,98,.08); }
.tarjeta.centro .icono-circulo { margin-left: auto; margin-right: auto; }

/* ── Cinta de empresas (scroll infinito) ─────────────────────────────────── */
.cinta-empresas { background: #fff; border-bottom: 1px solid var(--linea); padding: 24px 0; overflow: hidden; }
.cinta-titulo { text-align: center; font-family: 'Montserrat', sans-serif; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gris-suave); margin-bottom: 18px; }
.cinta-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.cinta-track { display: flex; align-items: stretch; gap: 18px; width: max-content; animation: marquee 38s linear infinite; }
.cinta-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 18px; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cinta-item { flex: none; height: 76px; min-width: 130px; display: flex; align-items: center; justify-content: center; padding: 10px 20px; background: var(--fondo); border: 1px solid var(--linea); border-radius: 12px; }
.cinta-item img { max-height: 52px; max-width: 150px; object-fit: contain; }
.cinta-cta { cursor: pointer; gap: 12px; color: var(--azul); background: rgba(23,162,184,.06); border: 1.5px dashed var(--cyan); font-family: inherit; transition: transform .2s, background .2s; }
.cinta-cta:hover { background: rgba(23,162,184,.14); transform: translateY(-2px); }
.cinta-cta .cinta-cta-mas { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--cyan); color: #fff; display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; }
.cinta-cta b { display: block; font-family: 'Montserrat', sans-serif; font-size: .92rem; color: var(--azul); }
.cinta-cta small { display: block; font-size: .76rem; color: var(--gris-suave); }
.aviso-mensual { display: flex; align-items: center; gap: 10px; background: rgba(23,162,184,.08); border: 1px solid rgba(23,162,184,.25); color: var(--cyan-oscuro); border-radius: var(--radio-sm); padding: 12px 14px; font-size: .86rem; margin: 16px 0 6px; }
.aviso-mensual svg { flex: none; color: var(--cyan); }
@media (prefers-reduced-motion: reduce) { .cinta-track { animation: none; } }

/* ── Quiénes Somos ───────────────────────────────────────────────────────── */
.qs-tarjeta { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--linea); border-radius: 18px; box-shadow: var(--sombra); padding: 48px 52px; }
.qs-tarjeta p { font-size: 1.1rem; color: #3c4754; margin-bottom: 20px; }
.qs-tarjeta p:last-child { margin-bottom: 0; }
.txt-azul { color: var(--azul); font-weight: 700; }
.txt-cyan { color: var(--cyan-oscuro); font-weight: 700; }
.txt-italic { font-style: italic; font-weight: 600; color: var(--tinta); }

/* ── Tarjetas ────────────────────────────────────────────────────────────── */
.grilla-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grilla-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; align-items: stretch; }
.tarjeta { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra-sm); padding: 34px 30px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.tarjeta:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: #d8e0ea; }
.tarjeta.centro { text-align: center; }
.tarjeta h3 { font-size: 1.18rem; margin-bottom: 12px; color: var(--azul); font-weight: 700; }
.tarjeta p { color: var(--gris); }

.labor { margin-top: 44px; background: #fff; border: 1px solid var(--linea); border-left: 4px solid var(--cyan); border-radius: var(--radio); padding: 28px 32px; box-shadow: var(--sombra-sm); }
.labor h3 { color: var(--azul); font-size: 1.18rem; margin-bottom: 8px; }

/* ── Donaciones ──────────────────────────────────────────────────────────── */
.tarjeta-donacion { display: flex; flex-direction: column; padding: 38px 34px; }
.lista-tildes { list-style: none; margin: 20px 0 26px; }
.lista-tildes li { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 13px; color: #3c4754; }
.lista-tildes li svg { flex: none; width: 20px; height: 20px; color: var(--verde); margin-top: 3px; }
.tarjeta-donacion .btn { margin-top: auto; }

/* ── Albergue ────────────────────────────────────────────────────────────── */
.albergue-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.albergue-flex .foto { border-radius: 18px; box-shadow: var(--sombra-lg); overflow: hidden; aspect-ratio: 4/3; }
.albergue-flex .foto img { width: 100%; height: 100%; object-fit: cover; }
.albergue-flex h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--azul); margin-bottom: 18px; }
.albergue-flex p { margin-bottom: 26px; }

/* ── Novedades y Eventos ─────────────────────────────────────────────────── */
.grilla-eventos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.evento { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra-sm); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.evento:hover { transform: translateY(-5px); box-shadow: var(--sombra); }
.evento-img { position: relative; aspect-ratio: 16/10; background: var(--fondo-2); }
.evento-img img { width: 100%; height: 100%; object-fit: cover; }
.evento-img-ph { width: 100%; height: 100%; display: grid; place-items: center; color: #b9c6d8; background: linear-gradient(135deg, #eef3f9, #e2e9f2); }
.evento-fecha { position: absolute; top: 14px; left: 14px; background: var(--azul); color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .76rem; letter-spacing: .03em; padding: 7px 12px; border-radius: 8px; box-shadow: var(--sombra-sm); }
.evento-cuerpo { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.evento-cuerpo h3 { font-size: 1.18rem; color: var(--azul); margin-bottom: 8px; }
.evento-lugar { display: flex; align-items: center; gap: 6px; color: var(--gris-suave); font-size: .88rem; margin-bottom: 10px; }
.evento-lugar svg { color: var(--cyan); }
.evento-desc { color: var(--gris); font-size: .95rem; margin-bottom: 18px; }
.evento-pie { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 16px; border-top: 1px solid var(--linea); }
.evento-precio span { display: block; font-size: .74rem; color: var(--gris-suave); text-transform: uppercase; letter-spacing: .05em; }
.evento-precio b { font-family: 'Montserrat', sans-serif; font-size: 1.3rem; color: var(--azul); }
.eventos-vacio { max-width: 520px; margin: 0 auto; text-align: center; padding: 40px 20px; }
.eventos-vacio-ic { width: 92px; height: 92px; border-radius: 50%; background: rgba(23,162,184,.1); color: var(--cyan); display: grid; place-items: center; margin: 0 auto 24px; }
.eventos-vacio-ic svg { width: 42px; height: 42px; }
.eventos-vacio h3 { color: var(--azul); font-size: 1.4rem; margin-bottom: 10px; }
.eventos-vacio p { color: var(--gris); }
.total-entrada { background: var(--fondo); border: 1px solid var(--linea); border-radius: var(--radio-sm); padding: 13px 16px; margin: 4px 0 18px; font-size: .95rem; color: var(--gris); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.total-entrada b { font-family: 'Montserrat', sans-serif; font-size: 1.2rem; color: var(--azul); }

/* ── Sponsors ────────────────────────────────────────────────────────────── */
.carrusel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.sponsor { background: #fff; border: 1.5px dashed #cdd6e2; border-radius: var(--radio); padding: 40px 18px; text-align: center; color: var(--gris-suave); transition: border-color .2s; }
.sponsor:hover { border-color: var(--cyan); }

/* ── Contacto ────────────────────────────────────────────────────────────── */
.contacto-grilla { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; }
.tarjeta h3.titulo-tarjeta { margin-bottom: 22px; font-size: 1.25rem; }
.campo { margin-bottom: 17px; }
.campo label { display: block; font-weight: 600; color: var(--tinta); margin-bottom: 7px; font-size: .88rem; }
.campo input, .campo select, .campo textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--linea); border-radius: var(--radio-sm); font: inherit; color: var(--tinta); background: #fff; transition: border-color .2s, box-shadow .2s; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(23,162,184,.14); }
.campo textarea { resize: vertical; min-height: 120px; }
.info-contacto-item { display: flex; gap: 15px; margin-bottom: 22px; align-items: flex-start; }
.info-contacto-item .ic { flex: none; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: rgba(23,162,184,.1); color: var(--cyan); }
.info-contacto-item .ic svg { width: 20px; height: 20px; }
.info-contacto-item b { color: var(--azul); display: block; font-family: 'Montserrat', sans-serif; font-size: .92rem; margin-bottom: 2px; }
.info-contacto-item span { color: var(--gris); font-size: .96rem; }
.redes { display: flex; gap: 10px; }
.redes a { width: 42px; height: 42px; border-radius: 11px; background: rgba(23,162,184,.1); color: var(--cyan); display: grid; place-items: center; transition: all .2s; }
.redes a svg { width: 19px; height: 19px; }
.redes a:hover { background: var(--cyan); color: #fff; transform: translateY(-2px); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { background: var(--azul-profundo); color: #a9bcd6; padding: 72px 0 28px; }
.footer h4 { color: #fff; margin-bottom: 20px; font-size: 1.02rem; font-weight: 600; }
.footer-grilla { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 40px; }
.footer p { color: #a9bcd6; margin-bottom: 18px; font-size: .95rem; }
.footer a { color: #a9bcd6; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 11px; font-size: .95rem; }
.footer .redes a { background: rgba(255,255,255,.08); color: #cdd9ec; }
.footer .redes a:hover { background: var(--cyan); color: #fff; }
.footer-info li { display: flex; gap: 10px; align-items: flex-start; }
.footer-info li svg { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--cyan); }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 52px; padding-top: 26px; text-align: center; font-size: .85rem; color: #7e93b3; }

/* ── Modales ─────────────────────────────────────────────────────────────── */
.modal-fondo { position: fixed; inset: 0; z-index: 1000; display: none; background: rgba(2,16,38,.6); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 20px; }
.modal-fondo.abierto { display: flex; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; box-shadow: var(--sombra-lg); animation: aparecer .28s cubic-bezier(.2,.8,.2,1); }
@keyframes aparecer { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-cabecera { background: var(--azul); color: #fff; padding: 22px 26px; border-radius: 18px 18px 0 0; position: relative; }
.modal-cabecera h3 { color: #fff; font-size: 1.2rem; }
.modal-cabecera p { color: #aec4e3; font-size: .85rem; margin-top: 3px; }
.modal-cuerpo { padding: 26px; }
.modal-cerrar { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.14); border: none; color: #fff; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.modal-cerrar:hover { background: rgba(255,255,255,.26); }
.modal-cerrar svg { width: 18px; height: 18px; }
.montos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.monto-op { padding: 13px 6px; border: 1.5px solid var(--linea); border-radius: var(--radio-sm); background: #fff; font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--azul); cursor: pointer; transition: all .15s; }
.monto-op:hover { border-color: var(--cyan); transform: translateY(-2px); box-shadow: var(--sombra-sm); }
.monto-op.activo { background: var(--cyan); color: #fff; border-color: var(--cyan); }
.input-monto { position: relative; display: flex; align-items: center; }
.input-monto .signo { position: absolute; left: 14px; font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--azul); font-size: 1.1rem; pointer-events: none; }
.input-monto input { padding-left: 30px !important; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--azul); }
.monto-letras { margin-top: 8px; font-size: .86rem; color: var(--cyan-oscuro); font-style: italic; min-height: 1.1em; }
.monto-letras:not(:empty) { background: rgba(23,162,184,.08); border-radius: 8px; padding: 6px 10px; }

/* Donación: pasos amigables */
.don-paso { display: flex; align-items: center; gap: 9px; font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--azul); font-size: 1.02rem; margin: 4px 0 12px; }
.don-paso:not(:first-child) { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--linea); }
.don-num { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--cyan); color: #fff; display: grid; place-items: center; font-size: .82rem; }
.modal-cabecera .ico-corazon { display: inline; vertical-align: -3px; }
.campo-libre label { color: var(--cyan-oscuro); }
.campo-libre .input-monto input { border-color: rgba(23,162,184,.4); background: rgba(23,162,184,.04); }
.campo-ayuda { display: block; margin-top: 5px; font-size: .78rem; color: var(--gris-suave); }
.campo .opc { font-weight: 400; color: var(--gris-suave); font-size: .82rem; }
.switch-fila { display: flex; align-items: center; gap: 13px; background: var(--fondo); border: 1px solid var(--linea); padding: 15px; border-radius: var(--radio-sm); margin: 6px 0 18px; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .pista { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: .2s; cursor: pointer; }
.switch .pista::before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .pista { background: var(--cyan); }
.switch input:checked + .pista::before { transform: translateX(20px); }
.nota-segura { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: .8rem; color: var(--gris-suave); margin-top: 16px; }
.nota-segura svg { width: 15px; height: 15px; }

/* Tic de "enviado" animado (verde profesional) + spinner */
.envio-ok { text-align: center; padding: 26px 12px; animation: apFade .3s ease; }
.tic-svg { width: 76px; height: 76px; margin: 0 auto 14px; display: block; }
.tic-circ { stroke: var(--verde); stroke-width: 3; fill: none; stroke-dasharray: 151; stroke-dashoffset: 151; animation: ticCirc .55s cubic-bezier(.65,0,.45,1) forwards; }
.tic-check { stroke: var(--verde); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: ticCheck .35s .5s cubic-bezier(.65,0,.45,1) forwards; }
.tic-svg .tic-bg { fill: rgba(22,163,74,.1); transform-origin: center; animation: ticPop .4s ease; }
@keyframes ticCirc { to { stroke-dashoffset: 0; } }
@keyframes ticCheck { to { stroke-dashoffset: 0; } }
@keyframes ticPop { 0% { transform: scale(0); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes apFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.envio-ok h4 { color: var(--verde); font-family: 'Montserrat', sans-serif; font-size: 1.18rem; margin-bottom: 6px; }
.envio-ok p { color: var(--gris); font-size: .95rem; }
.spinner-env { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: girar .8s linear infinite; vertical-align: -3px; }
@keyframes girar { to { transform: rotate(360deg); } }

.aviso { padding: 12px 15px; border-radius: var(--radio-sm); font-size: .9rem; margin-bottom: 15px; display: none; }
.aviso.ok { background: #ecfdf3; color: #027a48; border: 1px solid #a6f4c5; display: block; }
.aviso.error { background: #fef3f2; color: #b42318; border: 1px solid #fecdc9; display: block; }
.aviso.info { background: #eff8ff; color: #175cd3; border: 1px solid #b2ddff; display: block; }

.consulta-cab { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: .85rem; color: var(--gris); }
.consulta-vivo { display: inline-flex; align-items: center; gap: 5px; color: var(--verde); font-weight: 700; font-size: .78rem; }
.consulta-vivo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--verde); animation: latido 1.6s infinite; }
@keyframes latido { 0%,100% { box-shadow: 0 0 0 0 rgba(22,163,74,.6); } 70% { box-shadow: 0 0 0 6px rgba(22,163,74,0); } }
.vivo-flash { animation: flashVivo .9s ease; }
@keyframes flashVivo { 0% { background: rgba(34,197,94,.18); } 100% { background: transparent; } }
.tabla-consulta { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .9rem; }
.tabla-consulta th, .tabla-consulta td { padding: 10px; border-bottom: 1px solid var(--linea); text-align: left; }
.tabla-consulta th { color: var(--azul); font-family: 'Montserrat', sans-serif; font-size: .8rem; }
.etiqueta-estado { padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.estado-pendiente { background: #fef0c7; color: #b54708; }
.estado-aprobada, .estado-completada, .estado-activa { background: #dcfae6; color: #027a48; }
.estado-rechazada, .estado-cancelada, .estado-fallida { background: #fee4e2; color: #b42318; }

/* ── WhatsApp: widget de chat flotante ───────────────────────────────────── */
.wsp-widget { position: fixed; bottom: 26px; right: 26px; z-index: 800; }
.wsp-flotante { position: relative; width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: grid; place-items: center; border: none; cursor: pointer; box-shadow: 0 12px 28px -8px rgba(37,211,102,.7); transition: transform .25s; }
.wsp-flotante svg { width: 30px; height: 30px; }
.wsp-flotante:hover { transform: scale(1.08); }
.wsp-widget.abierto .wsp-flotante { transform: scale(.9); }
.wsp-flotante::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: pulso 2.4s infinite; }
.wsp-widget.abierto .wsp-flotante::after { animation: none; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.wsp-notif { position: absolute; top: -2px; right: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--rojo); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.wsp-widget.abierto .wsp-notif { display: none; }

.wsp-chat { position: absolute; bottom: 78px; right: 0; width: 340px; max-width: calc(100vw - 36px); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px -16px rgba(0,0,0,.4); transform-origin: bottom right; opacity: 0; visibility: hidden; transform: translateY(16px) scale(.94); transition: opacity .25s ease, transform .28s cubic-bezier(.2,.8,.2,1), visibility .25s; }
.wsp-widget.abierto .wsp-chat { opacity: 1; visibility: visible; transform: none; }
.wsp-chat-cabecera { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, #075E54, #128C7E); color: #fff; }
.wsp-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; background: #fff; border: 2px solid rgba(255,255,255,.6); }
.wsp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wsp-chat-titulo { flex: 1; min-width: 0; }
.wsp-chat-titulo b { display: block; font-family: 'Montserrat', sans-serif; font-size: .95rem; color: #fff; }
.wsp-chat-titulo span { display: flex; align-items: center; gap: 6px; font-size: .76rem; color: #d6f5e8; }
.wsp-online { width: 8px; height: 8px; border-radius: 50%; background: #6ee7a8; box-shadow: 0 0 0 0 rgba(110,231,168,.7); animation: latido 1.8s infinite; }
@keyframes latido { 0%{box-shadow:0 0 0 0 rgba(110,231,168,.7)} 70%{box-shadow:0 0 0 7px rgba(110,231,168,0)} 100%{box-shadow:0 0 0 0 rgba(110,231,168,0)} }
.wsp-chat-cerrar { background: rgba(255,255,255,.18); border: none; color: #fff; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; flex: none; transition: background .2s; }
.wsp-chat-cerrar:hover { background: rgba(255,255,255,.3); }
.wsp-chat-cerrar svg { width: 16px; height: 16px; }
.wsp-chat-cuerpo { padding: 22px 16px; min-height: 150px; background-color: #e5ddd5; background-image: linear-gradient(rgba(229,221,213,.92), rgba(229,221,213,.92)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='4' cy='4' r='1.2' fill='%23cabfae'/%3E%3C/svg%3E"); }
.wsp-burbuja { position: relative; background: #fff; border-radius: 0 12px 12px 12px; padding: 12px 14px 22px; box-shadow: 0 1px 2px rgba(0,0,0,.15); max-width: 86%; animation: entraBurbuja .4s ease both; }
.wsp-burbuja::before { content: ""; position: absolute; top: 0; left: -7px; border: 7px solid transparent; border-top-color: #fff; border-right: 0; }
.wsp-burbuja p { font-size: .9rem; color: #303030; line-height: 1.5; margin-bottom: 6px; }
.wsp-burbuja p:last-of-type { margin-bottom: 0; }
.wsp-hora { position: absolute; bottom: 6px; right: 12px; font-size: .66rem; color: #8c9698; }
@keyframes entraBurbuja { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wsp-chat-pie { display: flex; align-items: center; gap: 8px; padding: 10px; background: #f0f0f0; }
.wsp-chat-pie input { flex: 1; border: none; background: #fff; border-radius: 999px; padding: 11px 16px; font: inherit; font-size: .9rem; outline: none; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.wsp-chat-pie button { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--whatsapp); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; transition: transform .2s, background .2s; }
.wsp-chat-pie button:hover { background: #1eb858; transform: scale(1.06); }
.wsp-chat-pie button svg { width: 19px; height: 19px; }

/* ── Pop-up ──────────────────────────────────────────────────────────────── */
.popup-modal { max-width: 440px; }
.popup-modal .popup-img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 18px 18px 0 0; }
.popup-modal .modal-cuerpo { text-align: center; }
.popup-modal .modal-cuerpo h3 { color: var(--azul); margin-bottom: 10px; }
.popup-no-mostrar { display: block; margin: 16px auto 0; font-size: .82rem; color: var(--gris-suave); cursor: pointer; background: none; border: none; }
.popup-no-mostrar:hover { color: var(--gris); }

/* ════════════════════════ DETALLE FINO Y EFECTOS ════════════════════════ */

/* Barra de scroll de la página (redondeada, en color de marca) */
html { scrollbar-width: thin; scrollbar-color: var(--cyan) transparent; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--fondo); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--azul-medio), var(--cyan)); border-radius: 999px; border: 3px solid var(--fondo); }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-oscuro); }

/* Selección de texto con identidad de marca */
::selection { background: rgba(23,162,184,.22); color: var(--azul); }

/* Scrollbar interno de los modales: redondeado y "metido" para respetar las esquinas */
.modal { scrollbar-width: thin; scrollbar-color: rgba(23,162,184,.6) transparent; }
.modal::-webkit-scrollbar { width: 9px; }
.modal::-webkit-scrollbar-track { background: transparent; margin: 18px 0; }
.modal::-webkit-scrollbar-thumb { background: rgba(23,162,184,.45); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.modal::-webkit-scrollbar-thumb:hover { background: rgba(23,162,184,.75); background-clip: padding-box; }

/* Drawer del menú móvil: scrollbar sutil */
.nav { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; }
.nav::-webkit-scrollbar { width: 7px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 999px; }

/* Foco accesible y elegante en todos los interactivos */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px;
}

/* Botones: barrido de brillo al pasar el mouse */
.btn-primario, .btn-oscuro { position: relative; overflow: hidden; isolation: isolate; }
.btn-primario::before, .btn-oscuro::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg); transition: left .6s ease;
}
.btn-primario:hover::before, .btn-oscuro:hover::before { left: 130%; }
.btn:active { transform: translateY(0) scale(.985); }

/* Tarjetas: línea de acento superior que aparece al pasar el mouse */
.tarjeta { position: relative; overflow: hidden; }
.tarjeta::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--azul), var(--cyan));
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.tarjeta:hover::after { transform: scaleX(1); }

/* Badge de ícono: leve animación al hover de la tarjeta */
.tarjeta .icono-circulo { transition: transform .35s ease, background .35s ease, color .35s ease; }
.tarjeta:hover .icono-circulo { transform: translateY(-3px) scale(1.06); }

/* Eventos: zoom suave de la imagen y elevación */
.evento-img img { transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.evento:hover .evento-img img { transform: scale(1.07); }
.albergue-flex .foto img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.albergue-flex .foto:hover img { transform: scale(1.05); }

/* Inputs: transición fluida y elevación al enfocar */
.campo input, .campo select, .campo textarea { transition: border-color .2s, box-shadow .2s, transform .2s; }
.campo input:focus, .campo select:focus, .campo textarea:focus { transform: translateY(-1px); }

/* Pills con micro-detalle */
.pill { transition: transform .2s ease, box-shadow .2s ease; }
.encabezado-seccion:hover .pill { transform: translateY(-1px); }

/* Logo del header: leve brillo al hover */
.marca .escudo { transition: transform .3s ease, box-shadow .3s ease; }
.marca:hover .escudo { transform: rotate(-3deg) scale(1.05); box-shadow: 0 6px 18px rgba(23,162,184,.4); }

/* Aparición elegante del menú lateral: los ítems entran escalonados */
@media (max-width: 1080px) {
  .nav.abierto a, .nav.abierto .btn { animation: entraItem .4s both; }
  .nav.abierto a:nth-child(1){animation-delay:.04s}.nav.abierto a:nth-child(2){animation-delay:.08s}
  .nav.abierto a:nth-child(3){animation-delay:.12s}.nav.abierto a:nth-child(4){animation-delay:.16s}
  .nav.abierto a:nth-child(5){animation-delay:.20s}.nav.abierto a:nth-child(6){animation-delay:.24s}
  .nav.abierto .btn-nav-sec{animation-delay:.28s}.nav.abierto .btn-donar-nav{animation-delay:.32s}
  @keyframes entraItem { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
}

/* Redes sociales: color de cada marca al pasar el mouse */
.redes a.red-fb:hover { background: #1877F2; color: #fff; }
.redes a.red-ig:hover { background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); color: #fff; }
.redes a.red-tw:hover { background: #000; color: #fff; }
.redes a.red-yt:hover { background: #FF0000; color: #fff; }
.footer .redes a.red-fb:hover { background: #1877F2; }
.footer .redes a.red-ig:hover { background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); }
.footer .redes a.red-tw:hover { background: #000; }
.footer .redes a.red-yt:hover { background: #FF0000; }

/* Marca de agua D'Agostini Sistemas */
.marca-agua { color: #c9d6ea; font-weight: 600; position: relative; transition: color .2s; }
.marca-agua::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.marca-agua:hover { color: #fff; }
.marca-agua:hover::after { transform: scaleX(1); }

/* ── Páginas legales ─────────────────────────────────────────────────────── */
.legal-header { background: var(--azul); }
.legal-header .contenedor { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.legal-volver { padding: 9px 16px; font-size: .88rem; }
.legal-hero { background: linear-gradient(120deg, var(--azul-profundo), var(--azul) 55%, var(--cyan)); color: #fff; padding: 48px 0; }
.legal-hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.legal-hero p { color: #d6e4f5; margin-top: 8px; }
.legal-contenido { max-width: 840px; margin: 0 auto; padding: 48px 24px 64px; color: #34404f; }
.legal-contenido h2 { color: var(--azul); font-size: 1.3rem; margin: 30px 0 12px; padding-bottom: 8px; border-bottom: 2px solid rgba(23,162,184,.25); }
.legal-contenido p { margin-bottom: 12px; line-height: 1.7; }
.legal-contenido ul { margin: 6px 0 14px 22px; }
.legal-contenido li { margin-bottom: 8px; }
.legal-nota { background: var(--fondo); border-left: 4px solid var(--cyan); border-radius: 10px; padding: 14px 16px; margin: 14px 0; font-size: .92rem; color: var(--gris); }
.legal-form { max-width: 520px; margin-top: 10px; }
.legal-ok { display: flex; align-items: center; gap: 10px; background: #ecfdf3; color: #027a48; border: 1px solid #a6f4c5; border-radius: 12px; padding: 16px; font-weight: 600; }
.legal-error { background: #fef3f2; color: #b42318; border: 1px solid #fecdc9; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }

/* Consentimiento en los formularios */
.check-legal { display: flex; align-items: flex-start; gap: 9px; font-size: .85rem; color: var(--gris); margin: 4px 0 16px; cursor: pointer; line-height: 1.5; }
.check-legal input { width: auto; margin-top: 3px; flex: none; accent-color: var(--cyan); }
.check-legal a { font-weight: 600; }

/* Enlaces legales del footer */
.footer-legales { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.footer-legales a { font-size: .9rem; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

/* Tablet / desktop chico: menú hamburguesa en panel lateral (evita header apretado) */
@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 320px); z-index: 950;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px;
    background: var(--azul-profundo); padding: 88px 20px 28px;
    transform: translateX(100%); transition: transform .3s cubic-bezier(.22,.61,.36,1);
    box-shadow: -16px 0 40px rgba(0,0,0,.4); overflow-y: auto;
  }
  .nav.abierto { transform: none; }
  .nav a { padding: 14px 16px; font-size: 1rem; }
  .nav a::after { display: none; }
  .btn-nav-sec, .btn-donar-nav { width: 100%; margin: 4px 0 0; justify-content: center; padding: 14px; font-size: .98rem; }
  .nav-overlay { position: fixed; inset: 0; z-index: 940; background: rgba(0,16,38,.5); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .3s; }
  .nav-overlay.activo { opacity: 1; visibility: visible; }
}

/* Tablets en vertical / pantallas medianas */
@media (max-width: 920px) {
  .seccion { padding: 72px 0; }
  .grilla-3, .grilla-eventos, .carrusel { grid-template-columns: repeat(2, 1fr); }
  .grilla-2, .albergue-flex, .contacto-grilla { grid-template-columns: 1fr; }
  .footer-grilla { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .albergue-flex { gap: 32px; }
  .albergue-flex .foto { order: -1; }
  .encabezado-seccion { margin-bottom: 44px; }
}

/* Teléfonos */
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .contenedor { padding: 0 18px; }
  .seccion { padding: 56px 0; }
  .grilla-3, .grilla-eventos, .carrusel, .footer-grilla { grid-template-columns: 1fr; }
  .grilla-3, .grilla-eventos { gap: 18px; }
  .qs-tarjeta { padding: 28px 22px; }
  .qs-tarjeta p { font-size: 1.02rem; }
  .tarjeta, .tarjeta-donacion { padding: 28px 22px; }
  .hero .contenedor { padding-top: 76px; padding-bottom: 96px; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .hero p { font-size: 1.05rem; }
  .hero-botones { flex-direction: column; align-items: stretch; }
  .hero-botones .btn { width: 100%; }
  .hero-scroll { display: none; }
  .titulo-seccion { font-size: 1.7rem; }
  .evento-pie { flex-direction: column; align-items: stretch; gap: 12px; }
  .evento-pie .btn, .evento-pie a { width: 100%; }
  .footer { padding: 56px 0 24px; }
  .footer-grilla { gap: 28px; }
  .modal-cuerpo { padding: 22px 20px; }
  .montos { grid-template-columns: repeat(2, 1fr); }
  .wsp-widget { bottom: 18px; right: 16px; }
  .wsp-flotante { width: 54px; height: 54px; }
  .wsp-chat { bottom: 72px; }
  .header .contenedor { height: 64px; gap: 10px; padding: 0 14px; }
  .nav { top: 0; padding-top: 76px; }
  .marca .nombre span { display: none; }
  .pill { font-size: .66rem; letter-spacing: .12em; }
}

/* Pantallas muy chicas */
@media (max-width: 360px) {
  .montos { grid-template-columns: 1fr 1fr; }
  .marca .escudo { width: 40px; height: 40px; }
  .marca .nombre b { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
