/* Marca Enforma Inspira: Poppins, rojo #F6383B, grises neutros. */
:root {
  --red: #F6383B; --red2: #D92A2E; --pink: #FCE3E3;
  --ink: #2F2F2F; --dark: #474747; --grey: #878787;
  --line: #E1E1E1; --card: #F0F0F0; --off: #F9F9F9;
  --r: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: Poppins, Arial, sans-serif; color: var(--ink); background: var(--off); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--grey); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--red); color: #fff; font-weight: 600; font-size: 15px; line-height: 1; padding: 15px 26px; border-radius: 99px; border: 2px solid var(--red); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--red2); border-color: var(--red2); }
.btn-sm { padding: 12px 20px; font-size: 14px; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-white { background: #fff; color: var(--red); border-color: #fff; }
.btn-white:hover { background: var(--off); border-color: var(--off); }
.btn-white-line { background: transparent; color: #fff; border-color: #fff; }
.btn-white-line:hover { background: #fff; color: var(--red); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 20; background: var(--off); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px; }
.brand img { width: auto; height: 52px; }
.nav nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav nav a { text-decoration: none; color: var(--dark); }
.nav nav a:hover { color: var(--red); }

/* Cabeceras de sección, como en los documentos del club */
.sec { padding-block: clamp(64px, 9vw, 112px); }
.sec-white { background: #fff; }
.sec-head { margin-bottom: 40px; }
h2 { margin-top: 2px; font-weight: 700; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; color: var(--red); letter-spacing: -.5px; }
h3 { font-weight: 700; font-size: 20px; line-height: 1.25; }

/* Portada */
.hero { padding-block: clamp(56px, 9vw, 120px); }
.hero h1 { font-weight: 800; font-size: clamp(38px, 9vw, 128px); line-height: .98; letter-spacing: -2px; }
.hero h1 span { color: var(--red); }
.lead { margin-top: 22px; font-weight: 500; font-size: clamp(20px, 2.2vw, 26px); color: var(--dark); }
.lead b { color: var(--red); font-weight: 700; }
.intro { margin-top: 10px; max-width: 620px; color: var(--grey); }
.ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Cifras */
.facts { background: var(--off); }
.facts-in { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts p { padding: 28px 0 28px 28px; border-left: 1px solid var(--line); }
.facts p:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font-weight: 800; font-size: clamp(32px, 4vw, 52px); line-height: 1; color: var(--red); letter-spacing: -1px; }
.facts span { display: block; margin-top: 6px; font-size: 15px; color: var(--dark); }

/* Enforma Inspira */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-txt p { margin-top: 16px; color: var(--dark); }
.about-txt p:first-child { margin-top: 0; }
.about-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); }
.tagline { margin-top: 28px !important; font-weight: 700; font-size: 20px; letter-spacing: 1px; color: var(--red) !important; }

/* El reto */
.reto { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.reto-txt p { margin-top: 16px; color: var(--dark); }
.reto-txt p:first-child { margin-top: 0; }
.lede { font-weight: 600; font-size: 20px; line-height: 1.45; color: var(--ink) !important; }
.reto-photo { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--r); }
.cards3 { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border-radius: var(--r); padding: 26px; }
.sec-white .card { background: var(--off); border: 1px solid var(--line); }
.card p { margin-top: 6px; color: var(--dark); font-size: 15px; }
.card-red { background: var(--red); color: #fff; }
.card-red p { color: #fff; }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.num { display: block; font-weight: 800; font-size: 40px; line-height: 1; color: var(--red); margin-bottom: 14px; }

/* Actividades */
.acts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.act { display: flex; flex-direction: column; background: var(--off); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; transition: border-color .2s; }
.act-img { width: calc(100% + 52px); max-width: none; margin: -26px -26px 22px; height: auto; aspect-ratio: 720/520; object-fit: cover; border-radius: var(--r) var(--r) 0 0; }
.act:hover { border-color: var(--red); }
.act-date { display: flex; align-items: baseline; gap: 8px; }
.act-date b { font-weight: 800; font-size: 48px; line-height: 1; color: var(--red); }
.act-date span { font-weight: 700; font-size: 14px; letter-spacing: 2px; color: var(--ink); }
.act h3 { font-size: 22px; margin-top: 18px; }
.act-detail { margin-top: 4px; color: var(--dark); font-size: 15px; flex: 1; }
.act-cal, .acts-foot a { font-weight: 600; font-size: 14px; color: var(--red); text-underline-offset: 4px; }
.act-links { margin-top: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.acts-foot { margin-top: 24px; }

.act h3 a { text-decoration: none; }
.act h3 a:hover { color: var(--red); }
.act-img-link { display: block; }

/* Página de actividad */
.ev { padding-block: 32px clamp(56px, 8vw, 96px); }
.ev-back { display: inline-block; margin-bottom: 28px; font-weight: 600; font-size: 14px; color: var(--dark); text-decoration: none; }
.ev-back:hover { color: var(--red); }
.ev-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ev-img { width: 100%; height: auto; border-radius: var(--r); }
.ev-head h1 { margin-top: 14px; font-weight: 800; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -1px; }
.ev-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ev-tags li { padding: 7px 16px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.2; }
.ev-lead { margin-top: 18px; font-size: 20px; line-height: 1.45; font-weight: 500; color: var(--ink); }
.ev-count { margin-top: 16px; font-weight: 700; color: var(--red); }
.ev-count:empty { display: none; }
.ev-body { display: grid; grid-template-columns: 1fr 360px; gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: clamp(48px, 7vw, 80px); }
.ev-block + .ev-block { margin-top: 40px; }
.ev-block h2 { font-size: 24px; color: var(--ink); letter-spacing: 0; }
.ev-block p { margin-top: 10px; color: var(--dark); font-size: 17px; }
.ev-block a { color: var(--red); font-weight: 600; text-underline-offset: 4px; }
.ev-prog { list-style: none; margin-top: 14px; border-top: 1px solid var(--line); }
.ev-prog li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.pg-time { font-weight: 700; color: var(--red); }
.ev-prog + .tbc { margin-top: 10px; font-size: 14px; }
.ev-list { margin-top: 12px; padding-left: 20px; color: var(--dark); font-size: 17px; }
.ev-list li { padding: 4px 0; }
.ev-list li::marker { color: var(--red); }
.ev-note { background: var(--pink); border-radius: var(--r); padding: 24px 26px; }
.ev-partner { margin-top: 12px; display: flex; align-items: center; gap: 18px; }
.ev-partner img { height: 56px; width: auto; }
.ev-partner p { margin-top: 0 !important; font-size: 15px !important; }
.ev-side { position: sticky; top: 92px; }
.ev-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.ev-data { border-top: 1px solid var(--line); margin-bottom: 20px; }
.ev-data div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ev-data dt { font-weight: 600; color: var(--grey); font-size: 14px; }
.ev-data dd { font-weight: 600; font-size: 15px; }
.ev-map { display: block; margin-top: 4px; font-size: 14px; color: var(--red); text-underline-offset: 3px; }
.tbc { color: var(--grey); font-weight: 400; }
.ev-btn { display: flex; width: 100%; }
.ev-btn + .ev-btn { margin-top: 10px; }
.acts-track { padding: 0; }
.acts-track .act { height: 100%; }

/* Reto Strava */
.strava-sec { background: #fff; padding-block: clamp(64px, 9vw, 112px); }
.strava { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.strava-logo { height: 30px; width: auto; margin-bottom: 18px; filter: grayscale(1); }
.strava-claim { margin-top: 18px; font-weight: 800; font-size: clamp(40px, 5.4vw, 68px); line-height: 1; letter-spacing: -1.5px; }
.strava-claim span { color: var(--red); }
.strava-lede { margin-top: 20px; font-size: 18px; color: var(--dark); max-width: 520px; }
.strava-steps { list-style: none; margin-top: 32px; display: grid; gap: 18px; }
.strava-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.strava-steps > li > b { font-weight: 800; font-size: 22px; color: var(--red); line-height: 1.3; }
.strava-steps h3 { font-size: 18px; }
.strava-steps p { margin-top: 2px; font-size: 15px; color: var(--grey); }
.feb { background: var(--pink); color: var(--ink); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); }
.feb-title { font-weight: 800; font-size: 22px; margin-bottom: 14px; }
.wk { display: grid; grid-template-columns: 82px repeat(7, 1fr); gap: 6px; margin-top: 6px; align-items: stretch; }
.wk-head span { text-align: center; font-weight: 700; font-size: 12px; color: var(--grey); padding-bottom: 4px; }
.wk-n { font-weight: 700; font-size: 12px; color: var(--grey); align-self: center; white-space: nowrap; }
.day { position: relative; aspect-ratio: 1; background: #fff; border-radius: 8px; display: grid; place-items: center; align-content: center; }
.day b { font-weight: 600; font-size: 15px; }
.day small { font-size: 9px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; line-height: 1; margin-top: 2px; }
.day.mark { background: var(--red); color: #fff; }
.wk:not(.wk-head) { padding: 4px; border-radius: 10px; }
.wk:not(.wk-head):hover { background: rgba(255,255,255,.6); }
.feb-note { margin-top: 16px; font-size: 13px; color: var(--dark); display: flex; align-items: center; gap: 8px; }

/* Publicaciones: scroll lateral, 3 por pantalla, fondo rosa del sol de las ilustraciones */
#publicaciones { background: var(--pink); }
.pub-strip { position: relative; }
.pub-track { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pub-track::-webkit-scrollbar { display: none; }
.pub-track li { scroll-snap-align: start; }
.pub-reel video { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r); background: var(--ink); display: block; }
.pub-track img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r); }
.pub-strip .nav-btn { top: 50%; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.pub-strip .nav-btn.prev { left: -18px; } .pub-strip .nav-btn.next { right: -18px; }
.pub-strip .nav-btn[disabled] { opacity: 0; pointer-events: none; }
.pub-foot { margin-top: 24px; }
.pub-foot:empty { display: none; }
.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }

/* Galería */
.gallery { columns: 3 280px; column-gap: 14px; }
.g-item { break-inside: avoid; margin-bottom: 14px; }
.g-item button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r); overflow: hidden; }
.g-item img { width: 100%; height: auto; transition: transform .4s; }
.g-item button:hover img { transform: scale(1.03); }
#lightbox { margin: auto; border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); overflow: visible; }
#lightbox::backdrop { background: rgba(20,20,20,.9); }
#lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 8px; }
#lightbox p { color: #fff; text-align: center; margin-top: 10px; font-size: 14px; }
#lightbox .nav-btn.prev { left: -52px; } #lightbox .nav-btn.next { right: -52px; }
.lb-close { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; font-size: 32px; cursor: pointer; }

/* Colaboradores: solo logos, en gris */
.partners { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px 64px; padding-top: 8px; }
.partners img { height: 64px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: .7; mix-blend-mode: multiply; transition: filter .25s, opacity .25s; }
.partners img:hover { filter: none; opacity: 1; }

.colabora { margin-top: 40px; text-align: center; }

/* Cierre */
.cta { background: var(--red); color: #fff; padding-block: clamp(64px, 9vw, 110px); }
.cta-in { text-align: center; }
.cta .big { font-weight: 500; font-size: clamp(28px, 4.2vw, 50px); line-height: 1.15; max-width: 820px; margin-inline: auto; }
.cta .big b { font-weight: 800; }
.cta .go { margin-top: 8px; font-weight: 800; font-size: clamp(28px, 4.2vw, 50px); }
.cta .ctas { justify-content: center; }
.cta .go a { color: #fff; text-decoration: none; border-bottom: 4px solid #fff; }
.cta .go a:hover { opacity: .85; }


@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

@media (max-width: 1040px) {
  .nav nav { display: none; }
  .nav-in .btn { margin-left: auto; }
  .cards4 { grid-template-columns: repeat(2, 1fr); }
  .ev-body { grid-template-columns: 1fr 320px; }
}
@media (max-width: 860px) {
  .hero, .reto, .reels, .strava, .about, .ev-hero, .ev-body { grid-template-columns: 1fr; }
  .ev-side { position: static; }
  .pub-track { grid-auto-columns: 70%; }
  .pub-strip .nav-btn { display: none; }
  .hero h1 { font-size: 10.5vw; }
  .cards3 { grid-template-columns: 1fr; }
  .acts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .facts-in { grid-template-columns: repeat(2, 1fr); }
  .facts p:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts p:nth-child(n+3) { border-top: 1px solid var(--line); }
  .brand span { display: none; }
  .cards4, .acts { grid-template-columns: 1fr; }
  .wk { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .wk-n { display: none; }
  .partners { gap: 28px 40px; }
  .partners img { height: 48px; }
  #lightbox .nav-btn.prev { left: 6px; } #lightbox .nav-btn.next { right: 6px; }
}

/* Añadir al calendario: abre la actividad ya creada en el calendario de cada persona */
.cal { position: relative; }
.cal summary { list-style: none; cursor: pointer; }
.cal summary::-webkit-details-marker { display: none; }
.act-cal summary { font-weight: 600; font-size: 14px; color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.ev-cal { margin-top: 10px; }
.ev-cal summary { display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; line-height: 1; padding: 15px 26px; border-radius: 99px; border: 2px solid var(--ink); transition: background .15s, color .15s; }
.ev-cal summary:hover, .ev-cal[open] summary { background: var(--ink); color: #fff; }
.cal-menu { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.ev-cal .cal-menu { right: 0; }
.cal-menu a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink); }
.cal-menu a:hover { background: var(--pink); }
.act:has(.cal[open]) { position: relative; z-index: 5; }
.acts-track .cal-menu { top: auto; bottom: calc(100% + 8px); }
.acts-track .act-img { width: calc(100% + 52px); aspect-ratio: 720/520; border-radius: var(--r) var(--r) 0 0; }

/* Compartir */
.ev-share { display: block; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.ev-share > p:first-child { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.share-row { display: flex; gap: 22px; align-items: center; }
.sh { display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; transition: color .15s, transform .15s; }
.sh:hover, .sh.done { color: var(--red); transform: translateY(-2px); }
.share-ok { min-height: 20px; margin-top: 8px; font-size: 13px; color: var(--red); font-weight: 500; }

/* Cómo llegar */
.ev-mapbox { margin-top: 14px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/9; background: var(--card); }
.ev-mapbox iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.35); }
.maps-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.maps-btns .btn { flex: 1 1 160px; }

/* Ajustes responsive (páginas de actividad y tiras) */
.ev-data { border-top: 0; }
.ev-data div:first-child { padding-top: 0; }
.ev-block .btn { font-weight: 600; text-decoration: none; }
.ev-block .btn-line { color: var(--ink); }
.ev-block .btn-line:hover { color: #fff; }
.sh { width: 44px; height: 44px; }
.share-row { gap: 8px; margin-left: -11px; }
.ev-cal[open] summary { transition: none; }
.cal-menu a { padding: 12px 14px; }
@media (max-width: 860px) {
  .ev-body { margin-top: 32px; }
  .ev-side { order: -1; }
  .ev-hero { gap: 20px; }
  .ev-img { max-height: 46vh; width: 100%; object-fit: cover; }
}
@media (min-width: 601px) and (max-width: 860px) {
  .pub-track { grid-auto-columns: calc((100% - 16px) / 2.2); }
}
@media (max-width: 600px) {
  .pub-track { margin-inline: -24px; padding-inline: 24px; scroll-padding-inline: 24px; grid-auto-columns: 80%; }
  .ev-lead { font-size: 18px; }
  .ev-block p, .ev-list { font-size: 16px; }
  .ev-block + .ev-block { margin-top: 32px; }
  .ev-prog li { grid-template-columns: 52px 1fr; }
  .ev-mapbox { aspect-ratio: 4/3; }
  .brand img { height: 44px; }
  .nav-in { height: 60px; }
}

/* Ajustes responsive (landing) */
.strava > *, .reto > *, .about > *, .hero > *, .ev-hero > *, .ev-body > * { min-width: 0; }
@media (max-width: 860px) {
  .feb { max-width: 520px; width: 100%; }
}
@media (max-width: 600px) {
  .sec, .strava-sec { padding-block: 56px; }
  .sec-head { margin-bottom: 28px; }
  .hero .ctas .btn { flex: 1 1 100%; }
  .day { min-width: 0; overflow: hidden; }
  .day small { font-size: 8px; letter-spacing: 0; }
  .wk-head span { font-size: 11px; }
  .acts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -24px; padding-inline: 24px; scroll-padding-inline: 24px; }
  .acts > li { scroll-snap-align: start; }
  .acts::-webkit-scrollbar { display: none; }
  .act { padding: 20px; }
  .act-img { width: calc(100% + 40px); margin: -20px -20px 16px; }
  .acts-track .act-img { width: calc(100% + 40px); }
  .gallery { columns: 2; column-gap: 8px; }
  .g-item { margin-bottom: 8px; }
  .g-item button { border-radius: 10px; }
  .cards4 { gap: 10px; }
  .cards4 .card { padding: 18px 20px; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
  .cards4 .num { font-size: 28px; margin: 0; grid-row: span 2; }
  .partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 36px; }
  .partners img { height: 44px; max-width: 120px; }
}
.share-ok:empty { display: none; }
