/* Tennis Date by Date And Play · estilos.
   Colores sacados del flyer. Para cambiarlos, toca solo este bloque. */
:root {
  --cream: #F4F1E8;      /* fondo */
  --paper: #FBFAF5;      /* tarjetas */
  --green: #1E5B3C;      /* texto principal y bloques */
  --green-deep: #174A30;
  --ball: #D9F04A;       /* pelota */
  --pink: #D73A6F;       /* acento (texto grande y dibujo) */
  --pink-deep: #C2305F;  /* fondo rosa con texto blanco (AA) */
  --pink-ink: #B92B5B;   /* texto rosa pequeño (AA) */
  --ink: #1A1D1B;
  --muted: #55605A;
  --line: #D9D4C5;
  --radius: 22px;
  --max: 1120px;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-display: swap; font-weight: 100 900; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage.woff2") format("woff2"); font-display: swap; font-weight: 200 800; font-stretch: 75% 100%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--pink-ink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--green); margin: 0 0 .5em; }
h2 { font: 800 clamp(2rem, 6vw, 3rem)/1.02 var(--display); letter-spacing: -0.02em; }
h3 { font: 700 1.3rem/1.2 var(--display); letter-spacing: -0.01em; }
.h-sm { font-size: clamp(1.5rem, 4vw, 2rem); }
p { margin: 0 0 1em; }
.small { font-size: .92rem; color: var(--muted); }
.lead { font-size: 1.15rem; max-width: 52ch; color: var(--muted); }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ball); color: var(--green); padding: .6rem 1rem; z-index: 20; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- barra superior ---------- */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem max(16px, calc((100% - var(--max)) / 2)); background: rgba(244, 241, 232, .92); border-bottom: 1px solid transparent; }
@supports (backdrop-filter: blur(8px)) { .topbar { background: rgba(244, 241, 232, .78); backdrop-filter: blur(10px); } }
.brand { display: inline-flex; gap: .5rem; align-items: center; text-decoration: none; color: var(--green); font: 800 1.2rem/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.brand-ball { width: 26px; height: 26px; flex: none; }
.topnav { display: flex; align-items: center; gap: .5rem; }
.lang { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-decoration: none; color: var(--green); border-radius: 999px; }
.lang:hover { background: var(--paper); color: var(--green); }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px; background: var(--green); color: var(--cream); font: 700 1rem/1.2 var(--sans); text-decoration: none; border: 2px solid var(--green); text-align: center; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { background: var(--green-deep); color: #fff; transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: 1rem 2rem; font-size: 1.1rem; }
.btn-off { background: transparent; color: var(--muted); border: 2px dashed var(--line); cursor: not-allowed; font-weight: 600; }
.btn-off:hover { background: transparent; color: var(--muted); transform: none; }
.btn-light { background: #fff; color: var(--pink-deep); border-color: #fff; }
.btn-light:hover { background: var(--cream); color: var(--pink-deep); }
.private .btn-off { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-wa { flex-direction: column; gap: .1rem; }
.btn-wa span { font-weight: 500; font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* ---------- hero (cara del flyer) ---------- */
.hero { max-width: 760px; margin: 0 auto; padding: 1.5rem 16px 3.5rem; text-align: center; }
.eyebrow { font: 800 .9rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--green); margin: 1rem 0 .25rem; }
.heart { display: block; width: min(430px, 80%); height: auto; margin: .25rem auto 1rem; overflow: visible; }
.hero h1 { font: 900 clamp(4.2rem, 19vw, 8.6rem)/.86 var(--sans); letter-spacing: -0.045em; text-transform: uppercase; margin: 0 0 1.25rem; }
.hosted { font: 700 clamp(1.25rem, 4.2vw, 1.6rem)/1.3 var(--sans); letter-spacing: -0.01em; color: var(--ink); margin-bottom: 1.75rem; }
.hosted em { font-style: normal; color: var(--pink); }
.card-green { background: var(--green); color: #fff; border-radius: var(--radius); padding: 1.6rem 1.6rem 1.5rem; text-align: left; display: grid; gap: 1.1rem; box-shadow: 0 18px 40px -24px rgba(30, 91, 60, .55); }
@media (min-width: 640px) { .card-green { grid-template-columns: 1fr auto; align-items: end; padding: 2rem 2.1rem; } }
.points { list-style: none; margin: 0; padding: 0; font-size: 1.12rem; line-height: 1.45; display: grid; gap: .35rem; }
.points strong { font-weight: 800; }
.cta { display: inline-flex; align-items: center; gap: .35em; font: 800 1.3rem/1.1 var(--display); color: var(--ball); text-decoration: none; min-height: 48px; }
.cta:hover { color: #fff; }

/* animación del corazón (solo si la persona no pide movimiento reducido) */
@media (prefers-reduced-motion: no-preference) {
  .heart .b { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; transform-box: fill-box; transform-origin: center; }
  .heart .balls:first-of-type .b:nth-child(odd) { animation-delay: .05s; }
  .heart .balls .b:nth-child(2) { animation-delay: .1s; } .heart .balls .b:nth-child(3) { animation-delay: .15s; }
  .heart .balls .b:nth-child(4) { animation-delay: .2s; } .heart .balls .b:nth-child(5) { animation-delay: .25s; }
  .heart .balls .b:nth-child(6) { animation-delay: .3s; } .heart .balls .b:nth-child(7) { animation-delay: .35s; }
  .heart .balls .b:nth-child(8) { animation-delay: .4s; } .heart .balls .b:nth-child(9) { animation-delay: .45s; }
  .heart .balls .b:nth-child(10) { animation-delay: .5s; }
  .heart .shaft { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .55s .65s ease-out forwards; }
  .heart .tip, .heart .fletch { opacity: 0; animation: fade .2s 1.1s forwards; }
}
@keyframes pop { from { opacity: 0; scale: .3; } to { opacity: 1; scale: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- bloques ---------- */
.block { max-width: var(--max); margin: 0 auto; padding: 3.5rem 16px; }
@media (min-width: 760px) { .block { padding: 5rem 32px; } }
.section-head { display: grid; gap: .25rem; margin-bottom: 1.75rem; }
.section-head p { color: var(--muted); max-width: 56ch; margin: 0; }
@media (min-width: 860px) { .section-head { grid-template-columns: auto 1fr; align-items: end; gap: 2rem; } .section-head h2 { margin: 0; } }

/* fechas + clases privadas */
.dates-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .dates-grid { grid-template-columns: 1.7fr 1fr; align-items: start; } }
.editions { display: grid; gap: 1rem; }
.edition { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.edition-head { display: flex; gap: 1rem; align-items: center; margin-bottom: .9rem; }
.edition h3 { margin: 0 0 .15rem; font-size: 1.45rem; }
.edition .meta { margin: 0; color: var(--muted); }
.stamp { flex: none; width: 74px; height: 74px; border-radius: 50%; background: var(--ball); border: 2px solid var(--green); display: grid; place-content: center; text-align: center; color: var(--green); line-height: 1; }
.stamp .d { font: 800 1.9rem/1 var(--display); }
.stamp .m { font: 800 .78rem/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; margin-top: .15rem; }
.stamp.tbc .m { font-size: .9rem; }
.edition-price { margin: 0 0 1rem; color: var(--muted); }
.edition-price strong { color: var(--green); font-size: 1.15rem; }
.slots { display: grid; gap: .6rem; }
@media (min-width: 520px) { .slots { grid-template-columns: 1fr 1fr; } }
.slot { display: grid; gap: .35rem; }
.slot .btn { width: 100%; }
.waitlist { text-align: center; font-weight: 700; padding: .35rem; color: var(--pink-ink); }

.private { background: var(--pink-deep); color: #fff; border-radius: var(--radius); padding: 1.6rem; position: relative; overflow: hidden; }
.private::after { content: ""; position: absolute; right: -36px; bottom: -36px; width: 120px; height: 120px; border-radius: 50%; border: 14px solid rgba(255,255,255,.12); }
.private h3 { color: #fff; font-size: clamp(1.35rem, 3.5vw, 1.6rem); }
.private .small { color: #FBE3EB; }
.private-btns { display: grid; gap: .6rem; position: relative; z-index: 1; }
.pause { display: flex; gap: .6rem; align-items: center; margin: 1.75rem 0 .5rem; font-weight: 700; color: var(--green); }
.pause-ball { width: 22px; height: 22px; flex: none; }
.terms { margin-top: .5rem; }

/* cómo funciona + anfitriones (dorso del flyer) */
.how { display: grid; gap: 3rem; }
@media (min-width: 900px) { .how { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.1rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.steps .n { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ball); border: 2px solid var(--green); color: var(--green); font: 800 1.1rem/1 var(--display); }
.steps p { margin: .45rem 0 0; font-size: 1.12rem; }
.steps strong { color: var(--ink); }
.hosts-wrap { border-top: 2px solid var(--green); padding-top: 1.5rem; }
@media (min-width: 900px) { .hosts-wrap { border-top: 0; border-left: 2px solid var(--green); padding: 0 0 0 3rem; } }
.hosts { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
.host h3 { margin: .75rem 0 .1rem; font: 800 1.15rem/1.2 var(--sans); color: var(--ink); }
.host .role { color: var(--muted); margin: 0 0 .5rem; }
.host p:last-child { font-size: .95rem; }
.host img { border-radius: 18px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.monogram { position: relative; aspect-ratio: 1; border-radius: 18px; background: var(--paper); border: 1.5px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.monogram span { position: relative; font: 800 clamp(2.6rem, 9vw, 4rem)/1 var(--display); color: var(--green); letter-spacing: -0.04em; }
.mono-ball { position: absolute; right: 9%; bottom: 9%; width: 26%; height: 26%; }
.exes { font-style: italic; color: var(--ink); margin-top: 1.25rem; font-size: 1.05rem; }
.exes strong { font-weight: 800; }

/* detalles (banda verde) */
.band { max-width: none; background: var(--green); color: #fff; }
.band-in { max-width: calc(var(--max) - 64px); margin: 0 auto; }
.band h2 { color: #fff; }
.details { display: grid; gap: 1rem; margin: 1.5rem 0 0; }
@media (min-width: 760px) { .details { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .details { grid-template-columns: repeat(3, 1fr); } }
.details > div { border-top: 2px solid rgba(255,255,255,.22); padding-top: .9rem; }
.details dt { font: 800 .78rem/1 var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--ball); margin-bottom: .55rem; }
.details dd { margin: 0; }
.details ul { margin: 0; padding-left: 1.1rem; }
.details .amount { font: 800 2.4rem/1 var(--display); color: var(--ball); }
.band .note { font-weight: 700; margin: .6rem 0 0; }
.band .pendiente { color: #6A1F00; }

/* normas y FAQ */
.rules-wrap { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .rules-wrap { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.rules li { background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: .85rem 1.1rem .85rem 2.9rem; position: relative; font-weight: 600; }
.rules li::before { content: ""; position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 16px; height: 16px; border-radius: 50%; background: var(--ball); border: 2px solid var(--green); }
.faq { display: grid; gap: .6rem; margin-top: 1.5rem; max-width: 820px; }
.faq details { background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; min-height: 48px; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 1.4rem/1 var(--display); color: var(--pink); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.25rem 1.1rem; margin: 0; color: var(--muted); }
.again { margin-top: 2.5rem; }

/* gracias / 404 */
.thanks { text-align: center; max-width: 680px; }
.heart-sm { width: min(240px, 70%); margin: 0 auto 1rem; }
.thanks h1 { font: 900 clamp(2.8rem, 11vw, 4.4rem)/.95 var(--sans); letter-spacing: -0.045em; text-transform: uppercase; }
.thanks h1 span { display: block; font: 800 .42em/1.2 var(--display); text-transform: none; letter-spacing: 0; color: var(--pink-ink); margin-top: .35em; }
.thanks .when { font-size: 1.15rem; color: var(--green); }
.thanks .steps { text-align: left; max-width: 460px; margin: 2rem auto; }
.steps-sm p { font-size: 1rem; }

/* legal */
.legal { max-width: 820px; }
.legal h1 { font: 800 clamp(2.2rem, 7vw, 3.2rem)/1.02 var(--display); letter-spacing: -0.02em; }
.legal h2 { font-size: 1.45rem; margin-top: 2.25rem; }
.legal table { border-collapse: collapse; width: 100%; font-size: .95rem; display: block; overflow-x: auto; background: var(--paper); border-radius: 12px; }
.legal th, .legal td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.legal th { background: #EEEADD; }

/* pie */
.footer { background: var(--green-deep); color: #E6EEE9; padding: 3rem 16px 2.5rem; text-align: center; }
.footer-in { max-width: var(--max); margin: 0 auto; }
.footer a { color: #fff; }
.footer a:hover { color: var(--ball); }
.footer-brand { display: inline-flex; gap: .6rem; align-items: center; font: 800 1.25rem/1.1 var(--display); color: #fff; }
.footer-brand small { font: 600 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ball); margin-left: .35rem; }
.footer ul { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; justify-content: center; }
.footer li a { display: inline-block; padding: .5rem 0; }
.footer .small { color: #B9CBC0; }

mark.pendiente { background: #FFD9C7; color: #6A1F00; padding: 0 .3em; border-radius: 4px; font: 700 .82em/1.4 var(--sans); letter-spacing: 0; text-transform: none; }
