/* ═══════════════════════════════════════════════════════════════
   Asociación de Ataxias de Castilla-La Mancha — Shared Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --purple:       #5B2D8E;
  --purple-dark:  #3B1A6B;
  --purple-mid:   #7B4DBE;
  --purple-light: #EDE5F8;
  --teal:         #2A9D8F;
  --white:        #FFFFFF;
  --off-white:    #F8F5FF;
  --text-dark:    #1A1A2E;
  --text-mid:     #4A4A6A;
  --text-light:   #7A7A9A;
  --border:       #E2DAF0;
  --shadow-sm:    0 2px 12px rgba(91,45,142,.08);
  --shadow-md:    0 8px 32px rgba(91,45,142,.14);
  --shadow-lg:    0 24px 64px rgba(91,45,142,.22);
  --r:            16px;
  --r-sm:         8px;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text-dark); background: var(--white); overflow-x: hidden; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }
ul { list-style: none; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--purple-mid); border-radius: 3px; }

/* ── NAVBAR ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 2.5rem; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s, backdrop-filter .4s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}
.nav.nav-solid {
  background: rgba(255,255,255,.97);
  box-shadow: var(--shadow-sm);
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: .75rem; }
.nav-logo-img { width: 44px; height: 44px; object-fit: contain; }
.nav-logo-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  display: none; align-items: center; justify-content: center;
  color: #fff; font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700;
  flex-shrink: 0;
}
.nav-logo-title { font-size: .85rem; font-weight: 700; line-height: 1.1; transition: color .4s; color: #fff; }
.nav-logo-sub   { font-size: .68rem; color: rgba(255,255,255,.65); transition: color .4s; }
.nav.scrolled .nav-logo-title,
.nav.nav-solid .nav-logo-title { color: var(--purple-dark); }
.nav.scrolled .nav-logo-sub,
.nav.nav-solid .nav-logo-sub   { color: var(--text-light); }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block; padding: .5rem 1rem; font-size: .87rem; font-weight: 500;
  color: rgba(255,255,255,.9); transition: color .2s; white-space: nowrap;
}
.nav.scrolled .nav-links > li > a,
.nav.nav-solid .nav-links > li > a { color: var(--text-mid); }
.nav-links > li > a:hover { color: var(--purple); }
.nav.scrolled .nav-links > li > a:hover { color: var(--purple); }

/* Dropdown */
.has-drop { position: relative; }
.has-drop::after { content: ''; position: absolute; bottom: -.55rem; left: 0; right: 0; height: .55rem; display: none; }
.has-drop:hover::after { display: block; }
.has-drop > a { display: flex; align-items: center; gap: .25rem; }
.nav-arrow { font-size: .65rem; transition: transform .2s; }
.has-drop:hover .nav-arrow { transform: rotate(180deg); }

.nav-drop {
  position: absolute; top: calc(100% + .5rem); left: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow-md); min-width: 200px;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity .2s, transform .2s;
  z-index: 100;
}
.has-drop:hover .nav-drop { opacity: 1; pointer-events: all; transform: translateY(0); }
.nav-drop li a {
  display: block; padding: .65rem 1.1rem; font-size: .85rem; color: var(--text-mid);
  transition: background .15s, color .15s; cursor: pointer;
}
.nav-drop li a:hover { background: var(--purple-light); color: var(--purple); }
.nav-drop li:first-child a { border-radius: var(--r) var(--r) 0 0; }
.nav-drop li:last-child  a { border-radius: 0 0 var(--r) var(--r); }

/* CTA button in nav */
.nav-cta {
  background: linear-gradient(135deg, var(--purple), var(--purple-mid)) !important;
  color: #fff !important; padding: .44rem 1.2rem; border-radius: 50px;
  font-weight: 600; margin-left: .5rem;
  box-shadow: 0 4px 16px rgba(91,45,142,.3);
}
.nav-cta:hover { opacity: .9; color: #fff !important; }

/* Hamburger */
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 24px; height: 2px; border-radius: 2px; transition: background .4s; background: #fff; }
.nav.scrolled .nav-burger span,
.nav.nav-solid .nav-burger span { background: var(--text-dark); }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  color: #fff; padding: .85rem 2rem; border-radius: 50px;
  font-weight: 600; font-size: .95rem; display: inline-block;
  box-shadow: 0 8px 24px rgba(91,45,142,.4);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(91,45,142,.55); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.48);
  color: #fff; padding: .82rem 2rem; border-radius: 50px;
  font-weight: 600; font-size: .95rem; display: inline-block;
  backdrop-filter: blur(6px); transition: background .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-secondary {
  background: #fff; color: var(--purple);
  border: 2px solid var(--purple); padding: .82rem 2rem;
  border-radius: 50px; font-weight: 600; font-size: .95rem;
  display: inline-block; transition: .2s;
}
.btn-secondary:hover { background: var(--purple-light); color: var(--purple); }
.btn-outline-purple {
  border: 2px solid var(--purple); color: var(--purple);
  padding: .7rem 1.8rem; border-radius: 50px; font-weight: 600;
  font-size: .9rem; display: inline-block; transition: .2s;
}
.btn-outline-purple:hover { background: var(--purple); color: #fff; }

/* ── SHARED SECTION ────────────────────────────────────────── */
section { padding: 7rem 2.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-block; font-size: .73rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--purple); margin-bottom: .9rem;
}
.section-title {
  font-family: 'Playfair Display', serif; font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 700; line-height: 1.18; color: var(--text-dark); margin-bottom: 1.2rem; letter-spacing: -.02em;
}
.section-desc { font-size: 1.05rem; color: var(--text-mid); max-width: 680px; line-height: 1.8; }
.section-header { margin-bottom: 4rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-desc { margin: 0 auto; }

/* ── SCROLL REVEALS ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(44px); transition: opacity .75s ease, transform .75s ease; }
.reveal.from-left  { transform: translateX(-44px); }
.reveal.from-right { transform: translateX( 44px); }
.reveal.visible    { opacity: 1; transform: none; }
.stagger-child { opacity: 0; transform: translateY(32px); transition: opacity .6s ease, transform .6s ease; }
.stagger-child.visible { opacity: 1; transform: none; }

/* ── INTERIOR PAGE HERO ─────────────────────────────────────── */
.page-hero {
  background: linear-gradient(rgba(15,5,35,.72), rgba(15,5,35,.72)),
              url('../assets/2.jpeg') center/cover no-repeat;
  padding: 10rem 2.5rem 5rem; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 90% at 80% 50%, rgba(123,77,190,.35) 0%, transparent 70%);
}
.page-hero-windmill {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
  opacity: .12; pointer-events: none;
}
.page-hero-windmill svg { width: 180px; }
.page-hero-inner { position: relative; z-index: 1; max-width: 800px; }
.page-hero-label {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #C4B5FD; margin-bottom: 1rem;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 1.25rem; letter-spacing: -.02em;
}
.page-hero h1 em { font-style: italic; color: #C4B5FD; }
.page-hero p { font-size: 1.08rem; color: rgba(255,255,255,.78); max-width: 560px; line-height: 1.8; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: .8rem; color: rgba(255,255,255,.5);
  margin-bottom: 2rem;
}
.breadcrumb a { color: rgba(255,255,255,.55); transition: color .2s; }
.breadcrumb a:hover { color: #C4B5FD; }
.breadcrumb span { color: rgba(255,255,255,.3); }
.breadcrumb .current { color: rgba(255,255,255,.85); }

/* ── MISSION STRIP ──────────────────────────────────────────── */
.mission-strip {
  background: linear-gradient(135deg, var(--purple-dark) 0%, #2D1055 60%, #1a0a3a 100%);
  padding: 5rem 2.5rem; position: relative; overflow: hidden;
}
.mission-strip::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(123,77,190,.3) 0%, transparent 70%);
}
.mission-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.mission-label { font-size: .73rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #A78BFA; margin-bottom: 1.25rem; display: block; }
.mission-quote {
  font-family: 'Playfair Display', serif; font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-style: italic; font-weight: 600; color: #fff; line-height: 1.35;
  position: relative; padding-left: 2rem;
}
.mission-quote::before { content: '"'; position: absolute; left: 0; top: -.5rem; font-size: 3rem; color: #A78BFA; font-style: normal; line-height: 1; }
.mission-sub { font-size: .9rem; color: rgba(255,255,255,.5); margin-top: 1.25rem; }
.mission-windmill { opacity: .7; flex-shrink: 0; }
.mission-windmill svg { width: 110px; height: 140px; filter: drop-shadow(0 0 20px rgba(167,139,250,.4)); }
.mw-blades { transform-box: fill-box; transform-origin: center; animation: mwSpin 10s linear infinite; }
@keyframes mwSpin { to { transform: rotate(360deg); } }

/* ── STATS BAND ─────────────────────────────────────────────── */
.stats-band { background: linear-gradient(135deg, var(--purple-dark), var(--purple), #9333EA); padding: 5.5rem 2.5rem; }
.stats-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item { position: relative; }
.stat-item::after { content: ''; position: absolute; right: 0; top: 20%; bottom: 20%; width: 1px; background: rgba(255,255,255,.12); }
.stat-item:last-child::after { display: none; }
.stat-num { font-family: 'Playfair Display', serif; font-size: clamp(2.8rem, 4.5vw, 4.5rem); font-weight: 700; color: #fff; display: block; line-height: 1; }
.stat-label { font-size: .82rem; color: rgba(255,255,255,.65); margin-top: .6rem; font-weight: 500; }

/* ── ATAXIA TYPE CARDS ──────────────────────────────────────── */
.ataxia-types-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.ataxia-type-card {
  background: #fff; border-radius: var(--r); padding: 2rem;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.ataxia-type-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--purple-mid));
}
.ataxia-type-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--purple-mid); }
.ataxia-type-card-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem; background: var(--off-white); }
.ataxia-type-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: .5rem; }
.ataxia-type-card .card-badge {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .2rem .65rem; border-radius: 50px;
  background: var(--purple-light); color: var(--purple); margin-bottom: .75rem;
}
.ataxia-type-card p { font-size: .88rem; color: var(--text-mid); line-height: 1.75; }
.ataxia-type-card ul { list-style: none; margin-top: .75rem; display: flex; flex-direction: column; gap: .35rem; }
.ataxia-type-card ul li { font-size: .84rem; color: var(--text-mid); display: flex; align-items: flex-start; gap: .5rem; }
.ataxia-type-card ul li::before { content: '·'; color: var(--purple); font-size: 1.2rem; line-height: 1; flex-shrink: 0; }

/* ── SERVICE CARD ───────────────────────────────────────────── */
.service-full {
  background: #fff; border-radius: 24px; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 3rem;
  scroll-margin-top: 100px;
}
.service-header {
  display: flex; align-items: center; gap: 1.5rem; padding: 2rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--off-white), #fff);
}
.service-icon-lg { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; }
.service-header h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin-bottom: .2rem; }
.service-header p { font-size: .9rem; color: var(--text-mid); }
.service-body { padding: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.service-desc p { font-size: .95rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 1rem; }
.service-desc h4 { font-size: .88rem; font-weight: 700; color: var(--text-dark); margin-bottom: .5rem; margin-top: 1.25rem; }
.service-features { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.service-features li { display: flex; align-items: flex-start; gap: .65rem; font-size: .88rem; color: var(--text-mid); }
.service-features li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* Price table */
.price-box { background: var(--off-white); border-radius: var(--r); padding: 1.75rem; border: 1px solid var(--border); }
.price-box h4 { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 1.25rem; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th { font-size: .75rem; font-weight: 700; color: var(--text-light); text-align: left; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.price-table td { font-size: .88rem; color: var(--text-mid); padding: .65rem 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.price-table tr:last-child td { border-bottom: none; }
.price-table .price-val { font-weight: 700; color: var(--purple); font-size: 1rem; }
.price-table .price-badge {
  display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .15rem .55rem; border-radius: 50px;
  background: var(--purple-light); color: var(--purple);
}
.price-note { font-size: .78rem; color: var(--text-light); margin-top: 1rem; line-height: 1.5; }
.price-contact { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .84rem; color: var(--text-mid); }
.price-contact a { color: var(--purple); font-weight: 600; }

/* Servicios grid (overview) */
.servicios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.servicio-mini {
  background: #fff; border-radius: var(--r); padding: 1.5rem; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); display: flex; gap: 1rem; align-items: flex-start;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-decoration: none; color: inherit;
}
.servicio-mini:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--purple-mid); color: inherit; }
.servicio-mini-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; background: var(--off-white); flex-shrink: 0; }
.servicio-mini h3 { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.servicio-mini p { font-size: .82rem; color: var(--text-mid); }
.servicio-mini-price { font-size: .78rem; font-weight: 700; color: var(--purple); margin-top: .35rem; }

/* ── GALLERY ─────────────────────────────────────────────────── */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px; gap: 10px;
}
.gallery-item { border-radius: 12px; overflow: hidden; position: relative; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.25,.46,.45,.94); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-featured { grid-column: span 2; grid-row: span 2; }
.gallery-wide     { grid-column: span 4; }
.gallery-wide img { height: 280px; }

.gallery-caption { position: absolute; inset: 0; background: linear-gradient(to top, rgba(59,26,107,.88) 0%, transparent 55%); display: flex; align-items: flex-end; padding: 1rem 1.1rem; opacity: 0; transition: opacity .3s; }
.gallery-caption span { font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.9); letter-spacing: .02em; }
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-item { transition: box-shadow .12s ease; transform-style: preserve-3d; }
.gallery-item:hover { box-shadow: 0 20px 50px rgba(91,45,142,.25); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 9000; background: rgba(8,3,18,.96); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 12px; object-fit: contain; }
.lb-btn { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); border: none; color: #fff; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-close { position: absolute; top: 1.5rem; right: 1.5rem; }
.lb-prev  { position: absolute; left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-next  { position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.5); font-size: .8rem; font-family: 'Playfair Display', serif; }

/* ── CONTACT FORM ────────────────────────────────────────────── */
.contacto-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
.contacto-info { display: flex; flex-direction: column; gap: 1.4rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; background: var(--purple-light); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.info-item h4 { font-size: .83rem; font-weight: 700; color: var(--purple); margin-bottom: .22rem; }
.info-item p, .info-item a { font-size: .9rem; color: var(--text-mid); }
.info-item a:hover { color: var(--purple); }
.contacto-form { background: #fff; border-radius: 24px; padding: 2.5rem; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.contacto-form h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--text-mid); margin-bottom: .4rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--r-sm); font-family: inherit; font-size: .9rem;
  color: var(--text-dark); background: #fff; outline: none; transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--purple); }
.form-group textarea { resize: vertical; min-height: 108px; }
.btn-submit {
  width: 100%; padding: .9rem; background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  color: #fff; border: none; border-radius: var(--r-sm); font-size: .95rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 14px rgba(91,45,142,.3);
}
.btn-submit:hover { opacity: .9; transform: translateY(-1px); }

/* ── MEMBERSHIP PLANS ────────────────────────────────────────── */
.socios-section { background: var(--purple-dark); padding: 7rem 2.5rem; }
.socios-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.socios-inner .section-title { color: #fff; }
.socios-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; text-align: left; margin-top: 3rem; }
.plan-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); padding: 2rem; transition: background .2s; }
.plan-card:hover { background: rgba(255,255,255,.12); }
.plan-card.featured { background: #fff; color: var(--text-dark); border-color: #fff; }
.plan-name  { font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.45); margin-bottom: .5rem; }
.plan-card.featured .plan-name  { color: var(--purple); }
.plan-price { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; color: #fff; margin-bottom: .25rem; }
.plan-card.featured .plan-price { color: var(--purple); }
.plan-price span { font-size: 1rem; font-weight: 400; opacity: .65; }
.plan-desc { font-size: .84rem; color: rgba(255,255,255,.6); margin-bottom: 1.25rem; }
.plan-card.featured .plan-desc { color: var(--text-mid); }
.plan-card ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.plan-card ul li { font-size: .84rem; color: rgba(255,255,255,.72); display: flex; align-items: center; gap: .5rem; }
.plan-card.featured ul li { color: var(--text-mid); }
.plan-card ul li::before { content: '✓'; color: #86EFAC; font-weight: 700; }

/* ── HOW TO HELP ─────────────────────────────────────────────── */
.ayuda-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.ayuda-ways { display: flex; flex-direction: column; gap: 1rem; }
.ayuda-way {
  background: var(--off-white); border-radius: var(--r); border: 1px solid var(--border);
  padding: 1.4rem 1.6rem; display: flex; gap: 1.2rem; align-items: center;
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ayuda-way:hover { transform: translateX(8px); box-shadow: var(--shadow-md); border-color: var(--purple-mid); }
.ayuda-way-icon { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.ayuda-way-body h4 { font-size: .93rem; font-weight: 700; margin-bottom: .2rem; }
.ayuda-way-body p  { font-size: .82rem; color: var(--text-mid); }
.ayuda-way-arrow { margin-left: auto; color: var(--text-light); font-size: 1.2rem; transition: transform .2s; }
.ayuda-way:hover .ayuda-way-arrow { transform: translateX(4px); }
.donate-card {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple), #7C3AED);
  border-radius: 24px; padding: 3rem; color: #fff; text-align: center;
  box-shadow: 0 24px 60px rgba(91,45,142,.4); position: relative; overflow: hidden;
}
.donate-card::before { content: ''; position: absolute; top: -40%; right: -20%; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.06); }
.donate-card h3 { font-family: 'Playfair Display', serif; font-size: 1.9rem; font-weight: 700; margin-bottom: .75rem; position: relative; }
.donate-card p { opacity: .82; margin-bottom: 2rem; line-height: 1.65; position: relative; }
.amount-pills { display: flex; gap: .75rem; justify-content: center; margin-bottom: 1.75rem; flex-wrap: wrap; }
.pill { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: #fff; padding: .42rem 1rem; border-radius: 50px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: background .2s, transform .15s; }
.pill:hover  { background: rgba(255,255,255,.24); }
.pill.active { background: rgba(255,255,255,.32); transform: scale(1.06); }
.btn-white { background: #fff; color: var(--purple); padding: .85rem 2.5rem; border-radius: 50px; font-weight: 700; font-size: .95rem; display: inline-block; transition: transform .2s, box-shadow .2s; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); color: var(--purple); }

/* ── CONTENT BLOCKS ──────────────────────────────────────────── */
.content-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.content-three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.info-card {
  background: #fff; border-radius: var(--r); padding: 2rem; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.info-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .65rem; color: var(--text-dark); }
.info-card p  { font-size: .88rem; color: var(--text-mid); line-height: 1.75; }
.info-card .card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--purple-light); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1rem; }

.highlight-box {
  background: linear-gradient(135deg, var(--purple-light), #F0F4FF);
  border-radius: var(--r); padding: 2.5rem; border: 1px solid var(--border);
}
.highlight-box h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1rem; }
.highlight-box p { font-size: .95rem; color: var(--text-mid); line-height: 1.8; }

.symptom-list { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.symptom-item { display: flex; align-items: flex-start; gap: .65rem; }
.symptom-item::before { content: '◆'; color: var(--purple); font-size: .65rem; margin-top: .35rem; flex-shrink: 0; }
.symptom-item span { font-size: .9rem; color: var(--text-mid); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer { background: var(--text-dark); color: rgba(255,255,255,.65); padding: 4rem 2.5rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand-logo { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-brand-img  { width: 40px; height: 40px; object-fit: contain; }
.footer-brand-mark { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--purple), var(--purple-mid)); display: flex; align-items: center; justify-content: center; color: #fff; font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; }
.footer-brand-name { font-weight: 700; color: #fff; font-size: .9rem; }
.footer-brand p { font-size: .84rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: .87rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a { color: rgba(255,255,255,.55); font-size: .84rem; transition: color .2s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .8rem; }
.footer-social { display: flex; gap: .75rem; }
.social-btn { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: .84rem; transition: background .2s, color .2s; }
.social-btn:hover { background: var(--purple); color: #fff; }

/* ── FOOTER COLLABORATORS ────────────────────────────────────── */
.footer-colabs {
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-colabs-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  white-space: nowrap;
  flex-shrink: 0;
}
.footer-colabs-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-colabs-logos img {
  height: 40px;
  width: auto;
  object-fit: contain;
  background: rgba(255,255,255,.92);
  padding: 6px 14px;
  border-radius: 8px;
  opacity: .9;
  transition: opacity .2s, transform .2s;
}
.footer-colabs-logos img:hover { opacity: 1; transform: translateY(-2px); }
@media(max-width:600px) { .footer-colabs { gap: 1.25rem; } .footer-colabs-logos img { height: 30px; } }

/* ── BACK TO TOP ─────────────────────────────────────────────── */
.back-top { position: fixed; bottom: 2rem; right: 2rem; z-index: 999; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--purple-mid)); color: #fff; border: none; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(91,45,142,.5); opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s; pointer-events: none; }
.back-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }

/* ── HOME HERO ───────────────────────────────────────────────── */
.hero { position: relative; height: 100vh; min-height: 620px; overflow: hidden; display: flex; align-items: center; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 2.2s ease; }
.hero-slide.active { opacity: 1; }
.slide-img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-slide.active .slide-img { animation: kbA 15s ease-in-out forwards; }
.hero-slide.active.kb-b .slide-img { animation: kbB 15s ease-in-out forwards; }
.hero-slide.active.kb-c .slide-img { animation: kbC 15s ease-in-out forwards; }
@keyframes kbA { from { transform: scale(1.0)  translate(0,0)      } to { transform: scale(1.08) translate(-1.5%, -.5%) } }
@keyframes kbB { from { transform: scale(1.06) translate(.5%,0)    } to { transform: scale(1.0)  translate(-.5%, .5%)  } }
@keyframes kbC { from { transform: scale(1.0)  translate(-.5%,0)   } to { transform: scale(1.07) translate(.5%, -.5%)  } }
.windmill-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(105deg, rgba(20,6,44,.82) 0%, rgba(20,6,44,.52) 50%, rgba(20,6,44,.12) 100%),
              linear-gradient(to top, rgba(10,3,22,.6) 0%, transparent 50%);
}
.hero-deco { position: absolute; z-index: 1; pointer-events: none; opacity: .07; }
.hero-deco svg { overflow: visible; }
.deco-blades { transform-box: fill-box; transform-origin: center; }
.deco-blades-1 { animation: decoSpin 22s linear infinite; }
.deco-blades-2 { animation: decoSpin 28s linear infinite reverse; }
.deco-blades-3 { animation: decoSpin 18s linear infinite; }
@keyframes decoSpin { to { transform: rotate(360deg); } }
.hero-deco-float { animation: heroDrift 18s ease-in-out infinite; }
@keyframes heroDrift { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-18px) } }
.hero-dots { position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: .65rem; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); border: none; cursor: pointer; transition: background .3s, width .3s; padding: 0; }
.hero-dot.active { background: #fff; width: 24px; border-radius: 4px; }
.hero-counter { position: absolute; bottom: 2.5rem; right: 2.5rem; z-index: 10; color: rgba(255,255,255,.5); font-size: .75rem; letter-spacing: .08em; font-family: 'Playfair Display', serif; }
.hero-scroll { position: absolute; bottom: 2.5rem; left: 2.5rem; z-index: 10; color: rgba(255,255,255,.45); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; animation: scrollBob 2.8s ease infinite; }
@keyframes scrollBob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(8px) } }
.hero-inner { position: relative; z-index: 5; max-width: 1200px; margin: 0 auto; width: 100%; padding: 0 2.5rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); padding: .42rem 1rem; border-radius: 50px; font-size: .76rem; font-weight: 600; color: #fff; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero-badge-dot { width: 7px; height: 7px; background: #C4B5FD; border-radius: 50%; animation: bdgPulse 2s ease infinite; }
@keyframes bdgPulse { 0%,100% { opacity: 1; transform: scale(1) } 50% { opacity: .4; transform: scale(1.6) } }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2.8rem,5.5vw,4.8rem); font-weight: 700; line-height: 1.1; color: #fff; margin-bottom: 1.5rem; letter-spacing: -.02em; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero-title em { font-style: italic; color: #C4B5FD; }
.w { display: inline-block; opacity: 0; transform: translateY(36px); animation: wordIn .75s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.hero-desc { font-size: 1.08rem; color: rgba(255,255,255,.82); max-width: 510px; margin-bottom: 2.5rem; line-height: 1.8; text-shadow: 0 1px 8px rgba(0,0,0,.25); opacity: 0; animation: wordIn .75s cubic-bezier(.16,1,.3,1) .9s forwards; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; opacity: 0; animation: wordIn .75s cubic-bezier(.16,1,.3,1) 1.05s forwards; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; opacity: 0; animation: wordIn .75s cubic-bezier(.16,1,.3,1) 1.2s forwards; }
.hero-stat-num { font-family: 'Playfair Display', serif; font-size: 2.1rem; font-weight: 700; color: #C4B5FD; display: block; line-height: 1; }
.hero-stat-label { font-size: .73rem; color: rgba(255,255,255,.55); font-weight: 500; margin-top: .15rem; }

/* Home feature links */
.home-features { background: var(--off-white); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.feature-card {
  background: #fff; border-radius: var(--r); padding: 2rem; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: .75rem;
  transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden;
}
.feature-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--purple), var(--purple-mid)); transform: scaleX(0); transition: transform .3s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--purple-mid); color: inherit; }
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--purple-light); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark); }
.feature-card p  { font-size: .84rem; color: var(--text-mid); line-height: 1.65; }
.feature-card .feature-arrow { font-size: 1.1rem; color: var(--purple); margin-top: auto; }

/* Home gallery preview */
.home-gallery-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 3rem; }
.home-gallery-preview .gallery-item { border-radius: 12px; overflow: hidden; height: 220px; }
.home-gallery-preview .gallery-item.span2 { grid-column: span 2; height: 280px; }

/* ── ACTIVITY CARDS ──────────────────────────────────────────── */
.activity-card {
  background: #fff; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.activity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.activity-card img { width: 100%; height: 200px; object-fit: cover; }
.activity-card-body { padding: 1.5rem; }
.activity-date { font-size: .75rem; font-weight: 700; color: var(--purple); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.activity-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.activity-card p  { font-size: .85rem; color: var(--text-mid); line-height: 1.65; }

/* ── UTILITIES ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-purple { color: var(--purple); }
.bg-off-white { background: var(--off-white); }
.bg-white { background: var(--white); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.gap-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.section-cta { margin-top: 3.5rem; text-align: center; }

/* ── MEDIA QUERIES ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .service-body { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 900px) {
  section { padding: 5rem 1.5rem; }
  .content-two-col { grid-template-columns: 1fr; gap: 3rem; }
  .contacto-grid  { grid-template-columns: 1fr; gap: 3rem; }
  .ayuda-grid     { grid-template-columns: 1fr; gap: 3rem; }
  .socios-plans   { grid-template-columns: 1fr; }
  .gallery-grid   { grid-template-columns: repeat(2,1fr); grid-auto-rows: 160px; }
  .gallery-featured { grid-column: span 2; grid-row: span 2; }
  .gallery-wide   { grid-column: span 2; }
  .gallery-wide img { height: 180px; }
  .stats-grid     { grid-template-columns: repeat(2,1fr); }
  .stat-item::after { display: none; }
  .mission-inner  { grid-template-columns: 1fr; }
  .mission-windmill { display: none; }
  .content-three-col { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: #fff; padding: 1.5rem; align-items: flex-start;
    border-top: 1px solid var(--border); overflow-y: auto;
  }
  .nav-links.open > li { width: 100%; }
  .nav-links.open > li > a { font-size: 1.05rem; display: block; padding: .85rem 0; border-bottom: 1px solid var(--border); color: var(--text-dark) !important; }
  .nav-drop { position: static; opacity: 1; pointer-events: all; transform: none; box-shadow: none; border: none; background: var(--off-white); margin-top: .25rem; border-radius: var(--r-sm); display: none; }
  .has-drop.open .nav-drop { display: block; }
  .nav-drop li a { padding: .6rem 1rem; font-size: .9rem; }
  .nav-cta { margin-left: 0; margin-top: 1rem; display: inline-block; }
  .page-hero { padding: 8rem 1.5rem 4rem; }
  .page-hero h1 { font-size: 2rem; }
  .home-gallery-preview { grid-template-columns: 1fr 1fr; }
  .home-gallery-preview .gallery-item.span2 { grid-column: span 2; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  section { padding: 4rem 1.25rem; }
  .features-grid { grid-template-columns: 1fr; }
  .content-three-col { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery-featured, .gallery-wide { grid-column: span 1; grid-row: span 1; }
  .gallery-wide img { height: 200px; }
  .symptom-list { grid-template-columns: 1fr; }
  .ataxia-types-grid { grid-template-columns: 1fr; }
  .service-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero-stats { gap: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { *, .reveal, .stagger-child { transition: none !important; animation: none !important; transform: none !important; opacity: 1 !important; } }
