/* =============================================
   AMPA VEDRUNA — EL PUERTO DE SANTA MARÍA
   Hoja de estilos principal
   ============================================= */

/* --- Variables --- */
:root {
  --primary: #4a7010;        /* verde oscuro principal */
  --primary-light: #6a9e18;  /* verde medio */
  --primary-dark: #2e4608;   /* verde muy oscuro — hero, footer */
  --accent: #a5ca2f;         /* verde lima del logo — acento */
  --accent-light: #c2df5a;
  --gold: #F2E84A;           /* amarillo dorado — legible sobre verde */
  --text: #28281E;           /* carbón cálido — texto principal */
  --text-muted: #717568;     /* gris oliva cálido, sin tono azul */
  --bg: #ffffff;
  --bg-gray: #f4f6ee;        /* crema verdosa — secciones alternas */
  --border: #dde5cc;
  --shadow: 0 4px 24px rgba(74,112,16,0.10);
  --shadow-lg: 0 8px 48px rgba(74,112,16,0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', sans-serif;
  --font-display: 'Poppins', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }
a:visited { color: inherit; }

ul { list-style: none; }

/* Resetear links dentro de párrafos de contenido */
.about-text a,
.junta-note a,
.news-card a:not(.news-link),
.school-card a {
  color: var(--primary);
  font-weight: 500;
}
.about-text a:hover,
.junta-note a:hover { text-decoration: underline; }

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(90,126,26,0.35); }

.btn-secondary {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  color: #fff;
  font-weight: 600;
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); border-color: #fff; }

.btn-outline {
  background: #fff;
  border-color: var(--border);
  color: var(--primary);
}
.btn-outline:hover { border-color: var(--primary); }

.btn-pay {
  width: 100%;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 1.05rem;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: none;
  margin-top: 8px;
}
.btn-pay:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow); }

/* =============================================
   HEADER / NAV
   ============================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 12px 0;
  transition: var(--transition);
  background: transparent;
}
.header.scrolled {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 8px 0;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.5);
  transition: var(--transition);
}
.header.scrolled .logo-img { border-color: var(--border); }

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  transition: var(--transition);
}
.logo-sub {
  font-size: .72rem;
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
}
.header.scrolled .logo-main { color: var(--primary); }
.header.scrolled .logo-sub { color: var(--text-muted); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: var(--transition);
}
.nav-link i { font-size: .82em; opacity: .85; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,0.15); color: #fff; }
.header.scrolled .nav-link { color: var(--text); }
.header.scrolled .nav-link:hover, .header.scrolled .nav-link.active { background: var(--bg-gray); color: var(--primary); }

.nav-link.nav-cta {
  background: var(--primary);
  color: #fff !important;
  margin-left: 4px;
}
.nav-link.nav-cta:hover { background: var(--primary-dark); }

/* ── Icono de usuario: cambia según sesión y si es Junta ── */
.nav-user {
  position: relative; width: 40px; height: 40px; margin-left: 6px; padding: 0;
  border-radius: 50%; border: 2px solid rgba(255,255,255,0.55);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.header.scrolled .nav-user { border-color: var(--border); color: var(--primary); }
.nav-user:hover { transform: translateY(-2px); }
.nav-user-label { display: none; }

.nav-user--guest { background: rgba(255,255,255,0.1); }
.header.scrolled .nav-user--guest { background: var(--bg-gray); }

.nav-user--member { background: var(--primary); border-color: var(--accent-light); color: #fff !important; }
.nav-user-dot {
  position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); border: 2px solid #fff;
}

.nav-user--admin {
  background: linear-gradient(135deg, var(--gold), #e0b400); border-color: #fff;
  color: var(--primary-dark) !important; box-shadow: 0 0 0 3px rgba(242,232,74,0.4);
}
.nav-user-tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--primary-dark); color: #fff; font-size: .5rem; font-weight: 800;
  padding: 1.5px 7px; border-radius: 999px; white-space: nowrap; letter-spacing: .03em;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}
.header.scrolled .burger span { background: var(--text); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, #1e2e08 0%, #2e4608 25%, #4a7010 60%, #6a9e18 100%);
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Ccircle cx='780' cy='120' r='260' fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='2'/%3E%3Ccircle cx='780' cy='120' r='180' fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1.5'/%3E%3Ccircle cx='70' cy='760' r='150' fill='none' stroke='%23F2E84A' stroke-opacity='0.10' stroke-width='2'/%3E%3C/svg%3E"),
    radial-gradient(circle at 88% 8%, rgba(165,202,47,0.35) 0%, transparent 42%),
    radial-gradient(circle at 4% 92%, rgba(242,232,74,0.14) 0%, transparent 38%);
  background-repeat: no-repeat;
  background-position: right top, right top, left bottom;
  background-size: 62%, auto, auto;
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 200px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,214,0,0.12) 0%, transparent 70%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero-title span { color: var(--gold); text-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.hero-subtitle {
  max-width: 620px;
  margin: 0 auto 36px;
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero-stats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 22px 40px;
}
.stat { text-align: center; padding: 0 32px; }
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
}
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.2); }
.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: auto; display: block; }

/* =============================================
   QUICK ACCESS
   ============================================= */
.quick-access {
  padding: 40px 0;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  position: relative;
  z-index: 10;
}
.quick-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 28px;
  border-radius: var(--radius);
  background: var(--bg-gray);
  border: 2px solid transparent;
  transition: var(--transition);
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  cursor: pointer;
  min-width: 100px;
}
.quick-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--primary);
}
.quick-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  box-shadow: 0 2px 12px rgba(90,126,26,0.12);
  transition: var(--transition);
}
.quick-card:hover .quick-icon { background: var(--primary); color: #fff; }
.quick-card-highlight { background: var(--primary-dark); color: #fff; border-color: transparent; }
.quick-card-highlight .quick-icon { background: var(--accent); color: #28281E; }
.quick-card-highlight:hover { background: #1e2e08; border-color: transparent; color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.quick-card-highlight:hover .quick-icon { background: var(--gold); color: #28281E; }

/* =============================================
   SECCIONES GENÉRICAS
   ============================================= */
.section { padding: 96px 0; }
.section-gray { background: var(--bg-gray); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  background: rgba(74,112,16,0.10);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* =============================================
   QUIÉNES SOMOS
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text p {
  color: #4a4a3e;
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
}
.about-text p strong { color: var(--primary); font-weight: 600; }
.about-values { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.value-item i {
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.value-item strong { display: block; color: var(--primary); font-weight: 600; margin-bottom: 4px; }
.value-item p { color: var(--text-muted); font-size: .92rem; margin: 0; }

.about-card-wrap { display: flex; flex-direction: column; gap: 20px; }

.junta-card, .school-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.junta-card h3, .school-card h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.junta-list { display: flex; flex-direction: column; gap: 10px; }
.junta-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.junta-list li:last-child { border-bottom: none; }
.junta-role { color: var(--text-muted); }
.junta-name { font-weight: 500; color: var(--primary); }
.junta-note {
  margin-top: 12px;
  font-size: .82rem;
  color: var(--text-muted);
}
.junta-note a { color: var(--accent); font-weight: 500; }

.school-card p { font-size: .92rem; color: var(--text-muted); margin-bottom: 10px; line-height: 1.6; }
.school-card p i { color: var(--primary); margin-right: 6px; }
.school-card p strong { color: var(--text); }

/* =============================================
   NOTICIAS
   ============================================= */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card-featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-color: transparent;
}
.news-card-featured .news-meta { color: rgba(255,255,255,0.65); }
.news-card-featured h3 { color: #fff; font-size: 1.3rem; font-family: var(--font-display); }
.news-card-featured p { color: rgba(255,255,255,0.85); }
.news-card-featured .news-link { color: var(--gold); font-size: .9rem; }
.news-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--gold);
  color: #28281E;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
}
.news-meta { font-size: .82rem; color: var(--text-muted); margin-bottom: 12px; }
.news-card h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 10px; font-weight: 600; }
.news-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.news-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.news-link:hover { gap: 10px; }
.news-card-featured .news-link:hover { color: var(--gold); }

/* =============================================
   ACTIVIDADES
   ============================================= */
.activities-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: #fff;
  font-weight: 500;
  font-size: .9rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}
.tab-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.tab-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.activity-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.activity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.activity-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 14px;
}
.activity-card h4 { font-size: .95rem; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.activity-card p { font-size: .8rem; color: var(--text-muted); margin-bottom: 10px; }
.activity-badge {
  display: inline-block;
  background: var(--bg-gray);
  color: var(--primary);
  font-size: .72rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.events-list { display: flex; flex-direction: column; gap: 14px; }
.event-item {
  display: flex;
  gap: 24px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}
.event-item:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.event-item:hover .event-date { transform: scale(1.05); }
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 14px;
  padding: 12px 18px;
  flex-shrink: 0;
  min-width: 72px;
  transition: var(--transition);
}
.event-day { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.event-month { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.event-info h4 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.event-info p { font-size: .85rem; color: var(--text-muted); }
.event-info p i { margin-right: 4px; }

.formation-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.formation-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.formation-card:hover { transform: translateY(-4px); }
.formation-card i { font-size: 2rem; color: var(--primary); margin-bottom: 14px; display: block; }
.formation-card h4 { font-size: .95rem; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.formation-card p { font-size: .88rem; color: var(--text-muted); margin-bottom: 14px; }
.formation-tag {
  display: inline-block;
  background: rgba(90,126,26,0.08);
  color: var(--primary);
  font-size: .78rem;
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* =============================================
   SERVICIOS
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.service-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--primary); margin-bottom: 10px; }
.service-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

/* =============================================
   PAGOS
   ============================================= */
.section-payment {
  background: linear-gradient(150deg, #1a2d06 0%, #2e4608 30%, #3a5e0c 65%, #4a7010 100%);
  position: relative;
  overflow: hidden;
}
.section-payment::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.payment-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.payment-info h3 { color: #fff; font-size: 1.3rem; margin-bottom: 20px; font-weight: 600; }

.benefit-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.benefit-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.9);
  font-size: .95rem;
}
.benefit-list li i {
  width: 24px; height: 24px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: var(--gold);
  flex-shrink: 0;
}

.payment-cta-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px 32px;
  text-align: center;
  align-self: center;
}
.payment-cta-card h3 { color: var(--primary); font-size: 1.2rem; margin-bottom: 10px; }
.payment-cta-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .83rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(90,126,26,0.1); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Consentimiento RGPD (checkbox) — formularios de contacto, newsletter y cuota */
.consent-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  margin-bottom: 16px;
}
.consent-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--primary);
  margin-top: 2px;
}
.consent-checkbox span { font-size: .83rem; color: var(--text-muted); line-height: 1.55; }
.consent-checkbox a { color: var(--primary); text-decoration: underline; }
.consent-checkbox a:hover { color: var(--accent); }

.payment-stripe-info {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 20px;
}
.payment-stripe-info i { font-size: 1.2rem; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.payment-stripe-info strong { display: block; color: #fff; font-size: .9rem; margin-bottom: 4px; }
.payment-stripe-info p { color: rgba(255,255,255,0.75); font-size: .82rem; line-height: 1.55; margin: 0; }

/* =============================================
   CONTACTO
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-form label {
  display: block;
  font-size: .83rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
.contact-form .form-group { margin-bottom: 16px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.contact-success {
  text-align: center;
  padding: 48px;
  background: var(--bg-gray);
  border-radius: var(--radius);
}
.contact-success i { font-size: 3rem; color: #4caf50; margin-bottom: 16px; }
.contact-success h3 { color: var(--primary); margin-bottom: 8px; }
.contact-success.hidden { display: none; }
.contact-form.hidden { display: none; }

.contact-info-block {
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.contact-info-block h3 { font-size: 1.05rem; font-weight: 600; color: var(--primary); margin-bottom: 20px; }
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.contact-info-item i { font-size: 1.1rem; color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.contact-info-item strong { display: block; font-size: .85rem; color: var(--primary); margin-bottom: 4px; }
.contact-info-item a,
.contact-info-item span { font-size: .88rem; color: var(--text-muted); line-height: 1.5; }
.contact-info-item a:hover { color: var(--accent); }

.contact-social h3 { font-size: .95rem; font-weight: 600; color: var(--primary); margin-bottom: 14px; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .9rem;
  transition: var(--transition);
}
.social-link:hover { transform: translateY(-3px) scale(1.08); }

.map-wrap { margin-top: 20px; border-radius: var(--radius); overflow: hidden; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #1a2806;
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 2px solid rgba(255,255,255,0.2);
}
.footer-brand p { font-size: .88rem; line-height: 1.65; color: rgba(255,255,255,0.65); }

.footer-links h4,
.footer-contact h4 {
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: .04em;
}
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: .88rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); padding-left: 4px; }

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
  line-height: 1.5;
}
.footer-contact i { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,0.45);
}

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  padding: 24px;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal-icon { font-size: 3.5rem; margin-bottom: 20px; }
.modal-icon.success { color: #4caf50; }
.modal h3 { font-size: 1.4rem; color: var(--primary); margin-bottom: 12px; }
.modal p { color: var(--text-muted); margin-bottom: 10px; font-size: .95rem; }
.modal .btn { margin-top: 20px; }

/* =============================================
   BACK TO TOP
   ============================================= */
.back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  z-index: 500;
}
.back-top:hover { background: var(--primary-light); transform: translateY(-3px); }
.back-top.hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero-stats { flex-direction: column; padding: 20px; gap: 16px; }
  .stat-divider { width: 80%; height: 1px; }

  .nav { display: none; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--primary-dark); align-items: center; justify-content: center; gap: 12px; z-index: 999; }
  .nav.open { display: flex; }
  .nav-link { font-size: 1.2rem; color: #fff !important; }
  .burger { display: flex; z-index: 1000; }

  .nav-user {
    width: auto; height: auto; border-radius: var(--radius-sm); border: none;
    padding: 8px 14px; background: none !important; box-shadow: none !important;
    gap: 8px; color: #fff !important;
  }
  .nav-user-label { display: inline; }
  .nav-user-dot, .nav-user-tag { display: none; }

  .news-grid { grid-template-columns: 1fr; }
  .news-card-featured { grid-column: 1; }

  .payment-container { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero-stats { display: flex; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); display: grid; }
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
}

/* =============================================
   MODAL DE CONTENIDO (actividades, servicios, eventos)
   ============================================= */
#contentModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  padding: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#contentModal.active {
  opacity: 1;
  pointer-events: all;
}
#contentModal.hidden { display: none; }

.modal-content {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  outline: none;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}
#contentModal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-icon-wrap {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  border-radius: var(--radius) var(--radius) 0 0;
}
.modal-img {
  width: 100%;
  max-height: 200px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.modal-img img { width: 100%; height: 200px; object-fit: cover; }

/* ─────────────────────────────────────────
   CARRUSEL DE FOTOS (noticias/eventos con galería)
   Scroll-snap nativo: se desliza con el dedo o el
   ratón sin necesidad de JS para el gesto en sí.
───────────────────────────────────────── */
.carousel-wrap { position: relative; background: #111; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: center; cursor: zoom-in; }
.carousel-slide img { width: 100%; height: 260px; object-fit: cover; display: block; }
.carousel-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 5px;
  pointer-events: none;
}
.carousel-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: var(--transition); }
.carousel-dot.active { background: #fff; width: 16px; border-radius: 4px; }
.carousel-counter {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.55); color: #fff; font-size: .72rem; font-weight: 600;
  padding: 4px 11px; border-radius: 50px;
}
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.4); color: #fff; border: none;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .85rem; transition: var(--transition);
}
.carousel-arrow:hover { background: rgba(0,0,0,0.65); }
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }
.carousel-expand {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.45); color: #fff; border: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .78rem;
}

/* Lightbox a pantalla completa */
#lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
#lightbox.active { opacity: 1; pointer-events: all; }
#lightbox.hidden { display: none; }
#lightbox .carousel-wrap { background: transparent; border-radius: 0; width: 100%; height: 100%; }
#lightbox .carousel-track { height: 100%; align-items: center; }
#lightbox .carousel-slide { display: flex; align-items: center; justify-content: center; cursor: default; }
#lightbox .carousel-slide img { width: auto; height: auto; max-width: 92vw; max-height: 86vh; object-fit: contain; }
#lightbox .carousel-arrow { width: 46px; height: 46px; font-size: 1.1rem; }
.lightbox-close {
  position: fixed; top: 18px; right: 18px; z-index: 10001;
  background: rgba(255,255,255,0.12); color: #fff; border: none;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

.modal-body-wrap { padding: 28px 32px 32px; }

.modal-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(74,112,16,0.10);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.modal-body { color: #4a4a3e; font-size: .93rem; line-height: 1.75; }

.modal-desc { margin-bottom: 16px; }

.modal-info-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: .9rem;
  color: var(--text-muted);
}
.modal-info-row i { color: var(--accent); flex-shrink: 0; margin-top: 3px; font-size: .9rem; }
.modal-info-row strong { color: var(--text); }

.modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}
.modal-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .9rem;
  color: #4a4a3e;
}
.modal-list li i { color: var(--accent); flex-shrink: 0; margin-top: 3px; font-size: .8rem; }

.modal-footer-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.modal-cta { font-size: .9rem; padding: 11px 24px; }
.btn-modal-close {
  padding: 11px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.btn-modal-close:hover { border-color: var(--primary); color: var(--primary); }

/* =============================================
   TARJETAS — mejoras visuales
   ============================================= */
.activity-more, .service-more {
  margin-top: 10px;
  font-size: .78rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.7;
  transition: var(--transition);
}
.activity-card:hover .activity-more,
.service-card:hover .service-more { opacity: 1; gap: 8px; }

.event-arrow {
  margin-left: auto;
  color: var(--accent);
  font-size: .9rem;
  opacity: 0.5;
  transition: var(--transition);
}
.event-item:hover .event-arrow { opacity: 1; transform: translateX(4px); }
.event-item { cursor: pointer; }

.news-card-img { margin: -28px -28px 20px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.news-card-img img { width: 100%; height: 180px; object-fit: cover; }

/* =============================================
   NEWSLETTER / CANAL DE DISTRIBUCIÓN
   ============================================= */
.section-newsletter {
  background: var(--bg-gray);
  padding: 80px 0;
}
.newsletter-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 48px 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.newsletter-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}
.newsletter-box h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}
.newsletter-box p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 20px;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: var(--font);
  outline: none;
  transition: var(--transition);
}
.newsletter-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(74,112,16,0.1); }
.newsletter-form .btn { border-radius: var(--radius-sm); white-space: nowrap; }
.newsletter-channels {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.newsletter-channel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-muted);
  background: var(--bg-gray);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.newsletter-channel i { color: var(--primary); }
.newsletter-note {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 14px;
}
.newsletter-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--primary);
}
.newsletter-success i { font-size: 2.5rem; color: #4caf50; }

/* =============================================
   PAGOS — sección mejorada
   ============================================= */
.payment-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 12px 0;
  font-weight: 600;
  color: var(--primary-dark);
}
.payment-total .total-amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

/* =============================================
   UTILIDADES
   ============================================= */
.hidden { display: none !important; }

/* Animaciones de entrada */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }


/* ── Bulos y verdades ── */
.bulos-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.bulo { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.bulo summary { cursor: pointer; list-style: none; padding: 16px 20px; display: flex; align-items: flex-start; gap: 14px; font-weight: 600; color: var(--text); }
.bulo summary::-webkit-details-marker { display: none; }
.bulo summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: auto; color: var(--primary); font-size: .8rem; padding-top: 4px; transition: transform .2s; }
.bulo[open] summary::after { transform: rotate(180deg); }
.bulo-badge { flex-shrink: 0; background: rgba(198,40,40,0.1); color: #c62828; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; margin-top: 2px; }
.bulo p { padding: 0 20px 18px; color: #4a4a3e; line-height: 1.7; }
.bulos-cta { text-align: center; color: var(--text-muted); margin-top: 28px; font-size: .95rem; }
.bulos-cta a { color: var(--primary); font-weight: 600; }

/* ── Botón flotante "Hazte socio/a" ── */
.fab-socio {
  position: fixed; right: 20px; bottom: 20px; z-index: 890;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; border: none; border-radius: 999px; padding: 14px 22px 14px 16px;
  font: 700 .95rem var(--font-body, inherit); cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 26px rgba(46,70,8,0.4);
  transform: translateY(0) scale(1); opacity: 1;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .25s ease, box-shadow .2s ease, bottom .2s ease;
}
.fab-socio:hover { box-shadow: 0 10px 30px rgba(46,70,8,0.5); transform: translateY(-3px); }
.fab-socio.fab-hidden { opacity: 0; transform: translateY(16px) scale(.92); pointer-events: none; }
.fab-socio-ic {
  width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; position: relative;
}
.fab-socio-ic::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--gold);
  animation: fabPulse 2.1s ease-out infinite;
}
.fab-socio-txt { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.fab-socio-txt b { font-size: .92rem; }
.fab-socio-txt span { font-size: .68rem; font-weight: 600; color: rgba(255,255,255,0.85); }
@keyframes fabPulse {
  0%   { transform: scale(1);   opacity: .9; }
  70%  { transform: scale(1.7); opacity: 0;  }
  100% { transform: scale(1.7); opacity: 0;  }
}
@media (max-width: 480px) {
  .fab-socio { right: 14px; bottom: 14px; padding: 11px 16px 11px 11px; }
  .fab-socio-ic { width: 32px; height: 32px; font-size: .9rem; }
  .fab-socio-txt b { font-size: .84rem; }
}

/* ── Asistente guiado ── */
.chat-launcher { position: fixed; left: 20px; bottom: 20px; z-index: 900; display: flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; border: none; border-radius: 999px; padding: 13px 20px; font: 600 .95rem var(--font-body, inherit); cursor: pointer; box-shadow: 0 6px 20px rgba(46,70,8,0.35); transition: transform .15s, background .15s; }
.chat-launcher:hover { background: var(--primary-dark); transform: translateY(-2px); }
.chat-launcher.chat-launcher-open { display: none; }
.chat-panel { position: fixed; left: 20px; bottom: 20px; z-index: 950; width: 370px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 40px); background: #fff; border-radius: 18px; box-shadow: 0 12px 40px rgba(0,0,0,0.25); display: flex; flex-direction: column; overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; }
.chat-close { background: none; border: none; color: #fff; font-size: 1.1rem; cursor: pointer; padding: 4px 8px; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg-gray); display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.55; }
.chat-bot { background: #fff; color: var(--text); border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.chat-user { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-choices { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.chat-opt { text-align: left; background: #fff; border: 1.5px solid var(--primary); color: var(--primary); border-radius: 12px; padding: 10px 14px; font: 600 .88rem inherit; cursor: pointer; transition: background .15s, color .15s; }
.chat-opt:hover { background: var(--primary); color: #fff; }
.chat-link { display: block; text-align: center; background: var(--primary); color: #fff; border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: .88rem; text-decoration: none; }
.chat-link:hover { background: var(--primary-dark); }
.chat-feedback { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-muted); }
.chat-nav { display: flex; gap: 8px; }
.chat-mini { background: none; border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font-size: .8rem; color: var(--text-muted); cursor: pointer; }
.chat-mini:hover { border-color: var(--primary); color: var(--primary); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); background: #fff; }
.chat-form input { flex: 1; border: 1.5px solid var(--border); border-radius: 999px; padding: 9px 14px; font-size: .9rem; min-width: 0; }
.chat-form input:focus { outline: none; border-color: var(--primary); }
.chat-send { background: var(--primary); color: #fff; border: none; border-radius: 50%; width: 38px; height: 38px; cursor: pointer; }
@media (max-width: 520px) {
  .chat-launcher { left: 14px; bottom: 14px; padding: 12px 16px; }
  .chat-panel { left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; height: 82vh; border-radius: 18px 18px 0 0; }
}

.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-chip { background: rgba(165,202,47,0.2); border: none; color: var(--primary-dark); border-radius: 999px; padding: 6px 12px; font-size: .8rem; font-weight: 600; cursor: pointer; }
.chat-chip:hover { background: var(--accent); }
.chat-note { margin: 0; padding: 6px 14px 0; background: #fff; font-size: .72rem; color: var(--text-muted); text-align: center; }


/* =====================================================================
   REDISEÑO PORTADA (2026-10-29) — basado en las propuestas visuales de
   ChatGPT: secciones apiladas a todo ancho, foto del hero cortada por una
   curva, banner con imagen curva, bordes ondulados y hojas decorativas.
   Todo va acotado a body.home para no tocar el resto de páginas.
   Para volver atrás: _backup_pre_rediseño_2026-10-29/
   ===================================================================== */
.home {
  --ink: #1d3a0b;            /* verde muy oscuro para titulares */
  --leaf: #5a9a14;           /* verde hoja, legible sobre crema */
  --cream: #f6f9ea;
  --warm: #e4572e;           /* toque cálido (fechas de eventos) */
  --shadow-card: 0 2px 4px rgba(46,70,8,.05), 0 12px 32px rgba(46,70,8,.09);
  --font-script: 'Caveat', cursive;
}

/* ── Cabecera ── */
.home .nav-link i { display: none; }
.home .nav-link { position: relative; font-size: .9rem; padding: 8px 12px; }
.home .header.scrolled .nav-link:hover,
.home .header.scrolled .nav-link.active { background: transparent; color: var(--primary); }
.home .header.scrolled .nav-link:not(.nav-cta):not(.nav-user)::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px;
  border-radius: 3px; background: var(--accent); transform: scaleX(0); transition: var(--transition);
}
.home .header.scrolled .nav-link.active:not(.nav-cta):not(.nav-user)::after,
.home .header.scrolled .nav-link:not(.nav-cta):not(.nav-user):hover::after { transform: scaleX(1); }
.home .nav-link.nav-cta { border-radius: 999px; padding: 8px 18px; }
.home .nav-link.nav-cta i, .home .nav-user i { display: inline-block; }
.home .header.scrolled .nav-link.nav-cta:hover,
.home .header.scrolled .nav-link.nav-cta.active { background: var(--primary-dark); color: #fff !important; }

/* ── Botones ── */
.home .btn { border-radius: 12px; }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: rgba(29,58,11,.55); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* ── Títulos de sección ── */
.home .section { padding: 72px 0; }
.home .section-soft { background: var(--cream); }
.home .section-header { text-align: left; margin-bottom: 32px; }
.home .section-header--center { text-align: center; }
.home .section-header--center .section-subtitle { margin: 0 auto; }
.home .section-header--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.home .section-header--row .activities-tabs { margin: 0; }
.home .section-title { color: var(--ink); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 8px; }
.home .section-subtitle { margin: 0; max-width: 620px; font-size: .98rem; }
.home .section-tag {
  background: none; padding: 0 0 0 14px; border-radius: 0; position: relative; color: var(--leaf); font-size: .74rem;
}
.home .section-tag::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--accent);
}

/* ── Hero ── */
.home .hero { min-height: 0; display: block; padding: 120px 0 130px; background: var(--cream); }
.home .hero-bg { background: none; }
.home .hero-bg::before, .home .hero-bg::after { display: none; }
.hero-deco { position: absolute; pointer-events: none; }
.hero-deco-1 { width: 620px; left: -200px; top: -150px; }
.hero-deco-2 { width: 560px; left: -120px; bottom: -120px; }
.hero-deco-3 { width: 70px; left: 50%; top: 100px; }
.hero-deco-leaf { width: 150px; left: -36px; bottom: 36px; }
.home .hero-content { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; text-align: left; }
.home .hero-badge {
  background: #fff; border: 1px solid var(--border); color: var(--leaf); backdrop-filter: none;
  font-weight: 600; border-radius: 999px; padding: 7px 16px;
}
.home .hero-badge i { color: var(--warm); }
.home .hero-title { color: var(--ink); text-shadow: none; font-size: clamp(2.6rem, 4.8vw, 4.4rem); line-height: 1.08; }
.home .hero-title span {
  display: block; text-shadow: none; color: var(--leaf);
  background: linear-gradient(90deg, #4f9412 0%, #8cbf24 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home .hero-subtitle { color: #4a4a3e; margin: 0 0 30px; max-width: 520px; font-size: 1.05rem; }
.home .hero-actions { justify-content: flex-start; margin-bottom: 0; }

/* La foto del hero queda cortada por una curva (clip-path #curve-left) y
   una franja lima la acompaña por detrás. */
.hero-visual { position: relative; height: 400px; width: 100%; }
.hv-photo, .hv-swoosh { position: absolute; }
.hv-photo { inset: 0; clip-path: url(#curve-left); background: #1c3f8a; }
.hv-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hv-swoosh { inset: 0; clip-path: url(#curve-left); background: linear-gradient(160deg, #cfe788, var(--accent) 60%, #7aa81c); transform: translateX(-3.5%) scale(1.01); transform-origin: right center; }
.hv-script {
  position: absolute; right: 6%; top: 8%; z-index: 2; margin: 0; text-align: center;
  font-family: var(--font-script); font-weight: 700; font-size: 2.1rem; line-height: 1; color: var(--primary-dark);
  transform: rotate(-6deg); text-shadow: 0 1px 0 rgba(255,255,255,.8), 0 0 14px rgba(255,255,255,.9);
}
.hv-script i { display: block; margin-top: 6px; color: var(--leaf); font-size: 1.6rem; }

@media (min-width: 1025px) {
  .home .hero-content { position: static; }
  .hero-visual { position: absolute; right: 0; top: 68px; bottom: 0; width: 52%; height: auto; }
  .home .hero-copy { padding-right: 24px; }
}

/* ── Cifras (solapan el hero) ── */
.stats-strip { position: relative; z-index: 5; margin-top: -64px; padding-bottom: 8px; }
.stats-card {
  display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: 20px;
  box-shadow: var(--shadow-card); border: 1px solid var(--border); padding: 24px 20px;
}
.stat-item { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 4px 16px; }
.stat-item + .stat-item { border-left: 1px solid var(--border); }
.stat-ic {
  width: 56px; height: 56px; border-radius: 16px; background: rgba(165,202,47,.2); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0;
}
.stats-card .stat-num { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1; }
.stats-card .stat-label { display: block; font-size: .85rem; color: var(--text-muted); margin-top: 4px; }

/* ── Quiénes somos ── */
.home #quienes-somos { position: relative; padding-top: 72px; overflow: hidden; }
.home #quienes-somos::after, .home #bulos::after {
  content: ''; position: absolute; right: 6%; top: 36px; width: 70px; height: 70px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg stroke='%23a5ca2f' stroke-width='7' stroke-linecap='round'%3E%3Cpath d='M20,100 L44,76'/%3E%3Cpath d='M60,66 L74,34'/%3E%3Cpath d='M86,70 L112,56'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
.home #bulos { position: relative; overflow: hidden; }
.home #bulos::after { right: auto; left: 5%; top: auto; bottom: 90px; transform: scaleX(-1) rotate(10deg); }
.about-top { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; margin-bottom: 40px; }
.about-top .about-text .section-title { margin-bottom: 18px; }
.about-top .about-text .btn { margin-top: 8px; }
.home .about-text a.btn { color: #fff; font-weight: 600; }
.home .about-text a.btn:hover { text-decoration: none; }
.home .about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.home .value-item {
  display: block; background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 22px 18px; box-shadow: var(--shadow-card); transition: var(--transition);
}
.home .value-item:hover { transform: translateY(-4px); }
.value-ic {
  width: 48px; height: 48px; border-radius: 50%; background: rgba(165,202,47,.22); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 14px;
}
.home .value-item strong { color: var(--ink); font-size: 1rem; margin-bottom: 6px; }
.home .value-item p { font-size: .86rem; line-height: 1.55; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.home .junta-card, .home .school-card { border-radius: 18px; box-shadow: var(--shadow-card); }
.home .junta-card h3, .home .school-card h3 { color: var(--ink); font-size: 1.05rem; }
.home .junta-card h3 i, .home .school-card h3 i { color: var(--leaf); }
.junta-lead { color: var(--text-muted); font-size: .92rem; line-height: 1.6; margin-bottom: 14px; }

/* ── Noticias: tarjetas anchas con foto ── */
.home .news-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; gap: 24px; }
.home .news-card { padding: 0; overflow: hidden; border-radius: 18px; display: flex; flex-direction: column; box-shadow: var(--shadow-card); }
.home .news-card-featured { grid-column: auto; background: #fff; border-color: var(--accent); }
.home .news-card-featured h3 { color: var(--ink); font-size: 1.05rem; font-family: var(--font); }
.home .news-card-featured p, .home .news-card-featured .news-meta { color: var(--text-muted); }
.home .news-card-featured .news-link { color: var(--leaf); font-size: .85rem; }
.home .news-card-img { margin: 0; border-radius: 0; height: 200px; }
.home .news-card-img img { height: 200px; transition: transform .5s ease; }
.home .news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-img--ph {
  display: flex; align-items: center; justify-content: center; font-size: 2.6rem; color: rgba(255,255,255,.9);
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
}
.home .news-badge { top: 14px; left: 14px; right: auto; z-index: 2; border-radius: 999px; }
.news-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.home .news-body h3 { color: var(--ink); font-size: 1.05rem; line-height: 1.35; }
.home .news-body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home .news-link { margin-top: auto; color: var(--leaf); }

.empty-state {
  text-align: center; color: var(--text-muted); background: #fff; border: 2px dashed var(--border);
  border-radius: 18px; padding: 36px 24px; grid-column: 1 / -1;
}
.empty-state i { display: block; font-size: 2rem; color: var(--accent); margin-bottom: 10px; }
.empty-state p { margin: 0; font-size: .95rem; }

/* ── Eventos: tarjetas en fila ── */
.home .tab-btn { border-radius: 999px; padding: 8px 18px; font-size: .85rem; }
.home .events-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.home .event-item {
  border-radius: 18px; border: 1px solid var(--border); border-left: 1px solid var(--border);
  padding: 20px 22px; gap: 18px; box-shadow: var(--shadow-card); align-items: flex-start;
}
.home .event-date {
  background: rgba(228,87,46,.1); color: var(--warm); padding: 10px 6px; border-radius: 14px; min-width: 64px;
}
.home .event-item:hover .event-date { transform: none; }
.home .event-day { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; }
.home .event-month { font-weight: 700; letter-spacing: .1em; }
.home .event-info h4 { color: var(--ink); font-size: 1rem; }
.home .event-info p { display: flex; flex-direction: column; gap: 4px; }
.home .event-info p i { color: var(--leaf); width: 16px; }
.home .event-arrow { display: none; }
.home .formation-card { border-radius: 18px; box-shadow: var(--shadow-card); }

/* ── Banner "Tu apoyo hace la diferencia" (= sección Hazte socio) ── */
.home .cta-section { background: #fff; padding: 0; }
.cta-band { position: relative; display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); background: #eef6d3; overflow: hidden; }
.cta-art {
  position: relative; clip-path: url(#curve-right); min-height: 100%;
  background: linear-gradient(150deg, #b9d94e 0%, #7fae1d 55%, #3f6a0d 100%);
  display: flex; align-items: center; justify-content: center; padding: 40px 40px 40px 0;
}
.cta-art::before {
  content: ''; position: absolute; width: 140%; height: 70%; left: -20%; bottom: -30%; border-radius: 50%; background: rgba(255,255,255,.14);
}
.cta-art-circle {
  position: relative; width: min(280px, 70%); aspect-ratio: 1; background: #fff; border-radius: 50%; padding: 22px;
  box-shadow: 0 22px 50px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; margin-left: -6%;
}
.cta-art-circle img { width: 100%; height: auto; }
.cta-main { padding: 52px max(24px, calc((100vw - 1200px) / 2)) 52px 24px; }
.cta-main .section-tag { margin-bottom: 6px; }
.cta-main h2 { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.12; margin-bottom: 12px; }
.cta-lead { color: #3d4a2a; font-size: 1rem; line-height: 1.65; margin-bottom: 18px; max-width: 640px; }
.cta-lead strong { color: var(--ink); }
.home .cta-main .benefit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-bottom: 24px; max-width: 700px; }
.home .cta-main .benefit-list li { color: var(--text); font-size: .88rem; align-items: flex-start; line-height: 1.45; }
.home .cta-main .benefit-list li i { background: var(--primary); color: #fff; margin-top: 1px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.cta-note {
  display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.65); border-radius: 12px;
  padding: 12px 16px; font-size: .8rem; line-height: 1.55; color: #4a4a3e; margin: 0; max-width: 700px;
}
.cta-note i { color: var(--primary); margin-top: 3px; }
.cta-note strong { color: var(--ink); }

/* ── Servicios: baldosas + imagen curva ── */
.home #servicios { overflow: hidden; }
.services-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: stretch; }
.home .services-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; align-content: start; }
.home .service-card {
  display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 18px 18px;
  border-radius: 16px; box-shadow: var(--shadow-card); text-align: left;
}
.home .service-icon {
  margin: 0; width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; font-size: 1.25rem;
  background: rgba(165,202,47,.25); color: var(--primary); transition: var(--transition);
}
.home .service-card:hover .service-icon { background: var(--primary); color: #fff; }
.home .service-card h3 { color: var(--ink); margin: 0; font-size: .92rem; line-height: 1.3; }
.home .service-card p, .home .service-more { display: none; }
.services-art {
  position: relative; clip-path: url(#curve-left); min-height: 260px; margin-right: calc(-1 * max(24px, (100vw - 1200px) / 2));
  background: linear-gradient(rgba(29,58,11,.0), rgba(29,58,11,.0)), url("../img/hero-colegio.jpg") 52% 50% / 230% auto no-repeat;
}
.services-art::after {
  content: ''; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(165,202,47,.45);
}

/* ── Bulos y verdades ── */
.home .bulos-list { max-width: 820px; margin: 0 auto; }
.home .bulo { border-radius: 14px; box-shadow: none; }
.home .bulo summary { padding: 14px 18px; font-size: .94rem; }
.home .bulos-cta { text-align: center; font-size: .9rem; }

/* ── Newsletter: barra oscura con borde ondulado ── */
.newsletter-bar { position: relative; background: linear-gradient(120deg, #1a2d06 0%, #2e4608 60%, #3f6a0d 100%); color: #fff; padding: 76px 0 52px; overflow: hidden; }
.newsletter-bar::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 44px; background: var(--cream);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 44' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H1440 V14 C1180,52 900,-6 640,18 C380,42 180,40 0,12 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 44' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H1440 V14 C1180,52 900,-6 640,18 C380,42 180,40 0,12 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.newsletter-bar::after {
  content: ''; position: absolute; right: -80px; bottom: -90px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(165,202,47,.35), transparent 70%); pointer-events: none;
}
.newsletter-bar-inner { position: relative; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; }
.home .newsletter-icon { margin: 0; width: 72px; height: 72px; background: var(--accent); color: var(--ink); font-size: 1.7rem; }
.newsletter-copy h2 { font-family: var(--font-display); font-size: 1.6rem; color: #fff; margin: 0 0 6px; }
.newsletter-copy p { color: rgba(255,255,255,.8); margin: 0; font-size: .95rem; max-width: 460px; }
.home .newsletter-form { margin: 0 0 12px; max-width: none; flex-wrap: nowrap; }
.home .newsletter-form input { border-color: transparent; background: #fff; min-width: 0; }
.home .newsletter-bar .consent-checkbox { margin: 0; }
.home .newsletter-bar .consent-checkbox span { color: rgba(255,255,255,.75); font-size: .78rem; }
.home .newsletter-bar .consent-checkbox a { color: var(--gold); }
.home .newsletter-bar .consent-checkbox input { accent-color: var(--accent); }
.home .newsletter-success { color: #fff; align-items: flex-start; }

/* ── Contacto ── */
.home .contact-grid { grid-template-columns: 1.1fr .9fr; }
.home .contact-form-wrap { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-card); }
.home .contact-info-block { background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-card); border-radius: 20px; }
.home .contact-info-block h3, .home .contact-social h3 { color: var(--ink); }
.home .contact-info-item i {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(165,202,47,.22); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: .95rem; margin-top: 0;
}
.home .contact-info-item { align-items: center; }
.home .map-wrap { box-shadow: var(--shadow-card); border: 1px solid var(--border); }
.home .form-group input, .home .form-group select, .home .form-group textarea { border-width: 1.5px; background: #fbfcf6; }

/* ── Pie con borde ondulado ── */
.home .footer { background: linear-gradient(180deg, #25400a, #1a2d06); position: relative; padding-top: 88px; margin-top: 0; }
.home .footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 44px; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 44' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H1440 V10 C1200,50 960,-4 700,20 C440,44 200,46 0,8 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 44' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H1440 V10 C1200,50 960,-4 700,20 C440,44 200,46 0,8 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ── Tablet ── */
@media (max-width: 1024px) {
  .home .hero-content { grid-template-columns: 1fr; text-align: center; }
  .home .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .home .hero-actions { justify-content: center; }
  .home .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-visual { height: 340px; max-width: 520px; margin: 8px auto 0; }
  .hero-deco-3, .hero-deco-leaf { display: none; }
  .about-top { grid-template-columns: 1fr; }
  .home .news-grid { grid-template-columns: repeat(2, 1fr); }
  .home .events-list { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; }
  .cta-art { display: none; }
  .cta-main { padding: 44px 24px; }
  .services-wrap { grid-template-columns: minmax(0, 1fr); }
  .services-art { display: none; }
  .home .services-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-bar-inner { grid-template-columns: auto minmax(0, 1fr); }
  .newsletter-action { grid-column: 1 / -1; }
  .home .contact-grid { grid-template-columns: 1fr; }
}

/* Menú hamburguesa también en tablet (la barra no cabe en 769–1024px) */
@media (max-width: 1024px) {
  .home .nav {
    display: none; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--primary-dark); align-items: center; justify-content: center; gap: 12px; z-index: 999;
  }
  .home .nav.open { display: flex; }
  .home .nav .nav-link { font-size: 1.2rem; color: #fff !important; }
  .home .nav .nav-link::after { display: none !important; }
  .home .nav .nav-link.nav-cta { background: var(--primary); }
  .home .burger { display: flex; z-index: 1000; }
}

/* Botón de acceso con texto en escritorio / circular compacto en el menú móvil */
.home .nav-user {
  position: relative; height: 40px; margin-left: 6px; padding: 0; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 1.1rem;
}
.home .nav-user-label { display: none; }
@media (min-width: 1025px) {
  .home .nav-user { width: 40px; border-radius: 50%; }
  .home .nav-user--guest {
    width: auto; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--primary); background: #fff;
    color: var(--primary); font-size: .88rem; font-weight: 600;
  }
  .home .nav-user--guest i { font-size: 1rem; }
  .home .nav-user--guest .nav-user-label { display: inline; }
  .home .header.scrolled .nav-user--guest { border-color: var(--primary); background: #fff; }
  .home .nav-user--guest:hover { background: var(--primary); color: #fff; }
}
@media (max-width: 1024px) {
  .home .nav-user {
    width: auto; border: none; padding: 8px 14px; background: none !important; box-shadow: none !important; color: #fff !important;
  }
  .home .nav-user-label { display: inline; }
  .home .nav-user-dot, .home .nav-user-tag { display: none; }
}

/* ── Móvil ── */
@media (max-width: 768px) {
  .home .section { padding: 52px 0; }
  .home .hero { padding: 100px 0 110px; }
  .hero-visual { height: 270px; }
  .hv-script { font-size: 1.5rem; }
  .hv-script i { font-size: 1.2rem; }
  .stats-strip { margin-top: -56px; }
  .stats-card { padding: 18px 8px; }
  .stat-item { flex-direction: column; gap: 8px; text-align: center; padding: 4px 4px; }
  .stat-ic { width: 44px; height: 44px; font-size: 1.15rem; border-radius: 12px; }
  .stats-card .stat-num { font-size: 1.4rem; }
  .stats-card .stat-label { font-size: .72rem; }
  .home .about-values { grid-template-columns: 1fr; }
  .home .value-item { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; }
  .value-ic { grid-row: 1 / span 2; margin: 0; }
  .about-cards { grid-template-columns: 1fr; }

  /* noticias: carrusel horizontal con "asomo" de la siguiente tarjeta */
  .home .news-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px;
    margin: 0 -24px; padding: 4px 24px 18px; scrollbar-width: none;
  }
  .home .news-grid::-webkit-scrollbar { display: none; }
  .home .news-card { flex: 0 0 82%; scroll-snap-align: start; }
  .home .news-card-img, .home .news-card-img img { height: 170px; }
  .home .empty-state { flex: 1; }

  .home .events-list { grid-template-columns: 1fr; }
  .home .section-header--row { align-items: flex-start; }

  .cta-main { padding: 36px 24px; }
  .home .cta-main .benefit-list { grid-template-columns: 1fr; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  .home .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .home .service-card { flex-direction: column; text-align: center; gap: 10px; padding: 20px 10px; }
  .home .service-card h3 { font-size: .85rem; }

  .newsletter-bar { padding: 64px 0 40px; }
  .newsletter-bar-inner { grid-template-columns: 1fr; gap: 18px; }
  .home .newsletter-form { flex-wrap: wrap; }
  .home .contact-form-wrap { padding: 22px 18px; }
}
@media (max-width: 480px) {
  .home .hero-actions { width: 100%; }
  .home .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Ajustes finos */
.hv-script { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.55); right: 7%; top: 9%; }
.hv-script i { color: var(--accent); }
.cta-art-circle img { border-radius: 50%; }
.services-art { min-height: 300px; }


/* =====================================================================
   VERSIÓN MÓVIL (≤768px) — pensada para el teléfono, no para un monitor:
   hero compacto, información clave primero, filas horizontales que se
   deslizan en vez de bloques largos, menos texto repetido.
   ===================================================================== */
.map-link { display: none; }

@media (max-width: 768px) {
  .home .container { padding: 0 18px; }
  .home .section { padding: 36px 0; }
  .home .section-header { margin-bottom: 18px; }
  .home .section-title { font-size: 1.55rem; margin-bottom: 4px; }
  .home .section-subtitle { font-size: .88rem; }
  .home #noticias .section-subtitle,
  .home #actividades .section-subtitle,
  .home #servicios .section-subtitle { display: none; }

  /* Cabecera más baja */
  .home .header.scrolled { padding: 6px 0; }
  .home .logo-img { width: 42px; height: 42px; }

  /* Hero: mensaje + botones lado a lado + foto baja */
  .home .hero { padding: 84px 0 84px; }
  .home .hero-badge { font-size: .74rem; padding: 5px 12px; margin-bottom: 12px; }
  .home .hero-title { font-size: 2.05rem; margin-bottom: 10px; }
  .home .hero-subtitle { font-size: .9rem; line-height: 1.55; margin-bottom: 16px; }
  .home .hero-actions { flex-direction: row; gap: 10px; width: 100%; flex-wrap: nowrap; }
  .home .hero-actions .btn { flex: 1; width: auto; padding: 12px 10px; font-size: .88rem; justify-content: center; white-space: nowrap; }
  .hero-visual { height: 190px; margin-top: 14px; max-width: none; }
  .hv-script { font-size: 1.25rem; right: 5%; top: 8%; }
  .hv-script i { font-size: 1rem; margin-top: 2px; }
  .hero-deco-1 { width: 380px; left: -140px; top: -120px; }
  .hero-deco-2 { width: 360px; left: -100px; bottom: -110px; }

  /* Cifras */
  .stats-strip { margin-top: -50px; }
  .stats-card { padding: 14px 4px; border-radius: 16px; }
  .stats-card .stat-num { font-size: 1.25rem; }

  /* Quiénes somos: un párrafo + tarjetas deslizables */
  .home #quienes-somos { padding-top: 36px; }
  .about-top { gap: 18px; margin-bottom: 18px; }
  .about-text .about-more { display: none; }
  .about-text p { font-size: .93rem; line-height: 1.65; margin-bottom: 12px; }
  .about-top .about-text .btn { padding: 11px 18px; font-size: .88rem; }
  .home .about-values, .about-cards {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 -18px; padding: 4px 18px 12px; scrollbar-width: none;
  }
  .home .about-values::-webkit-scrollbar, .about-cards::-webkit-scrollbar { display: none; }
  .home .value-item { flex: 0 0 68%; scroll-snap-align: start; display: block; padding: 16px; }
  .value-ic { width: 40px; height: 40px; margin-bottom: 8px; font-size: 1rem; }
  .about-cards > * { flex: 0 0 86%; scroll-snap-align: start; padding: 20px; margin: 0; }

  /* Noticias: carrusel más bajo */
  .home .news-grid { margin: 0 -18px; padding: 2px 18px 14px; gap: 12px; }
  .home .news-card { flex: 0 0 80%; }
  .home .news-card-img, .home .news-card-img img { height: 140px; }
  .news-body { padding: 14px 16px 18px; }
  .home .news-body h3 { font-size: .98rem; }
  .home .news-body p { font-size: .84rem; -webkit-line-clamp: 2; }

  /* Eventos */
  .home .section-header--row { flex-direction: column; gap: 12px; }
  .home .empty-state { padding: 22px 16px; }
  .home .event-item { padding: 12px 14px; }
  .home .formation-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Banner de socio: lo esencial arriba */
  .cta-main { padding: 30px 18px 32px; }
  .cta-main h2 { font-size: 1.55rem; }
  .cta-lead { font-size: .92rem; margin-bottom: 14px; }
  .home .cta-main .benefit-list { gap: 8px; margin-bottom: 18px; }
  .home .cta-main .benefit-list li { font-size: .86rem; }
  .home .cta-main .benefit-list li:nth-child(n+4) { display: none; }
  .cta-actions { flex-direction: column; gap: 10px; margin-bottom: 14px; }
  .cta-actions .btn { padding: 13px 16px; justify-content: center; }
  .cta-note { font-size: .74rem; padding: 10px 12px; }

  /* Servicios: baldosas compactas */
  .home .services-grid { gap: 10px; }
  .home .service-card { padding: 14px 8px; gap: 8px; }
  .home .service-icon { width: 44px; height: 44px; font-size: 1.05rem; }
  .home .service-card h3 { font-size: .8rem; }

  /* Bulos: filas finas */
  .home .bulo summary { padding: 11px 14px; font-size: .86rem; gap: 10px; }
  .home .bulo-badge { font-size: .62rem; padding: 2px 8px; }
  .home .bulo p { padding: 0 14px 14px; font-size: .88rem; }
  .home .bulos-cta { font-size: .84rem; margin-top: 18px; }
  .home #bulos::after { display: none; }

  /* Boletín */
  .newsletter-bar { padding: 54px 0 32px; }
  .newsletter-bar-inner { gap: 12px; }
  .home .newsletter-icon { width: 52px; height: 52px; font-size: 1.3rem; }
  .newsletter-copy h2 { font-size: 1.35rem; }
  .newsletter-copy p { font-size: .88rem; }
  .home .newsletter-form { flex-wrap: wrap; gap: 8px; }
  .home .newsletter-form input { flex: 1 1 100%; padding: 12px 14px; }
  .home .newsletter-form .btn { flex: 1 1 100%; justify-content: center; }

  /* Contacto: primero cómo localizarnos, luego el formulario */
  .home .contact-grid { display: flex; flex-direction: column; gap: 18px; }
  .home .contact-info-wrap { order: -1; }
  .home .contact-info-block { padding: 18px; margin-bottom: 12px; }
  .home .contact-info-block h3 { margin-bottom: 12px; font-size: 1rem; }
  .home .contact-info-item { margin-bottom: 10px; gap: 12px; }
  .home .contact-info-item i { width: 34px; height: 34px; }
  .home .contact-social { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
  .home .contact-social h3 { margin: 0; }
  .home .map-wrap { display: none; }
  .map-link {
    display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: #fff;
    border-radius: 12px; padding: 13px; font-weight: 600; font-size: .9rem; margin-top: 4px;
  }
  .home .contact-form-wrap { padding: 18px 16px; }
  .home .form-group { margin-bottom: 12px; }
  .home .contact-form .form-group textarea { min-height: 96px; }

  /* Pie en dos columnas */
  .home .footer { padding-top: 70px; }
  .home .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; margin-bottom: 28px; }
  .home .footer-brand, .home .footer-contact { grid-column: 1 / -1; }

  /* Botones flotantes más discretos para no tapar el contenido */
  .home .fab-socio { padding: 9px 14px 9px 9px; bottom: 12px; right: 12px; }
  .home .fab-socio-ic { width: 30px; height: 30px; }
  .home .fab-socio-txt span { display: none; }
  .home .fab-socio-txt b { font-size: .82rem; }
  .home .chat-launcher { padding: 11px 14px; bottom: 12px; left: 12px; font-size: .85rem; }
}

/* fix: tarjetas deslizables en fila */
@media (max-width: 768px) { .home .about-values, .about-cards { flex-direction: row; } }

@media (max-width: 768px) {
  .home .chat-launcher { font-size: 0; padding: 0; width: 46px; height: 46px; justify-content: center; border-radius: 50%; }
  .home .chat-launcher i, .home .chat-launcher svg { font-size: 1.15rem; margin: 0; }
}


/* Puntitos del carrusel de noticias: solo en móvil */
.news-dots { display: none; }
@media (max-width: 768px) {
  .home .news-dots { display: flex; justify-content: center; gap: 7px; margin-top: 2px; }
  .home .news-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(46,70,8,.2); transition: width .2s, background .2s; }
  .home .news-dots span.on { width: 20px; border-radius: 4px; background: var(--leaf, #5a9a14); }
}
