/* =====================================================
   MARÍA PÍA — STYLES
   Paleta y tokens del manual de marca
   ===================================================== */

@supports (padding-top: env(safe-area-inset-top)) {
  :root {
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
  }
}

:root {
  --safe-top: 0px;
  --safe-bottom: 0px;
  --green-deep: #0B5A2A;
  --green-brand: #1FA34A;
  --green-vital: #36C760;
  --green-lime: #A8E063;
  --green-soft: #E6F4EA;
  --cream: #F6FBF4;
  --white: #FFFFFF;
  --carbon: #1C2B23;
  --muted: #5C6B62;

  --grad-hero: linear-gradient(135deg, #0B5A2A 0%, #1FA34A 55%, #36C760 100%);
  --grad-soft: linear-gradient(180deg, #F6FBF4 0%, #FFFFFF 100%);
  --grad-accent: linear-gradient(90deg, #1FA34A 0%, #A8E063 100%);

  --shadow-sm: 0 4px 16px rgba(15, 122, 53, 0.08);
  --shadow-md: 0 12px 32px rgba(15, 122, 53, 0.12);
  --shadow-lg: 0 24px 60px rgba(15, 122, 53, 0.18);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container: 1200px;
}

/* ============== RESET ============== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  color: var(--carbon);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(31,163,74,.18);
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--green-deep);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============== UTILS ============== */
.hl { color: var(--green-brand); }
.hl-light { color: var(--green-lime); }

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-brand);
  background: var(--green-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.kicker--light {
  color: var(--white);
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}

.pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .08em;
}
.pill--light {
  background: rgba(255,255,255,.16);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad-accent);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn--white {
  background: var(--white);
  color: var(--green-deep);
  box-shadow: var(--shadow-sm);
}
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--block { width: 100%; }

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}
.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 14px;
}
.section-head p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============== NAV ============== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 16px rgba(11,90,42,.06);
  padding: 10px 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.18));
  transition: transform .3s;
}
.nav__brand:hover .nav__logo { transform: scale(1.04); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__menu a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--white);
  position: relative;
  transition: color .25s;
  text-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.nav.is-scrolled .nav__menu a { color: var(--carbon); text-shadow: none; }
.nav__menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  height: 2px; width: 0;
  background: var(--green-brand);
  transition: width .3s;
}
.nav__menu a:hover::after { width: 100%; }

.nav__cta {
  background: var(--white);
  color: var(--green-deep) !important;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  text-shadow: none !important;
  transition: transform .25s, box-shadow .25s;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.nav__cta::after { display: none; }
.nav.is-scrolled .nav__cta { background: var(--green-brand); color: var(--white) !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__toggle span {
  width: 26px; height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s, background .3s;
}
.nav.is-scrolled .nav__toggle span { background: var(--carbon); }

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--grad-hero);
  color: var(--white);
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.blob--1 { width: 500px; height: 500px; background: var(--green-lime); top: -100px; right: -100px; animation: float 12s ease-in-out infinite; }
.blob--2 { width: 400px; height: 400px; background: var(--green-vital); bottom: -150px; left: -100px; animation: float 14s ease-in-out infinite reverse; }
.blob--3 { width: 300px; height: 300px; background: #FFFFFF; top: 40%; left: 30%; opacity: .12; animation: float 10s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
  z-index: 2;
}
.hero__copy { animation: slideInLeft 1s ease both; }
.hero__title {
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  margin: 18px 0 24px;
}
.hero__title .hl { color: var(--green-lime); }
.hero__lead {
  font-size: 18px;
  color: rgba(255,255,255,.92);
  max-width: 560px;
  margin: 0 0 32px;
}
.hero__lead strong { color: var(--white); }
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.hero__stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 480px;
}
.hero__stats li {
  border-left: 3px solid var(--green-lime);
  padding-left: 14px;
}
.hero__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.hero__stats span {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero__photo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  animation: slideInRight 1.2s ease both;
}
.hero__photo img {
  position: relative;
  z-index: 2;
  max-height: 640px;
  width: auto;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.35));
}
.hero__photo-glow {
  position: absolute;
  width: 90%; height: 90%;
  background: radial-gradient(circle, rgba(168,224,99,.4) 0%, transparent 70%);
  border-radius: 50%;
  bottom: 0;
  filter: blur(40px);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .6; }
  50% { transform: scale(1.1); opacity: .8; }
}

.hero__badge {
  position: absolute;
  top: 40px;
  left: -50px;
  z-index: 3;
  background: var(--white);
  color: var(--green-deep);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: floatBadge 4s ease-in-out infinite;
}
.hero__badge-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  color: var(--green-brand);
  line-height: 1;
}
.hero__badge-text {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: none; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: none; }
}

.hero__wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: var(--white);
  clip-path: polygon(0 60%, 25% 30%, 50% 60%, 75% 30%, 100% 60%, 100% 100%, 0 100%);
  z-index: 1;
}

/* ============== VALORES ============== */
.values { padding: 80px 0; background: var(--white); }
.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--green-soft);
  text-align: center;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.value:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-vital);
}
.value__icon {
  display: inline-flex;
  width: 56px; height: 56px;
  align-items: center;
  justify-content: center;
  background: var(--grad-accent);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 24px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(31,163,74,.3);
}
.value h3 { font-size: 20px; margin-bottom: 8px; }
.value p { color: var(--muted); margin: 0; font-size: 15px; }

/* ============== BIO ============== */
.bio {
  padding: 100px 0;
  background: var(--grad-soft);
}
.bio__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.bio__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.bio__photo img { width: 100%; height: 540px; object-fit: cover; }
.bio__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,90,42,.85) 100%);
  z-index: 1;
}
.bio__quote {
  position: absolute;
  bottom: 30px; left: 30px; right: 30px;
  z-index: 2;
  color: var(--white);
}
.bio__quote p {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  line-height: 1.3;
  margin: 0 0 6px;
}
.bio__quote span { font-size: 14px; opacity: .85; }

.bio__copy h2 { font-size: clamp(32px, 4vw, 46px); }
.bio__copy p { color: var(--muted); margin-bottom: 18px; font-size: 17px; }
.bio__copy strong { color: var(--green-deep); }

.bio__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.chip {
  background: var(--white);
  border: 1px solid var(--green-soft);
  color: var(--green-deep);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
}

/* ============== PROPUESTAS ============== */
.propuestas {
  padding: 100px 0;
  background: var(--white);
  position: relative;
}
.propuestas__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.prop {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  border: 1px solid var(--green-soft);
  transition: transform .35s, box-shadow .35s, border-color .35s;
  overflow: hidden;
}
.prop::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.prop:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-vital);
}
.prop:hover::before { transform: scaleX(1); }
.prop__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}
.prop h3 { font-size: 19px; margin-bottom: 8px; }
.prop p { color: var(--muted); margin: 0; font-size: 14.5px; }

/* ============== PLAN VECINAL ============== */
.plan {
  padding: 100px 0;
  background: var(--grad-soft);
}
.plan__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.plan__copy h2 { font-size: clamp(32px, 4vw, 46px); }
.plan__copy p { color: var(--muted); font-size: 17px; }
.plan__list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
}
.plan__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-weight: 500;
  border-bottom: 1px dashed var(--green-soft);
}
.plan__list span {
  display: inline-flex;
  width: 28px; height: 28px;
  background: var(--grad-accent);
  color: var(--white);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.plan__map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 8px solid var(--white);
}
.plan__map img { width: 100%; height: auto; display: block; }
.plan__pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.plan__pin-dot {
  width: 14px; height: 14px;
  background: var(--green-brand);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(31,163,74,.25);
  animation: ping 2s ease-out infinite;
}
.plan__pin-label {
  background: var(--white);
  color: var(--green-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(31,163,74,.6); }
  100% { box-shadow: 0 0 0 18px rgba(31,163,74,0); }
}

/* ============== GALERÍA ============== */
.galeria {
  padding: 100px 0;
  background: var(--white);
}
.galeria__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gal {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .4s ease, box-shadow .4s ease;
}
.gal img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gal:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gal:hover img { transform: scale(1.08); }
.gal--big { grid-column: span 2; grid-row: span 2; }
.gal--tall { grid-row: span 2; }

.gal__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,90,42,.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity .3s;
}
.gal:hover .gal__overlay { opacity: 1; }
.gal__overlay span {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}

/* ============== EVENTO ============== */
.evento {
  padding: 100px 0;
  background: var(--grad-hero);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.evento::before, .evento::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.evento::before {
  width: 400px; height: 400px;
  background: var(--green-lime);
  opacity: .3;
  top: -100px; left: -100px;
}
.evento::after {
  width: 300px; height: 300px;
  background: var(--green-vital);
  opacity: .3;
  bottom: -100px; right: -100px;
}
.evento__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 30px 60px;
  align-items: start;
  z-index: 2;
}
.evento__head { grid-column: 1; grid-row: 1; align-self: end; }
.evento__details { grid-column: 1; grid-row: 2; align-self: start; }
.evento__poster { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.evento__head h2 {
  color: var(--white);
  font-size: clamp(32px, 4vw, 46px);
}
.evento__head p { color: rgba(255,255,255,.92); font-size: 18px; max-width: 500px; }
.evento__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0 0 24px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  padding: 24px;
  border-radius: var(--radius-md);
}
.evento__label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .85;
  margin-bottom: 6px;
}
.evento__info strong {
  font-family: var(--font-display);
  font-size: 18px;
}
.evento__poster img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: transform .4s ease;
}
.evento__poster img:hover { transform: rotate(0); }

/* ============== CONTACTO ============== */
.contacto {
  padding: 100px 0;
  background: var(--cream);
}
.contacto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contacto__copy h2 { font-size: clamp(32px, 4vw, 46px); }
.contacto__copy p { color: var(--muted); font-size: 17px; }
.contacto__list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}
.contacto__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--green-soft);
  font-weight: 500;
}
.contacto__list span {
  display: inline-flex;
  width: 40px; height: 40px;
  background: var(--green-soft);
  color: var(--green-brand);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.social { display: flex; gap: 12px; }
.social a {
  display: inline-flex;
  width: 44px; height: 44px;
  background: var(--white);
  color: var(--green-brand);
  border: 1px solid var(--green-soft);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  transition: transform .25s, background .25s, color .25s;
}
.social a:hover {
  background: var(--green-brand);
  color: var(--white);
  transform: translateY(-3px);
}

.contacto__form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--green-soft);
}
.contacto__form h3 { font-size: 22px; margin-bottom: 24px; }
.contacto__form label {
  display: block;
  margin-bottom: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row label { margin-bottom: 18px; }
.contacto__form span {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--green-deep);
}
.contacto__form input,
.contacto__form select,
.contacto__form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--green-soft);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--cream);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.contacto__form input:focus,
.contacto__form select:focus,
.contacto__form textarea:focus {
  outline: none;
  border-color: var(--green-brand);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(31,163,74,.12);
}
.form-ok {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--green-soft);
  color: var(--green-deep);
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-align: center;
  display: none;
}
.form-ok.show { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ============== FOOTER ============== */
.footer {
  background: var(--green-deep);
  color: rgba(255,255,255,.85);
  padding: 60px 0 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 14px;
}
.footer a {
  display: block;
  padding: 4px 0;
  color: rgba(255,255,255,.75);
  transition: color .2s;
  font-size: 15px;
}
.footer a:hover { color: var(--green-lime); }
.footer__logo {
  height: 50px;
  margin-bottom: 16px;
  background: var(--white);
  padding: 6px 10px;
  border-radius: 10px;
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

/* ============== LIGHTBOX ============== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11,90,42,.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px;
  animation: fadeIn .3s ease;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox__close {
  position: absolute;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  background: var(--white);
  color: var(--green-deep);
  border-radius: 50%;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s;
}
.lightbox__close:hover { transform: rotate(90deg); }

/* =====================================================
   MODAL (Confirmar asistencia)
   ===================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; animation: fadeIn .25s ease; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11,90,42,.7);
  backdrop-filter: blur(6px);
}
.modal__panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  width: 100%;
  max-width: 460px;
  padding: 36px 32px 28px;
  z-index: 1;
  animation: modalIn .35s cubic-bezier(.2,.9,.25,1.05);
}
@keyframes modalIn {
  from { transform: translateY(30px) scale(.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, background .2s;
}
.modal__close:hover { transform: rotate(90deg); background: var(--green-vital); color: var(--white); }
.modal__head { margin-bottom: 22px; }
.modal__head h3 {
  font-size: 22px;
  margin: 8px 0 6px;
}
.modal__head p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}
.modal__form label {
  display: block;
  margin-bottom: 14px;
}
.modal__form span {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 5px;
  color: var(--green-deep);
}
.modal__form input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--green-soft);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--cream);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.modal__form input:focus {
  outline: none;
  border-color: var(--green-brand);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(31,163,74,.12);
}
.modal__form .btn { margin-top: 8px; }

/* =====================================================
   GALLERY CAROUSEL (mobile only)
   ===================================================== */
.gal-carousel { display: none; }

@media (max-width: 680px) {
  .gal-carousel {
    display: block;
    position: relative;
    margin-bottom: 14px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }
  .gal-carousel__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gal-carousel__track::-webkit-scrollbar { display: none; }
  .gal-carousel__slide {
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: start;
    height: 320px;
  }
  .gal-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .gal-carousel__slide span {
    position: absolute;
    bottom: 14px;
    left: 16px;
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    background: rgba(11,90,42,.75);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(4px);
  }
  .gal-carousel__hint {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    background: rgba(255,255,255,.95);
    color: var(--green-deep);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
    pointer-events: none;
    animation: hintFloat 1.6s ease-in-out infinite;
    transition: opacity .4s ease;
  }
  .gal-carousel__hint.is-hidden { opacity: 0; }
  @keyframes hintFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-4px); }
  }
  .gal-carousel__dots {
    position: absolute;
    bottom: 12px;
    right: 14px;
    display: flex;
    gap: 5px;
    z-index: 3;
  }
  .gal-carousel__dots span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    transition: width .3s, background .3s;
  }
  .gal-carousel__dots span.is-active {
    background: var(--white);
    width: 18px;
    border-radius: 4px;
  }

  /* Static grid below the carousel: 2 cols × 3 rows = 6 images */
  .galeria__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 10px;
  }
  .galeria__grid .gal {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
  /* Show only the first 6 small slots (synced with carousel queue) */
  .galeria__grid .gal:nth-child(n+7) { display: none; }
  /* Smooth fade when grid items rotate */
  .galeria__grid .gal img { transition: opacity .25s ease; }
  .galeria__grid .gal img.is-fading { opacity: 0; }
}

/* =====================================================
   FLOATING CTA BAR (desktop + mobile)
   ===================================================== */
/* Desktop floating CTA: stacked at bottom-right corner */
.mobile-cta {
  display: flex;
  flex-direction: column;
  position: fixed;
  right: 24px;
  bottom: calc(24px + var(--safe-bottom));
  z-index: 80;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
.mobile-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(11,90,42,.28), 0 2px 6px rgba(0,0,0,.1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mobile-cta a:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(11,90,42,.35); }
.mobile-cta a:active { transform: scale(.96); }
.mobile-cta__call {
  background: var(--green-soft);
  color: var(--green-deep);
}
.mobile-cta__join {
  background: var(--grad-accent);
  color: var(--white);
}

/* =====================================================
   RESPONSIVE — TABLET (≤ 980px)
   ===================================================== */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero__photo { order: -1; }
  .hero__photo img { max-height: 420px; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { margin: 0 auto; }
  .hero__badge { top: 20px; left: 20px; }

  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .bio__grid { grid-template-columns: 1fr; gap: 40px; }
  .bio__photo img { height: 420px; }

  .propuestas__grid { grid-template-columns: repeat(2, 1fr); }
  .plan__grid { grid-template-columns: 1fr; gap: 40px; }
  .galeria__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gal--big, .gal--tall { grid-column: span 1; grid-row: span 1; }
  .gal--big { grid-column: span 2; }

  .evento__grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .evento__head, .evento__poster, .evento__details { grid-column: 1; grid-row: auto; }
  .evento__head p { margin-left: auto; margin-right: auto; }
  .evento__info { grid-template-columns: 1fr; }

  .contacto__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
}

/* =====================================================
   RESPONSIVE — MOBILE (≤ 680px)
   ===================================================== */
@media (max-width: 680px) {
  /* — Layout base — */
  .container { padding: 0 18px; }

  .section-head { margin-bottom: 40px; }
  .section-head p { font-size: 15px; }
  .kicker { font-size: 11px; padding: 5px 12px; }

  /* — NAV (safe-area + bigger tap targets) — */
  .nav { padding: 12px 0; padding-top: calc(12px + var(--safe-top)); }
  .nav.is-scrolled { padding: 8px 0; padding-top: calc(8px + var(--safe-top)); }
  .nav__logo { height: 38px; }

  .nav__menu {
    position: fixed;
    top: 0; right: -100%;
    width: 84%;
    max-width: 340px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--cream) 100%);
    flex-direction: column;
    align-items: stretch;
    padding: calc(80px + var(--safe-top)) 28px calc(28px + var(--safe-bottom));
    gap: 4px;
    box-shadow: -10px 0 40px rgba(11,90,42,.2);
    transition: right .4s cubic-bezier(.2,.8,.2,1);
  }
  .nav__menu.is-open { right: 0; }
  .nav__menu a {
    color: var(--carbon) !important;
    text-shadow: none !important;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 4px;
    width: 100%;
    border-bottom: 1px solid var(--green-soft);
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .nav__menu a::after { display: none; }
  .nav__cta {
    background: var(--grad-accent) !important;
    color: var(--white) !important;
    text-align: center;
    justify-content: center;
    margin-top: 16px;
    border-radius: var(--radius-pill);
    border-bottom: none !important;
    box-shadow: 0 8px 18px rgba(31,163,74,.3);
  }
  .nav__toggle { display: flex; padding: 12px; min-width: 48px; min-height: 48px; }
  .nav__toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--carbon); }
  .nav__toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--carbon); }

  /* — HERO mobile: photo BETWEEN title and lead — */
  .hero { padding: calc(110px + var(--safe-top)) 0 70px; min-height: auto; }
  .hero__copy {
    display: contents;  /* let children participate in parent grid */
  }
  .hero__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero__copy > .pill { order: 1; }
  .hero__title { order: 2; font-size: clamp(30px, 8vw, 40px); margin: 14px 0 22px; }
  .hero__photo { order: 3; margin: 0 0 22px; }
  .hero__copy > .hero__lead { order: 4; }
  .hero__copy > .hero__actions { order: 5; }
  .hero__copy > .hero__stats { order: 6; }

  .hero__lead { font-size: 15px; margin-bottom: 24px; }
  .hero__actions { flex-direction: column; gap: 10px; margin-bottom: 36px; width: 100%; }
  .hero__actions .btn { width: 100%; }

  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: left;
  }
  .hero__stats li { padding-left: 10px; border-left-width: 2px; }
  .hero__stats strong { font-size: 22px; }
  .hero__stats span { font-size: 11px; }

  .hero__photo img { max-height: 612px; }
  .hero__badge {
    top: auto; bottom: 10px;
    left: 10px;
    transform: none;
    padding: 10px 14px;
    border-radius: var(--radius-md);
  }
  .hero__badge-num { font-size: 24px; }
  .hero__badge-text { font-size: 10px; }

  /* Lighter blobs on mobile (perf) */
  .blob { filter: blur(40px); opacity: .25; }
  .blob--1 { width: 280px; height: 280px; }
  .blob--2 { width: 240px; height: 240px; }
  .blob--3 { display: none; }

  .hero__wave { height: 50px; }

  /* — Values: 2-col compact — */
  .values { padding: 50px 0 30px; }
  .values__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .value { padding: 22px 16px; border-radius: var(--radius-sm); }
  .value__icon { width: 44px; height: 44px; font-size: 20px; margin-bottom: 12px; }
  .value h3 { font-size: 16px; }
  .value p { font-size: 13px; }

  /* — Bio — */
  .bio { padding: 60px 0; }
  .bio__grid { gap: 28px; }
  .bio__photo img { height: 340px; }
  .bio__quote { bottom: 20px; left: 20px; right: 20px; }
  .bio__quote p { font-size: 17px; }
  .bio__quote span { font-size: 12px; }
  .bio__copy h2 { font-size: 28px; }
  .bio__chips { gap: 8px; }
  .chip { padding: 6px 12px; font-size: 12px; }

  /* — Propuestas: 2-col — */
  .propuestas { padding: 60px 0; }
  .propuestas__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .prop { padding: 20px 16px; border-radius: var(--radius-sm); }
  .prop__num { font-size: 30px; margin-bottom: 8px; }
  .prop h3 { font-size: 15px; line-height: 1.2; }
  .prop p { font-size: 12.5px; line-height: 1.45; }

  /* — Plan vecinal — */
  .plan { padding: 60px 0; }
  .plan__copy h2 { font-size: 28px; }
  .plan__map { border-width: 6px; }
  .plan__pin-label { font-size: 10px; padding: 3px 8px; }
  .plan__pin-dot { width: 12px; height: 12px; }

  /* — Galería: 2 columns + overlays SIEMPRE visibles — */
  .galeria { padding: 60px 0; }
  .galeria__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 10px;
  }
  .gal { border-radius: var(--radius-sm); }
  .gal--big { grid-column: span 2; grid-row: span 2; }
  .gal--tall { grid-row: span 1; grid-column: span 1; }
  .gal__overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 40%, rgba(11,90,42,.85) 100%);
    padding: 12px;
  }
  .gal__overlay span { font-size: 12px; }

  /* — Evento — */
  .evento { padding: 60px 0; }
  .evento__head h2 { font-size: 28px; }
  .evento__head p { font-size: 15px; }
  .evento__info {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 14px;
    backdrop-filter: none;
    background: rgba(255,255,255,.14);
  }
  .evento__info strong { font-size: 16px; }
  .evento__poster img { transform: rotate(0); max-width: 280px; margin: 0 auto; }

  /* — Contacto — */
  .contacto { padding: 60px 0; }
  .contacto__copy h2 { font-size: 28px; }
  .contacto__form { padding: 22px; border-radius: var(--radius-md); }
  .contacto__form h3 { font-size: 18px; margin-bottom: 18px; }
  .contacto__form input,
  .contacto__form select,
  .contacto__form textarea {
    font-size: 16px;  /* prevents iOS zoom on focus */
    padding: 14px 14px;
  }
  .contacto__list li { padding: 12px 0; font-size: 15px; }
  .contacto__list span { width: 36px; height: 36px; }

  /* — Footer (mobile: brand only, extends to viewport bottom) — */
  .footer {
    padding: 36px 0 calc(90px + var(--safe-bottom));
    margin-bottom: 0;
  }
  .footer__grid {
    gap: 0;
    margin: 0;
    text-align: center;
    grid-template-columns: 1fr;
  }
  .footer__grid > div:not(:first-child) { display: none; }
  .footer__grid p { margin: 0; }
  .footer__logo { margin: 0 auto 14px; }
  .footer__bottom { display: none; }

  /* — Mobile CTA: horizontal bar at bottom — */
  .mobile-cta {
    flex-direction: row;
    left: 12px;
    right: 12px;
    bottom: calc(12px + var(--safe-bottom));
    background: var(--white);
    border-radius: var(--radius-pill);
    box-shadow: 0 12px 32px rgba(11,90,42,.22), 0 2px 6px rgba(0,0,0,.08);
    padding: 8px;
    gap: 8px;
    opacity: 1;
    transform: translateY(120%);
  }
  .mobile-cta.is-visible { transform: translateY(0); }
  .mobile-cta a {
    flex: 1;
    min-height: 48px;
    padding: 0 12px;
    box-shadow: none;
    font-size: 14px;
  }
  .mobile-cta__join { flex: 1.3; }

  /* — Buttons: bigger tap target — */
  .btn { min-height: 48px; padding: 12px 22px; }

  /* — Lightbox padding — */
  .lightbox { padding: 16px; }
  .lightbox__close { top: calc(12px + var(--safe-top)); right: 12px; width: 44px; height: 44px; font-size: 24px; }
}

/* Extra-small phones (≤ 380px) */
@media (max-width: 380px) {
  .hero__title { font-size: 28px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__stats li:nth-child(3) { grid-column: span 2; }
  .propuestas__grid, .values__grid { grid-template-columns: 1fr; }
  .bio__photo img { height: 280px; }
}
