/* v3: estructura de la página de surf de Lazykite con los colores, tipografías y menú de la v2.
   Se carga después de ../styles.css y solo añade los bloques nuevos. */

/* Intro */
.intro .h2 { margin-top: 14px; max-width: 18ch; }
.intro__text { max-width: 960px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; margin-top: 32px; color: var(--muted); font-size: 1.0625rem; }

/* Cursos: como Lazykite, la foto ocupa media pantalla de borde a borde y toda la altura del bloque */
.section--flush { padding: 0; }
.courses { display: grid; }
.course { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; min-height: 700px; }
.course--flip .course__img { order: 2; }
.course__img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; }
/* Medido en Lazykite (1425 px): el texto ocupa ~69 % de su mitad y queda centrado en ella, con el mismo margen a los dos lados (110 px) */
.course__body, .day__body {
  align-self: center; justify-self: center;
  width: 69%; max-width: 600px;
  padding: 96px 0;
}
.course:nth-child(even) { background: var(--pitch); }
.course__title {
  margin-top: 12px;
  font-family: var(--f-display); font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 900;
  line-height: 1.05; letter-spacing: -.02em; text-transform: uppercase; color: #fff;
}
.course__who { margin-top: 10px; color: var(--muted); font-size: 1.0625rem; }

.prices { width: 100%; margin-top: 28px; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.prices th, .prices td { padding: 14px 18px; text-align: left; }
.prices thead th { font-family: var(--f-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--line); }
.prices tbody tr:nth-child(even) { background: var(--surface-2); }
.prices tbody th { font-weight: 600; color: #fff; }
.prices tbody td { color: var(--muted); }
.prices tbody td:last-child, .prices thead th:last-child { text-align: right; }
.prices tbody td:last-child { font-family: var(--f-display); font-weight: 800; font-size: 1.125rem; color: #fff; }

/* Ofertas: botones finos, uno al lado del otro. Texto a la izquierda, precio a la derecha */
.offers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 14px; }
.offer {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center;
  column-gap: 12px; padding: 8px 14px; min-height: 52px;
  border: 1.5px solid var(--cyan); border-radius: var(--radius-sm);
  text-decoration: none; color: #fff;
  transition: background-color .2s, color .2s;
}
.offer:hover { background: var(--cyan); color: var(--pitch); }
.offer:hover .offer__tag, .offer:hover s { color: var(--pitch); }
.offer__tag { grid-column: 1; font-family: var(--f-mono); font-size: .625rem; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.offer__what { grid-column: 1; font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.offer__price { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: baseline; gap: 6px; font-family: var(--f-display); font-size: 1.125rem; font-weight: 900; white-space: nowrap; }
.offer__price s { font-family: var(--f-body); font-size: .8125rem; font-weight: 400; color: var(--muted); }
/* Dos botones juntos nunca del mismo estilo: el primero relleno (principal), el segundo con borde (secundario).
   Misma altura en los dos: el borde de 1,5 px está en ambos. */
.offer--primary { background: var(--cyan); color: var(--pitch); }
.offer--primary .offer__tag, .offer--primary s { color: rgba(0, 0, 0, .7); }
.offer--primary:hover { background: var(--cyan); filter: brightness(1.12); }

/* Qué incluye */
.includes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.includes li {
  display: grid; justify-items: center; align-content: start; gap: 18px; text-align: center;
  padding: 32px 18px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.includes svg { width: 48px; height: 48px; fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.includes h3 { font-family: var(--f-body); font-size: 1rem; font-weight: 600; line-height: 1.35; color: #fff; }
.center-cta { display: flex; justify-content: center; margin-top: 48px; }

/* Qué aprendes */
.aprendes__title { margin-top: 14px; }
/* Igual que los cursos: foto a media pantalla, de borde a borde */
.section--learn { padding-bottom: 0; }
.days { display: grid; }
.day { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; min-height: 600px; }
.day:nth-child(odd) { background: var(--pitch); }
.day--flip img { order: 2; }
.day img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; }

.day__num { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.day__title { margin-top: 10px; font-family: var(--f-display); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 900; line-height: 1.1; text-transform: uppercase; color: #fff; }
.day__body > p:last-child { margin-top: 16px; color: var(--muted); max-width: 32em; font-size: 1.0625rem; }

/* Banda CTA */
.band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(96px, 12vw, 160px) 0; }
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .6); }
.band__inner { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.band .h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); }

/* Opiniones */
.reviews { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px 48px; }
.reviews .h2 { margin-top: 14px; }
.reviews__score { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; padding: 28px 32px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.reviews__num { font-family: var(--f-display); font-size: 4rem; font-weight: 900; line-height: 1; color: #fff; letter-spacing: -.03em; }
.reviews__stars {
  font-size: 1.375rem; letter-spacing: 2px; line-height: 1;
  background: linear-gradient(90deg, var(--cyan) 92%, #444748 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  width: max-content;
}
.reviews__score p:not(.reviews__num):not(.reviews__stars) { margin-top: 6px; color: var(--muted); font-size: .9375rem; }

/* FAQ */
.faq__more { margin-top: 32px; text-align: center; color: var(--muted); }
.faq__more a { color: var(--cyan); font-weight: 600; }

/* Reserva */
.booking__info { display: grid; gap: 18px; margin: 32px 0 28px; }
.booking__info dd { margin-top: 4px; color: #fff; font-size: 1.0625rem; }
.booking__info a { color: var(--cyan); font-weight: 600; }
.choices--3 { grid-template-columns: repeat(3, 1fr); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px;
  background: var(--bg); border: 1px solid var(--outline); border-radius: 999px;
  font-weight: 600; color: #fff; transition: border-color .2s, background-color .2s;
}
.chip em { font-style: normal; font-family: var(--f-mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pitch); background: var(--orange); padding: 2px 6px; border-radius: 4px; }
.chip:hover span { border-color: #fff; }
.chip input:checked + span { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); background: rgba(0, 240, 255, .08); }
.chip input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 3px; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; color: var(--muted); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--cyan); flex: none; }
.check a { color: var(--cyan); }

/* Responsive */
@media (max-width: 1100px) {
  .includes { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .course, .day { grid-template-columns: minmax(0, 1fr); }
  .course { min-height: 0; }
  .course__img { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .course__body, .course--flip .course__body { width: 100%; max-width: none; padding: 40px var(--gutter) 64px; }
  .day { min-height: 0; }
  .day img { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .day__body, .day--flip .day__body { width: 100%; max-width: none; padding: 40px var(--gutter) 64px; }
  .course--flip .course__img, .day--flip img { order: 0; }
  .intro__text { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .includes { grid-template-columns: 1fr 1fr; }
  .includes li:last-child { grid-column: 1 / -1; }
  .offer { grid-template-columns: 1fr; padding: 8px 12px; }
  .offer__what { font-size: .875rem; }
  .offer__price { grid-column: 1; grid-row: auto; margin-top: 2px; }
  .prices th, .prices td { padding: 12px 14px; }
  .choices--3 { grid-template-columns: 1fr; }
  .reviews__score { width: 100%; }
}

/* ---------- Pie de página ---------- */
.footer { padding: 0; font-size: .9375rem; color: var(--muted); background: var(--pitch); border-top: 1px solid var(--line); }
.footer__main {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 48px 40px; padding-top: clamp(64px, 8vw, 96px); padding-bottom: 56px;
}
.footer__brand .brand { margin: 0; }
.footer__brand .brand img { width: 120px; }
.footer__brand p { margin-top: 20px; max-width: 30em; line-height: 1.6; }
.footer__col .label { color: #fff; margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 12px; }
.footer__col li { line-height: 1.5; }
.footer__col a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer__col a:hover { color: var(--cyan); }

.social { display: flex; gap: 10px; margin-top: 28px; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%; color: #fff;
  transition: background-color .2s, border-color .2s, color .2s;
}
.social a:hover { background: var(--cyan); border-color: var(--cyan); color: var(--pitch); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  padding-top: 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); font-size: .8125rem;
  padding-right: max(var(--gutter), 88px); /* deja sitio al botón de WhatsApp */
}
.footer__bottom a { color: var(--muted); }
.footer__bottom a:hover { color: var(--cyan); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a { text-decoration: none; display: inline-block; padding: 6px 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 70;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  transition: transform .2s, bottom .25s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 50%; }

@media (max-width: 900px) {
  .footer__main { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer__main { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  /* Con la barra de reservar abajo, el botón de WhatsApp sube para no taparla */
  .sticky-on .wa-float { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .wa-float { width: 52px; height: 52px; }
}

/* ---------- Opiniones: réplica del widget Trustindex (layout slider con cabecera) de Lazykite, en oscuro ---------- */
.ti-title { text-align: center; }
.ti-widget { max-width: 1120px; margin: 32px auto 0; }
.ti-header { display: grid; justify-items: center; gap: 6px; text-align: center; }
.ti-rating { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; color: #fff; }
.ti-stars { display: flex; gap: 2px; }
.ti-stars img { width: 17px; height: 17px; }
.ti-stars--lg img { width: 24px; height: 24px; }
.ti-based { font-size: .875rem; color: var(--muted); }
.ti-based strong { color: #fff; font-weight: 600; }
.ti-logo { width: 110px; height: auto; margin-top: 2px; }

.ti-slider { position: relative; margin-top: 28px; }
.ti-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px;
}
.ti-track::-webkit-scrollbar { display: none; }
.ti-card {
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px; min-height: 234px;
  background: var(--surface-2); border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35), 0 0 2px rgba(255, 255, 255, .06);
}
.ti-card__head { display: grid; grid-template-columns: 40px 1fr 20px; gap: 10px; align-items: center; }
.ti-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 1.0625rem; }
.ti-name { font-weight: 600; font-size: .9375rem; color: #fff; line-height: 1.3; }
.ti-date { font-size: .8125rem; color: var(--muted); line-height: 1.3; }
.ti-src { align-self: start; }
.ti-g { width: 20px; height: 20px; display: block; }
.ti-text { font-size: .9375rem; line-height: 1.45; color: var(--text); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ti-more { margin-top: auto; font-size: .8125rem; color: var(--muted); text-decoration: none; align-self: flex-start; padding: 4px 0; }
.ti-more:hover { color: var(--cyan); text-decoration: underline; }

.ti-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface-3); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.ti-arrow:hover { border-color: var(--cyan); color: var(--cyan); }
.ti-arrow--prev { left: -22px; }
.ti-arrow--next { right: -22px; }

@media (max-width: 900px) {
  .ti-track { grid-auto-columns: calc((100% - 16px) / 2); }
}
@media (max-width: 640px) {
  .ti-track { grid-auto-columns: 86%; }
  .ti-arrow--prev { left: -8px; }
  .ti-arrow--next { right: -8px; }
}
/* El carrusel no puede ensanchar la página en el móvil */
html, body { overflow-x: clip; }
.ti-slider { overflow: hidden; }
.ti-track { min-width: 0; width: 100%; }
.ti-arrow--prev { left: 4px; }
.ti-arrow--next { right: 4px; }
