:root {
  --navy: #0f1a3d;
  --gold: #f5c518;
  --yellow: #ffe14d;
  --pink: #c2185b; /* rosa #e91e63 oscurecido para cumplir contraste AA con texto blanco */
  --sky: #e3f2fd;
  --wa: #25d366;
  --text: #1b1f2e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: #fff; overflow-x: hidden; }
h1, h2, h3, .brand { font-family: "Baloo 2", system-ui, sans-serif; line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); color: var(--navy); margin: 0 0 1rem; }
h2::after { content: ""; display: block; width: 3rem; height: .3rem; margin-top: .3rem; background: var(--pink); border-radius: 1rem; }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--pink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
main > section { padding: 3.5rem 0; }
main > section.wrap { padding: 3.5rem 1rem; }
.alt { background: var(--sky); }

.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--navy); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; flex-wrap: wrap; }
.brand { color: var(--gold); text-decoration: none; font-size: 1.4rem; font-weight: 800; }
.brand span, .hero h1 span { color: #fff; }
.menu-btn { background: none; border: 2px solid var(--gold); color: var(--gold); font-size: 1.4rem; border-radius: .5rem; padding: .1rem .6rem; cursor: pointer; }
#nav { width: 100%; }
html:not(.js) .menu-btn { display: none; }
.js #nav:not(.open) { display: none; } /* sin JS el menú queda visible */

#nav ul { list-style: none; margin: 0; padding: 0 0 1rem; }
#nav a { display: block; padding: .6rem 0; color: #fff; text-decoration: none; font-weight: 600; }
#nav a:hover { color: var(--yellow); }
.site-header :focus-visible { outline-color: var(--yellow); }

@media (min-width: 60rem) {
  .menu-btn { display: none; }
  #nav, .js #nav:not(.open) { display: block; width: auto; }
  #nav ul { display: flex; gap: 1.1rem; padding: 0; }
  #nav a { padding: .3rem 0; font-size: .95rem; }
}

/* Hero */
.hero { background: var(--navy); color: #fff; text-align: center; padding: 4rem 0 5rem; }
.hero h1 { color: var(--gold); font-size: clamp(2.4rem, 9vw, 4.5rem); margin: 0; }
.slogan { font-family: "Baloo 2", sans-serif; font-size: clamp(1.4rem, 5vw, 2rem); color: var(--yellow); margin: .5rem 0; }
.lead { max-width: 38rem; margin: 0 auto 2rem; font-size: 1.1rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.btn { display: inline-block; padding: .85rem 1.5rem; border-radius: 2rem; font-weight: 700; text-decoration: none; text-align: center; }
.btn-gold { background: var(--yellow); color: var(--navy); }
.btn-gold:hover { background: var(--gold); }
.btn-wa { background: #fff; color: var(--navy); }
.btn-wa:hover { background: var(--sky); }
.btn-big { font-size: 1.25rem; padding: 1rem 2.2rem; box-shadow: 0 .3rem 0 var(--pink); }
.hero :focus-visible { outline-color: var(--yellow); }

/* Tarjetas */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.card { background: #fff; border: 2px solid var(--navy); border-radius: 1rem; padding: 1.2rem; box-shadow: .3rem .3rem 0 var(--gold); }
.card h3 { margin: 0 0 .3rem; color: var(--navy); font-size: 1.3rem; }
.card p { margin: 0; }
.card address { font-style: normal; margin-bottom: .6rem; }
.card a { font-weight: 700; }
.ico { font-size: 2rem; }
.note { margin-top: 1.5rem; font-weight: 600; }

/* Galería */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.gallery figure { margin: 0; background: #fff; border-radius: 1rem; overflow: hidden; border: 2px solid var(--navy); }
.gallery img, .gallery video { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.gallery iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.gallery figcaption { padding: .6rem .9rem; font-weight: 600; }

dialog { padding: 0; border: 0; border-radius: 1rem; max-width: 95vw; max-height: 95vh; background: var(--navy); }
dialog::backdrop { background: rgb(0 0 0 / .8); }
dialog img { max-height: 90vh; width: auto; }
dialog form { position: absolute; top: .5rem; right: .5rem; }
dialog button { background: var(--yellow); color: var(--navy); border: 0; border-radius: 50%; width: 2.5rem; height: 2.5rem; font-size: 1.2rem; cursor: pointer; }

.dona { text-align: center; }
.dona p { max-width: 40rem; margin-left: auto; margin-right: auto; }

.contact { list-style: none; padding: 0; font-size: 1.15rem; }
.contact li { margin: .4rem 0; }

.site-footer { background: var(--navy); color: #fff; text-align: center; padding: 2rem 0 5rem; }
.site-footer a { color: var(--yellow); }
.site-footer :focus-visible { outline-color: var(--yellow); }

.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 .2rem .6rem rgb(0 0 0 / .35); border: 2px solid #fff; }
.wa-float:hover { transform: scale(1.08); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .wa-float:hover { transform: none; } }
