/* Fuentes alojadas en la propia web (sin peticiones a Google) */
/* Archivo Black latin-ext */
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/archivo-black-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Archivo Black latin */
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/archivo-black-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Manrope latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Manrope latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Newsreader latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/newsreader-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Newsreader latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/newsreader-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* =========================================================
   AVISPAS RACING — sistema visual
   Papel cálido, tinta oscura, amarillo avispa solo en acciones.
   ========================================================= */

:root {
    --paper: #F4EFE6;
    --paper-2: #EAE3D6;
    --white: #FFFFFF;
    --ink: #1D1B17;
    --ink-2: #4E4A42;          /* 7.6:1 sobre --paper */
    --line: rgba(29, 27, 23, 0.14);
    --wasp: #F2B705;           /* relleno de botones, texto --ink encima */
    --wasp-deep: #D9A200;
    --night: #191714;
    --night-2: #24211C;
    --on-night: #F4EFE6;
    --on-night-2: #C9C1B2;     /* 9:1 sobre --night */

    --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --wrap: 1180px;
    --gutter: clamp(16px, 5vw, 48px);
    --section: clamp(72px, 10vw, 136px);
    --radius: 14px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--wasp); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.section-ink :focus-visible, .hero :focus-visible { outline-color: var(--wasp); }

h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}
h3 { font-family: var(--sans); font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
    position: fixed; top: 8px; left: 8px; z-index: 100;
    padding: 12px 16px; background: var(--ink); color: var(--paper);
    border-radius: 8px; font-weight: 700; text-decoration: none;
    transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Botones: un solo sistema ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 22px;
    border-radius: 10px; border: 1px solid transparent;
    font: 700 0.975rem/1 var(--sans); text-decoration: none; cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--wasp); color: var(--ink); }
.btn-primary:hover { background: var(--wasp-deep); }
.btn-light { background: transparent; color: var(--on-night); border-color: rgba(244, 239, 230, 0.6); }
.btn-light:hover { background: rgba(244, 239, 230, 0.12); border-color: var(--on-night); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.925rem; }
.btn-full { width: 100%; }

/* ---------- Cabecera ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 50;
    background: rgba(244, 239, 230, 0.96);
    border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand-word { font-family: 'Archivo Black', var(--sans); font-size: 1.05rem; letter-spacing: 0.02em; margin: 0; }
.brand-word span { color: var(--wasp-deep); margin-left: 6px; }
.nav { display: flex; gap: 4px; }
.nav a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
    font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--ink-2);
    border-radius: 8px; transition: color .2s;
}
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-bars, .menu-bars::before, .menu-bars::after {
    position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s; content: '';
}
.menu-bars { top: 21px; }
.menu-bars::before { left: 0; top: -7px; }
.menu-bars::after { left: 0; top: 7px; }
.menu-btn[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars::after { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
    display: flex; flex-direction: column; gap: 4px;
    padding: 16px var(--gutter) 28px; border-top: 1px solid var(--line);
    height: calc(100dvh - var(--header-h)); overflow-y: auto; background: var(--paper);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) {
    display: flex; align-items: center; min-height: 52px;
    font-family: var(--serif); font-size: 1.6rem; text-decoration: none;
    border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; isolation: isolate;
    min-height: 100svh; display: flex; align-items: flex-end;
    padding: calc(var(--header-h) + 48px) 0 clamp(40px, 6vw, 72px);
    color: var(--on-night); background: var(--night);
}
.hero-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-slide {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
    opacity: 0; transform: scale(1.06);
    transition: opacity 1.4s ease, transform 7s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(25, 23, 20, 0.25) 0%, rgba(25, 23, 20, 0.15) 35%, rgba(25, 23, 20, 0.82) 72%, rgba(25, 23, 20, 0.94) 100%);
}
.hero-inner { animation: heroIn .9s var(--ease) both; }
.hero-title {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(2.4rem, 6vw, 4.75rem); line-height: 1.02; letter-spacing: -0.025em;
    max-width: 16ch;
}
.hero-lead { margin-top: 22px; max-width: 58ch; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: #E7E0D3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: clamp(36px, 5vw, 56px) 0 0; padding-top: 22px;
    border-top: 1px solid rgba(244, 239, 230, 0.28); max-width: 760px;
}
.hero-facts div { padding-right: 16px; }
.hero-facts dt { font-size: 0.8rem; font-weight: 600; color: var(--on-night-2); }
.hero-facts dd { margin: 2px 0 0; font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.2; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Secciones ---------- */
.section { padding: var(--section) 0; }
.section-alt { background: var(--paper-2); }
.section-ink { background: var(--night); color: var(--on-night); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p { margin-top: 16px; font-size: 1.1rem; color: var(--ink-2); }
.section-ink .section-head p { color: var(--on-night-2); }
.note { margin-top: 36px; color: var(--ink-2); font-size: 0.975rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-reverse .split-media { order: -1; }
.split-text > * + * { margin-top: 18px; }
.split-text p { color: var(--ink-2); font-size: 1.075rem; max-width: 60ch; }
.split-text .pull {
    font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.6rem); line-height: 1.3;
    color: var(--ink); padding-top: 18px; border-top: 1px solid var(--line);
}
.split-media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.split-media:hover img { transform: scale(1.025); }

/* Qué llevamos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); list-style: none; padding: 0; margin: 0; }
.step img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; }
.step p { margin-top: 8px; color: var(--ink-2); }

/* Cómo ayudar */
.help-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(244, 239, 230, 0.2); }
.help-item {
    display: flex; flex-direction: column; gap: 10px;
    padding: 28px 24px 28px 0; text-decoration: none; color: var(--on-night);
    border-bottom: 1px solid rgba(244, 239, 230, 0.2);
}
.help-item + .help-item { padding-left: 24px; border-left: 1px solid rgba(244, 239, 230, 0.2); }
.help-item h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; }
.help-item p { color: var(--on-night-2); flex: 1; }
.help-link { font-weight: 700; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; transition: text-decoration-thickness .2s; }
.help-item:hover .help-link { text-decoration-thickness: 3px; text-decoration-color: var(--wasp); }
.help-main h3 { color: var(--wasp); }

/* Entregas */
.gallery {
    display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 18vw, 230px);
    gap: 12px;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.gallery .g-wide { grid-column: span 2; grid-row: span 2; }
.gallery .g-tall { grid-row: span 2; }

/* Sponsors */
.sponsors-carousel { margin: 0 0 clamp(48px, 6vw, 72px); }
.sponsors-carousel-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; margin-bottom: 18px; }
.sponsors-mask {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.sponsors-track { display: flex; width: max-content; animation: sponsorsScroll 60s linear infinite; }
.sponsors-mask:hover .sponsors-track { animation-play-state: paused; }
.sponsor-group { display: flex; gap: 14px; padding: 4px 14px 4px 0; margin: 0; list-style: none; }
.sponsor-tile {
    display: flex; align-items: center; justify-content: center; flex: none;
    width: 172px; height: 88px; padding: 14px 20px;
    background: var(--white); border: 1px solid var(--line); border-radius: 12px;
}
.sponsor-tile img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.sponsor-text { font-family: var(--sans); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.01em; text-align: center; }
@keyframes sponsorsScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Franja de foto a todo el ancho */
.photo-band { height: clamp(260px, 42vw, 560px); overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }

/* Ruta con fotos */
.route-photos {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
    list-style: none; padding: 0; margin: 0;
}
.route-photos li { display: flex; flex-direction: column; gap: 4px; }
.route-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
.route-photos span:last-child { color: var(--ink-2); font-size: 0.95rem; }


.route-km { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Quiénes somos (mismo patrón split que "Por qué") */
.team-split { align-items: start; }
.team-split .split-media { aspect-ratio: 4 / 5; position: sticky; top: calc(var(--header-h) + 24px); }
.team-split .split-media img { object-position: center 65%; }
.team-people { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px !important; }
.person {
    display: flex; flex-direction: column; gap: 14px; padding: 22px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.person img {
    width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex: none;
    box-shadow: 0 0 0 4px var(--white), 0 0 0 7px var(--wasp);
}
.person h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.person-role { margin: 2px 0 8px; font-weight: 700; color: var(--ink-2); font-size: 0.9rem; }
.split-text .person p:last-child { color: var(--ink-2); font-size: 0.975rem; }

/* Contacto */
.contact { align-items: start; }
.contact-links { list-style: none; padding: 0; margin-top: 28px !important; }
.contact-links a {
    display: flex; align-items: center; min-height: 48px; border-top: 1px solid var(--line);
    font-weight: 600; text-decoration: none;
}
.contact-links li:last-child a { border-bottom: 1px solid var(--line); }
.contact-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact-form {
    display: grid; gap: 18px; padding: clamp(22px, 3vw, 32px);
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.925rem; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 48px; padding: 12px 14px;
    font: 500 1rem var(--sans); color: var(--ink);
    background: var(--paper); border: 1px solid rgba(29, 27, 23, 0.28); border-radius: 10px;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.45);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-ok, .form-error, .form-invalid { padding: 14px 16px; border-radius: 10px; font-size: 0.95rem; }
.form-ok { display: grid; gap: 2px; background: #E5F0E1; color: #1F4A1A; animation: formIn .3s var(--ease); }
.form-invalid { background: #FBF0CF; color: #5A4300; }
.contact-form button[aria-busy="true"] { opacity: .7; cursor: progress; }
@keyframes formIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Pie */
.footer { background: var(--night); color: var(--on-night-2); padding: 56px 0 32px; font-size: 0.95rem; }
.footer .brand-word { color: var(--on-night); margin-bottom: 6px; }
.footer-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--on-night); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-credit { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(244, 239, 230, 0.15); font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .nav { display: none; }
    .menu-btn { display: block; }
    .help-grid { grid-template-columns: 1fr 1fr; }
    .help-item:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 820px) {
    .split { grid-template-columns: 1fr; }
    .split-reverse .split-media { order: 0; }
    .steps { grid-template-columns: 1fr; }
    .team-split .split-media { position: static; aspect-ratio: 4 / 3; }
    .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
    .gallery .g-wide { grid-column: span 2; grid-row: span 1; }
    .route-photos { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
    .route-photos li { scroll-snap-align: start; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .header-donate { display: none; }
    .hero-facts { grid-template-columns: 1fr 1fr; row-gap: 16px; }
    .hero-actions .btn { flex: 1 1 auto; padding: 0 16px; }
    .help-grid { grid-template-columns: 1fr; }
    .help-item, .help-item + .help-item { padding: 24px 0; border-left: 0; }
    .sponsor-tile { width: 136px; height: 74px; padding: 12px 14px; }
    .sponsor-tile img { max-height: 42px; }
    .team-people { grid-template-columns: 1fr; }
    .person { flex-direction: row; align-items: flex-start; padding: 18px; }
    .person img { width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .sponsors-track { animation: none !important; width: auto; }
    .sponsors-mask { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .sponsor-group[aria-hidden="true"] { display: none; }
    .hero-slide { transition: none; transform: none; }
}

/* ===== DONAR ===== */
.hero-facts small { font-family: var(--sans); font-size: 0.85rem; color: var(--on-night-2); }
.donate-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

.dz-panel {
    position: relative; overflow: hidden;
    padding: clamp(28px, 4vw, 48px); border-radius: 20px;
    background: var(--night); color: var(--on-night);
}
.dz-label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.95rem; color: var(--on-night-2); }
.dz-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--wasp); box-shadow: 0 0 0 0 rgba(242, 183, 5, 0.6); animation: livePulse 2.2s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(242, 183, 5, 0.55); } 70% { box-shadow: 0 0 0 12px rgba(242, 183, 5, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 183, 5, 0); } }
.dz-amount {
    margin-top: 10px; font-family: var(--serif); font-weight: 500; line-height: 0.95;
    font-size: clamp(4rem, 10vw, 7.5rem); letter-spacing: -0.03em; color: var(--wasp);
    font-variant-numeric: tabular-nums;
}
.dz-goal { margin-top: 10px; font-size: 1.1rem; color: var(--on-night-2); }
.dz-goal strong { color: var(--on-night); }

.dz-bar {
    position: relative; height: 22px; margin: 44px 0 10px;
    background: rgba(244, 239, 230, 0.12); border-radius: 999px;
}
.dz-fill, .dz-preview {
    position: absolute; top: 0; bottom: 0; left: 0; border-radius: 999px;
    background-color: var(--wasp);
    background-image: repeating-linear-gradient(-45deg, rgba(25, 23, 20, 0.85) 0 7px, transparent 7px 18px);
    background-size: 25.5px 25.5px;
    animation: waspStripes 1.6s linear infinite;
}
.dz-fill { width: 0; z-index: 2; transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1); min-width: 22px; }
.dz-preview { z-index: 1; width: 0; opacity: 0.38; transition: left 1.8s cubic-bezier(0.16, 1, 0.3, 1), width .45s var(--ease); }
@keyframes waspStripes { to { background-position: 25.5px 0; } }
.dz-marker {
    position: absolute; top: 50%; left: 0; z-index: 3; width: 44px; height: 44px;
    transform: translate(-50%, -50%); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
    transition: left 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.dz-marker.is-bump { animation: markerBump .6s var(--ease); }
@keyframes markerBump { 0% { transform: translate(-50%, -50%) rotate(0); } 40% { transform: translate(-50%, -64%) rotate(-14deg); } 100% { transform: translate(-50%, -50%) rotate(0); } }
.dz-scale { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--on-night-2); font-variant-numeric: tabular-nums; }

.dz-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 36px 0 0; padding-top: 22px; border-top: 1px solid rgba(244, 239, 230, 0.18); }
.dz-stats dt { font-size: 0.8rem; font-weight: 600; color: var(--on-night-2); }
.dz-stats dd { margin: 2px 0 0; font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); font-variant-numeric: tabular-nums; }
.dz-updated { margin-top: 18px; font-size: 0.8rem; color: var(--on-night-2); }

.dz-form h2 { margin-bottom: 14px; }
.dz-intro { color: var(--ink-2); font-size: 1.075rem; max-width: 46ch; }
.dz-amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 28px 0 0; padding: 0; border: 0; }
.dz-chip { position: relative; cursor: pointer; }
.dz-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dz-chip span {
    display: flex; align-items: center; justify-content: center; min-height: 58px;
    border: 1.5px solid rgba(29, 27, 23, 0.25); border-radius: 12px; background: var(--white);
    font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums;
    transition: background-color .2s, color .2s, border-color .2s, transform .18s var(--ease);
}
.dz-chip:hover span { border-color: var(--ink); transform: translateY(-2px); }
.dz-chip:active span { transform: scale(0.95); }
.dz-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--wasp); }
.dz-chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

.dz-custom { margin-top: 16px; display: grid; gap: 6px; }
.dz-custom label { font-weight: 700; font-size: 0.925rem; }
.dz-input { position: relative; }
.dz-input input {
    width: 100%; min-height: 58px; padding: 0 44px 0 16px;
    font: 700 1.15rem var(--sans); color: var(--ink); background: var(--white);
    border: 1.5px solid rgba(29, 27, 23, 0.25); border-radius: 12px;
    -moz-appearance: textfield; transition: border-color .2s, box-shadow .2s;
}
.dz-input input::-webkit-outer-spin-button, .dz-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dz-input input::placeholder { font-weight: 500; color: #7A746A; }
.dz-input input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.5); }
.dz-input input.is-set { border-color: var(--ink); background: #FFFBEB; }
.dz-input span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--ink-2); }

.dz-impact { margin-top: 20px; min-height: 1.6em; color: var(--ink-2); }
.dz-impact strong { color: var(--ink); }
.dz-go { position: relative; width: 100%; min-height: 62px; margin-top: 14px; font-size: 1.1rem; overflow: visible; }
.dz-go svg { transition: transform .25s var(--ease); }
.dz-go:hover svg { transform: translate(3px, -3px); }
.dz-go.is-pop { animation: goPop .45s var(--ease); }
@keyframes goPop { 0% { transform: scale(1); } 35% { transform: scale(1.035); } 100% { transform: scale(1); } }
.dz-small { margin-top: 12px; font-size: 0.9rem; color: var(--ink-2); }
.dz-small a { font-weight: 700; color: var(--ink); text-underline-offset: 4px; }

.dz-spark { position: fixed; z-index: 90; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; background: var(--wasp); }
.dz-spark:nth-child(3n) { background: var(--ink); }

@media (max-width: 900px) {
    .donate-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .dz-amounts { grid-template-columns: repeat(3, 1fr); }
    .dz-stats { grid-template-columns: 1fr 1fr; }
    .dz-stats div:last-child { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
    .dz-fill, .dz-preview { animation: none; }
    .dz-live-dot { animation: none; }
}

/* ===== HERO EN MÓVIL: foto arriba entera, texto debajo ===== */
@media (max-width: 900px) {
    .hero-slide { object-position: var(--m-pos, center); }
}
@media (max-width: 640px) {
    .hero { display: block; min-height: 0; padding: 0 0 40px; }
    .hero-slides { position: relative; inset: auto; margin-top: var(--header-h); height: 56svh; min-height: 320px; z-index: 0; }
    .hero-slides::after {
        content: ''; position: absolute; inset: 0;
        background: linear-gradient(180deg, rgba(25, 23, 20, 0) 0%, rgba(25, 23, 20, 0) 78%, var(--night) 100%);
    }
    .hero::after { display: none; }
    .hero-inner { position: relative; z-index: 1; margin-top: -28px; }
    .hero-title { font-size: clamp(2.1rem, 9.5vw, 2.6rem); max-width: none; }
    .hero-lead { margin-top: 14px; }
    .hero-actions { margin-top: 22px; }
    .hero-facts { margin-top: 28px; padding-top: 16px; }
    .hero-facts dd { font-size: 1.3rem; }
}

/* Hero: texto largo en ordenador, corto en móvil */
.hero-lead-short { display: none; }
@media (max-width: 640px) {
    .hero-lead-short { display: block; }
    .hero-lead-long { display: none; }
}

/* Encuadre de cada foto del hero en móvil (por orden) */
.hero-slide:nth-child(1) { --m-pos: 74% 50%; }
.hero-slide:nth-child(2) { --m-pos: 58% 50%; }
.hero-slide:nth-child(3) { --m-pos: 84% 50%; }
.hero-slide:nth-child(4) { --m-pos: 46% 50%; }

/* Logo sobre fondo oscuro propio */
.sponsor-tile-dark { background: #111111; border-color: #111111; padding: 6px 12px; }
.sponsor-tile-dark img { max-height: 70px; }

/* ===== Página 404 ===== */
.legal-page .site-header { position: sticky; }
.legal-back { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.legal-back:hover { text-decoration: underline; text-underline-offset: 5px; }
.legal { max-width: 760px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 8vw, 112px); }
.legal h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em; }
.legal .legal-date { margin-top: 10px; color: var(--ink-2); font-size: 0.95rem; }
.legal h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-top: 44px; }
.legal h3 { margin-top: 24px; }
.legal p, .legal li { color: var(--ink-2); max-width: 68ch; }
.legal p { margin-top: 14px; }
.legal ul { margin: 12px 0 0; padding-left: 20px; }
.legal li { margin-top: 6px; }
.legal a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.legal table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.legal th { color: var(--ink); }
.legal-table-wrap { overflow-x: auto; }

/* Lo oculto se queda oculto, aunque una clase le dé display */
[hidden] { display: none !important; }

/* ===== BOTONES DE DONAR: brillo que los cruza ===== */
.btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.btn-shine::after {
    content: ''; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    transform: skewX(-18deg); animation: btnShine 4.2s ease-in-out infinite;
}
@keyframes btnShine { 0%, 62% { left: -60%; } 100% { left: 130%; } }

.btn-donate-hero { min-height: 56px; padding: 0 26px; font-size: 1.05rem; box-shadow: 0 10px 28px rgba(242, 183, 5, 0.35); }
.btn-donate-hero img { width: 26px; height: 26px; transition: transform .5s var(--ease); }
.btn-donate-hero:hover img { transform: rotate(-20deg) scale(1.12); }
.btn-donate-hero:hover { box-shadow: 0 14px 34px rgba(242, 183, 5, 0.5); transform: translateY(-2px); }

/* ===== BOTÓN FLOTANTE DE DONAR ===== */
.donate-fab {
    position: fixed; right: 24px; bottom: 24px; z-index: 60;
    display: inline-flex; align-items: center; gap: 12px;
    padding: 8px 22px 8px 8px; min-height: 64px; border-radius: 999px;
    background: var(--night); color: var(--on-night); text-decoration: none;
    box-shadow: 0 14px 34px rgba(25, 23, 20, 0.35), 0 0 0 2px rgba(242, 183, 5, 0.9);
    opacity: 0; transform: translateY(24px) scale(0.9); pointer-events: none;
    transition: opacity .35s var(--ease), transform .5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .25s;
}
.donate-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.donate-fab.is-visible.is-buzz { animation: fabBuzz .9s ease-in-out; }
.donate-fab:hover { box-shadow: 0 18px 40px rgba(25, 23, 20, 0.42), 0 0 0 3px var(--wasp); }
.donate-fab:hover .fab-ring img { transform: rotate(-18deg) scale(1.08); }
.donate-fab:focus-visible { outline: 3px solid var(--wasp); outline-offset: 4px; }
.fab-ring { position: relative; width: 48px; height: 48px; flex: none; }
.fab-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.fab-track { fill: none; stroke: rgba(244, 239, 230, 0.18); stroke-width: 4; }
.fab-progress {
    fill: none; stroke: var(--wasp); stroke-width: 4; stroke-linecap: round;
    stroke-dasharray: 131.95; stroke-dashoffset: 131.95;
    transition: stroke-dashoffset 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fab-ring img { position: absolute; top: 9px; left: 9px; width: 30px; height: 30px; transition: transform .4s var(--ease); }
.fab-text { display: flex; flex-direction: column; line-height: 1.15; }
.fab-text strong { font-size: 1.05rem; font-weight: 800; color: var(--wasp); }
.fab-text small { font-size: 0.78rem; color: var(--on-night-2); font-variant-numeric: tabular-nums; }
@keyframes fabBuzz {
    0%, 100% { transform: none; }
    10% { transform: translateX(-2px) rotate(-3deg); }
    20% { transform: translateX(2px) rotate(3deg); }
    30% { transform: translateX(-2px) rotate(-2deg); }
    40% { transform: translateX(2px) rotate(2deg); }
    50% { transform: translateY(-4px); }
}
@media (max-width: 640px) {
    .donate-fab { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); min-height: 56px; padding-right: 18px; }
    .fab-ring { width: 42px; height: 42px; }
    .fab-ring img { top: 8px; left: 8px; width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    .btn-shine::after { display: none; }
    .donate-fab { transition: opacity .2s; transform: none; }
}

/* ===== INSTAGRAM ===== */
.social-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px; color: var(--ink);
    transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.social-link:hover { background: var(--ink); color: var(--wasp); transform: translateY(-1px); }
.ig-strip { background: var(--night); color: var(--on-night); padding: 28px 0; }
.ig-strip-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.ig-strip p { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; }
.ig-follow svg { flex: none; }
@media (max-width: 640px) {
    .social-link { display: none; }
    .ig-follow { width: 100%; }
}

/* Nuevo donante: el número se resalta un momento */
.dz-stats dd.is-new { animation: donorFlash 1.6s var(--ease); }
@keyframes donorFlash {
    0% { color: var(--on-night); transform: none; }
    20% { color: var(--wasp); transform: scale(1.25); }
    100% { color: var(--on-night); transform: none; }
}
.dz-stats dd { display: inline-block; transform-origin: left center; }

/* ===== PARA EMPRESAS: bloque pequeño al final ===== */
.biz { padding: clamp(44px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.biz-row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.biz-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.biz-head p { margin: 10px 0 18px; color: var(--ink-2); }
.biz-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; list-style: none; padding: 0; margin: 0; }
.biz-list li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.925rem; }
.biz-list strong { font-weight: 800; }
.biz-list span { color: var(--ink-2); }
@media (max-width: 820px) {
    .biz-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .biz-list { grid-template-columns: 1fr; }
}
