/* Event-site skin: rounded, buoyant, wavy. EVERY rule is gated on a class that config-loader.js adds to <html>
   only when the tenant's theme sets theme.skin.<flag> = true (ds-round / ds-depth / ds-waves / ds-icons).
   A tenant with no theme.skin never matches a selector here, so its pages render exactly as before.
   Radii come from the tenant's theme.layout (--radius, --radius-lg, --radius-pill); shadows from --shadow-soft/-lift;
   all colours from the tenant's tokens. Used by public/index.html, rules.html, sponsors.html, inscripcion.html. */

/* ---------- ROUNDED: pills for buttons/badges, big soft corners for cards ---------- */
html.ds-round{--sk-r:var(--radius,16px);--sk-rl:var(--radius-lg,24px);--sk-rp:var(--radius-pill,999px);}
html.ds-round :is(.btn-hero,.btn-nav,.btn-primary,.btn-outline,.rulebook-btn,.hero-badge,.reg-badge,.tier-badge,.friend-chip,.nav-lang,.gold-link,.insc-btn,.insc-chip,.hero-live,.rulebook-ico-wrap){border-radius:var(--sk-rp)!important;}
html.ds-round :is(.hero-dates,.sp-card,.sp-gi,.sp-fish,.sch-card,.reg-cta,.rulebook-card,.platinum-card,.gold-card,.insc-card,.insc-cta,.insc-step,.rule-sec-card){border-radius:var(--sk-rl)!important;overflow:hidden;}
html.ds-round :is(.platinum-logo,.gold-logo){border-radius:0;}
html.ds-round nav.ds-nav{border-radius:0 0 var(--sk-rl) var(--sk-rl)!important;border-bottom:0;}
html.ds-round .mob-menu{border-radius:0 0 var(--sk-rl) var(--sk-rl)!important;border-bottom:0;}
html.ds-round .nav-links a{font-size:.9rem;letter-spacing:.01em;}
html.ds-round .nav-links a:hover{color:var(--highlight,var(--accent));}
html.ds-round .btn-nav{font-size:.8rem;padding:.7rem 1.6rem;}
html.ds-round .btn-hero,html.ds-round .btn-primary{letter-spacing:0;}
html.ds-round .footer-col h4{letter-spacing:.04em;}
/* a lone hero date chip / schedule card should not stretch across empty grid columns */
html.ds-round .hero-dates{display:flex;justify-content:center;width:fit-content;max-width:100%;}
html.ds-round .hero-dates .hdi{flex:1 1 auto;}
html.ds-round .sch-grid{grid-template-columns:repeat(auto-fit,minmax(280px,440px));justify-content:center;}
/* categories become a padded grid of cards instead of a full-bleed split */
html.ds-round .species{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.25rem;min-height:0;border:0;background:var(--species-section-bg,transparent);padding:5rem max(1.5rem,calc((100% - 1200px)/2)) 6.5rem;}
html.ds-round .sp-fish{min-height:230px;border:0!important;}
html.ds-round .sp-cat{color:var(--on-surface-muted,var(--tm));}
@media(max-width:768px){html.ds-round .species{padding:4rem 1.25rem 5.5rem;}html.ds-round .sp-fish{min-height:190px;}}

/* ---------- DEPTH: soft buoyant shadows + a little lift on hover ---------- */
html.ds-depth{--sk-sh:var(--shadow-soft,0 12px 32px -14px rgba(11,58,92,.35),0 3px 8px rgba(11,58,92,.08));--sk-shl:var(--shadow-lift,0 18px 38px -14px rgba(11,58,92,.45),0 4px 10px rgba(11,58,92,.1));}
html.ds-depth :is(.sp-card,.sp-fish,.sch-card,.reg-cta,.rulebook-card,.platinum-card,.gold-card,.insc-card,.insc-step,.hero-dates){box-shadow:var(--sk-sh);transition:transform .25s ease,box-shadow .25s ease;}
html.ds-depth :is(.sp-card,.sp-fish,.sch-card,.platinum-card,.gold-card,.insc-card,.insc-step):hover{transform:translateY(-4px);box-shadow:var(--sk-shl);}
html.ds-depth :is(.btn-hero,.btn-nav,.btn-primary,.insc-btn){box-shadow:0 10px 20px -10px rgba(0,0,0,.45);transition:transform .2s ease,box-shadow .2s ease,background .15s,color .15s;}
html.ds-depth :is(.btn-hero,.btn-nav,.btn-primary,.insc-btn):hover{transform:translateY(-2px);box-shadow:0 14px 24px -10px rgba(0,0,0,.5);}
html.ds-depth nav.ds-nav{box-shadow:0 10px 30px -14px rgba(11,58,92,.6);}
html.ds-depth .ticker-wrap{box-shadow:0 8px 18px -10px rgba(0,0,0,.4);}

/* ---------- WAVES: section dividers that echo the logo's wave lines ----------
   Each section grows a wave (its own background colour, via --wv) over the bottom of the section above, plus a
   fainter mirrored wave behind it. Pure CSS mask, so the colour is themeable and there is no extra markup. */
html.ds-waves{--sk-wave:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30C100 5 200 5 300 30S500 55 600 30 800 5 900 30 1100 55 1200 30V60H0Z'/%3E%3C/svg%3E");
  --sk-wline:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M3 6q7.500-8 15 0t15 0 15 0 15 0 15 0 15 0 15 0 15 0' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");}
html.ds-waves :is(.about,.sponsors,.species,.schedule,.register,.wave-top,footer){position:relative;}
html.ds-waves .about{--wv:var(--surface-low);}
html.ds-waves .sponsors,html.ds-waves .schedule{--wv:var(--section-alt-bg,var(--surface-low));}
html.ds-waves .species{--wv:var(--species-section-bg,var(--surface-low));}
html.ds-waves .register{--wv:var(--surface-low);}
html.ds-waves footer{--wv:var(--footer-bg,var(--bg));margin-top:0;}
html.ds-waves :is(.about,.sponsors,.species,.schedule,.register,.wave-top,footer)::before,
html.ds-waves :is(.about,.sponsors,.species,.schedule,.register,.wave-top,footer)::after,
html.ds-waves .hero-wave::after{content:'';position:absolute;left:0;right:0;pointer-events:none;background:var(--wv);-webkit-mask:var(--sk-wave) 0 100%/100% 100% no-repeat;mask:var(--sk-wave) 0 100%/100% 100% no-repeat;}
html.ds-waves :is(.about,.sponsors,.species,.schedule,.register,.wave-top,footer)::before{top:-47px;height:48px;z-index:30;}
html.ds-waves :is(.about,.sponsors,.species,.schedule,.register,.wave-top,footer)::after{top:-64px;height:64px;z-index:29;opacity:.38;transform:scaleX(-1);}
/* inner pages (rules / sponsors / inscripcion): the hero carries its own bottom wave, in the next section's colour */
html.ds-waves .hero-wave{position:relative;}
html.ds-waves .hero-wave::after{bottom:-1px;top:auto;height:52px;background:var(--wave-next,var(--bg));z-index:1;}
html.ds-waves .hero-wave{padding-bottom:110px;}
/* the hero ticker floats above the wave like a buoy banner instead of being cut by it */
html.ds-waves .ticker-wrap{bottom:64px;left:1.5rem;right:1.5rem;border-radius:var(--sk-rp,999px)!important;}
html.ds-waves .hero-content{padding-bottom:9.5rem;}
/* wavy underline under the big section titles (the logo's wave line) */
html.ds-waves :is(.about-title,.sec-title,.sch-title,.reg-title,.tier-title,.insc-h)::after{content:'';display:block;width:96px;height:12px;margin:1rem 0 0;background:var(--accent);-webkit-mask:var(--sk-wline) center/100% 100% no-repeat;mask:var(--sk-wline) center/100% 100% no-repeat;}
html.ds-waves :is(.about-title,.sec-title)::after{margin-left:auto;margin-right:auto;}
html.ds-waves .footer-logo{margin-top:.5rem;}
@media(max-width:768px){html.ds-waves .ticker-wrap{left:.75rem;right:.75rem;bottom:56px;}html.ds-waves .hero-content{padding-bottom:9rem;}}

/* ---------- ICONS (markup added only when ds-icons; see site-motifs.js) ---------- */
.ds-ico{display:inline-block;flex-shrink:0;vertical-align:middle;}
.sp-ico{margin-bottom:auto;color:var(--ico-color,currentColor);}
.sp-ico .ds-ico{width:54px;height:54px;}
.ds-ico-inline{width:1.1em;height:1.1em;margin-right:.45em;margin-top:-.15em;}
.about-ico{display:flex;justify-content:center;margin-bottom:1rem;color:var(--primary);}
.about-ico .ds-ico{width:72px;height:72px;}
.hero-logo{display:block;margin:0 auto 1.25rem;height:clamp(88px,16vw,150px);width:auto;max-width:80%;}
/* swimming fish behind the hero text: decorative, slow, off for reduced-motion users */
.hero-deco{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden;color:#fff;}
.hero-deco .ds-ico{position:absolute;opacity:.16;stroke-width:2;animation:ds-swim 26s linear infinite;}
.hero-deco .ds-ico:nth-child(1){width:84px;height:84px;top:24%;left:-110px;}
.hero-deco .ds-ico:nth-child(2){width:56px;height:56px;top:58%;left:-80px;animation-duration:34s;animation-delay:-12s;}
.hero-deco .ds-ico:nth-child(3){width:110px;height:110px;top:40%;left:-140px;animation-duration:44s;animation-delay:-24s;opacity:.1;}
@keyframes ds-swim{0%{transform:translateX(0) translateY(0);}50%{transform:translateX(60vw) translateY(-18px);}100%{transform:translateX(120vw) translateY(0);}}
html.ds-depth .sp-fish:hover .sp-ico .ds-ico{animation:ds-bob 1.1s ease-in-out infinite;}
@keyframes ds-bob{0%,100%{transform:translateY(0) rotate(0);}50%{transform:translateY(-6px) rotate(-6deg);}}
@media (prefers-reduced-motion:reduce){.hero-deco .ds-ico,html.ds-depth .sp-fish:hover .sp-ico .ds-ico{animation:none;}.hero-deco{display:none;}html.ds-depth *{transition:none!important;}}

/* ---------- inner-page cards (rules / inscripcion) ---------- */
html.ds-round .rule-sec{background:var(--surface-low,var(--surface-mid));border:1px solid var(--bd);border-radius:var(--sk-rl);padding:1.6rem 2rem;margin-bottom:1.25rem;}
html.ds-round .rule-sec:first-child{border-top:1px solid var(--bd);}
html.ds-depth .rule-sec{box-shadow:var(--sk-sh);}
html.ds-round .rules{padding-top:70px;}
html.ds-waves footer{border-top:0;}

/* hero: a long director-written headline must not wrap to four giant lines; date-chip labels use the hero highlight */
html.ds-round .hero-title{font-size:clamp(2.3rem,6vw,5rem);line-height:1.04;margin-bottom:2rem;}
html.ds-round .hdi .dl{color:var(--hero-hi,var(--accent));}
/* the placeholder globe/mail/pin glyphs in the footer link nowhere; real social icons (svg) are unaffected */
html.ds-icons .footer-icons .material-symbols-outlined{display:none;}
footer [hidden]{display:none!important;}
html.ds-waves .hero-wave{border-bottom:0;}
html.ds-waves .sp-cta-section{border-top:0;}
