/* Página principal (landing de venta) — blanco, minimalista, mobile-first.
   Los tokens de color viven en brand.css. */

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--dy-bg);
  color: var(--dy-ink);
  font-family: "Figtree", system-ui, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  text-wrap: balance;
  margin: 0;
  color: var(--dy-ink);
}

a { color: inherit; }

.text-gradient {
  background: var(--dy-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--dy-gradient);
  color: var(--dy-ink-on-gradient);
  box-shadow: 0 10px 24px -10px rgba(28, 59, 99, 0.45);
}
.btn-primary:hover { box-shadow: 0 14px 28px -10px rgba(28, 59, 99, 0.55); }

.btn-ghost {
  background: var(--dy-surface);
  border-color: var(--dy-line);
  color: var(--dy-ink);
}
.btn-ghost:hover { border-color: var(--dy-navy); }

.btn-small { padding: 8px 18px; font-size: 14px; }
.btn-large { padding: 15px 30px; font-size: 16px; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--dy-line);
}
.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 15px;
}
.brand-mark img { display: block; }

.site-nav {
  display: none;
  gap: 24px;
  margin-right: auto;
  font-size: 14.5px;
  font-weight: 600;
}
.site-nav a { text-decoration: none; color: var(--dy-muted); }
.site-nav a:hover { color: var(--dy-ink); }
@media (min-width: 860px) {
  .site-nav { display: flex; }
}

@media (max-width: 859px) {
  .header-region { margin-left: auto; }
}

/* --- Hero --- */
.hero {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(48px, 10vw, 88px) clamp(16px, 4vw, 32px) clamp(32px, 6vw, 48px);
  text-align: center;
}
.hero-brandline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dy-muted);
  margin: 0 0 28px;
}
.hero-brandline img { width: 38px; height: 38px; }
.hero h1 {
  font-size: clamp(32px, 7vw, 52px);
  line-height: 1.12;
  margin-bottom: 18px;
}
.hero-subtitle {
  font-size: clamp(15px, 3.6vw, 17px);
  line-height: 1.6;
  color: var(--dy-muted);
  max-width: 54ch;
  margin: 0 auto 32px;
}

/* --- Catálogo de Experiencias: carrusel de cartas que se voltean --- */
.catalog-section {
  background: var(--dy-bg-soft);
  padding: clamp(40px, 8vw, 64px) 0;
  text-align: center;
}
.catalog-section h2 { font-size: clamp(22px, 4.5vw, 28px); margin-bottom: 10px; padding: 0 16px; }
.catalog-subtitle {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--dy-muted);
  max-width: 46ch;
  margin: 0 auto 14px;
  padding: 0 16px;
}
/* Pastilla discreta: no compite con el subtítulo, solo resuelve la duda de "¿tengo que instalar algo?" */
.catalog-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 32px);
  margin: 0 auto clamp(28px, 5vw, 40px);
  padding: 5px 13px;
  font-size: 12.5px;
  line-height: 1.4;
  text-align: center;
  color: var(--dy-muted);
  background: var(--dy-surface);
  border: 1px solid var(--dy-line);
  border-radius: 999px;
}
.catalog-badge svg { flex: none; color: var(--dy-teal); }

.catalog-tag {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dy-navy);
  background: color-mix(in srgb, var(--dy-teal) 12%, white);
  border: 1px solid color-mix(in srgb, var(--dy-teal) 30%, white);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.catalog-tag-soon {
  color: var(--dy-muted);
  background: var(--dy-bg-soft);
  border-color: var(--dy-line);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Carrusel: en pantallas grandes, si caben todas las cartas se ven juntas y centradas; si no caben
   (o en celular) se desliza de lado, y aparecen las flechas y los puntitos. */
.carousel {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}
.carousel-track {
  display: flex;
  gap: clamp(18px, 3vw, 32px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 16px 24px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
@media (max-width: 719px) {
  /* Que la primera y la última carta puedan quedar centradas, dejando asomar la siguiente */
  .carousel-track { padding-inline: calc((100% - min(300px, 78vw)) / 2); }
}

.exp-slide {
  flex: 0 0 min(300px, 78vw);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}
.exp-slide:first-child { margin-left: auto; }
.exp-slide:last-child { margin-right: auto; }

/* La carta: se voltea en 3D al hacer clic */
.exp-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  perspective: 1100px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: 24px;
}
.exp-card:focus-visible { outline: 3px solid var(--dy-teal); outline-offset: 4px; }
.exp-card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.exp-card.is-flipped .exp-card-inner { transform: rotateY(180deg); }
@media (prefers-reduced-motion: reduce) {
  .exp-card-inner { transition-duration: 0.01s; }
}
@media (hover: hover) {
  .exp-card:not(.is-flipped):not(.exp-card-soon):hover .exp-card-inner { transform: translateY(-4px) rotateY(-4deg); }
}

.exp-face {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
}

/* Frente: el logo de la experiencia sobre una carta clara con marco interior */
.exp-front {
  background: linear-gradient(165deg, #ffffff 0%, #eef4fa 100%);
  border: 1px solid var(--dy-line);
  box-shadow: 0 26px 50px -28px rgba(21, 19, 31, 0.4);
}
.exp-front::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.5px solid color-mix(in srgb, var(--dy-navy) 14%, transparent);
  border-radius: 16px;
  pointer-events: none;
}
.exp-front .catalog-tag { position: absolute; top: 24px; margin: 0; }
.exp-logo { display: block; width: 82%; height: auto; }
.exp-hint {
  position: absolute;
  bottom: 24px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dy-muted);
}

/* Reverso: el "puño de cartas" con las temáticas disponibles */
.exp-back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #24507f 0%, var(--dy-navy) 55%, #14294a 100%);
  color: #fff;
  box-shadow: 0 26px 50px -28px rgba(21, 19, 31, 0.5);
  gap: 44px;
}
.exp-fan {
  position: relative;
  width: 100%;
  height: 46%;
}
.fan-card {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 40%;
  height: auto; /* sin esto, el height="280" de la etiqueta <img> pisa la proporción cuadrada */
  margin-left: -20%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  object-fit: cover;
  box-shadow: 0 14px 26px -8px rgba(0, 0, 0, 0.55);
  transform-origin: 50% 165%;
  transition: transform 0.5s ease;
}
.fan-left { transform: translateX(-12%) rotate(-22deg); }
.fan-center { transform: rotate(0deg); z-index: 2; }
.fan-right { transform: translateX(12%) rotate(22deg); }
.exp-card.is-flipped .fan-left { transform: translateX(-14%) rotate(-25deg); }
.exp-card.is-flipped .fan-right { transform: translateX(14%) rotate(25deg); }
.exp-themes {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.92);
}

/* Cartas "Próximamente": sin voltear */
.exp-card-soon { cursor: default; }
.exp-card-soon .exp-front {
  background: var(--dy-surface);
  border: 1.5px dashed var(--dy-line);
  box-shadow: none;
  padding: 0 24px;
}
.exp-card-soon .exp-front::before { display: none; }
.exp-card-soon .catalog-tag { position: static; }
.soon-icon { font-size: 46px; opacity: 0.65; }
.exp-card-soon h3 { font-size: 17px; line-height: 1.3; }

/* Debajo de la carta: descripción breve, precio y botón */
.exp-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.exp-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--dy-muted);
  margin: 0;
  max-width: 32ch;
}
.exp-price {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 19px;
  margin: 0;
}
.exp-info .btn { padding: 12px 28px; font-size: 14.5px; }
.btn-disabled { pointer-events: none; opacity: 0.55; }

/* Flechas y puntitos (solo cuando las cartas no caben) */
.carousel-arrow {
  position: absolute;
  top: 38%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--dy-line);
  background: var(--dy-surface);
  color: var(--dy-navy);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px -6px rgba(21, 19, 31, 0.3);
}
.carousel-arrow[hidden] { display: none; }
.carousel-arrow:disabled { opacity: 0.35; cursor: default; }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
@media (max-width: 719px) {
  .carousel-arrow { display: none; }
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.carousel-dots[hidden] { display: none; }
.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--dy-line);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.carousel-dot.is-active { background: var(--dy-navy); transform: scale(1.35); }

/* --- Cómo funciona --- */
.steps {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 72px) clamp(16px, 4vw, 32px);
  text-align: center;
}
.steps h2 { font-size: clamp(22px, 4.5vw, 30px); margin-bottom: 10px; }
.steps-subtitle {
  font-size: 14.5px;
  color: var(--dy-muted);
  margin: 0 0 clamp(28px, 5vw, 40px);
}
.steps-grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
}
@media (min-width: 780px) {
  .steps-grid { grid-template-columns: 1fr auto 1fr auto 1fr; }
}
.step-card {
  text-align: left;
  background: var(--dy-surface);
  border: 1px solid var(--dy-line);
  border-radius: 20px;
  padding: 26px 22px;
}
.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--dy-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.step-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dy-teal);
  margin: 0 0 6px;
}
.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--dy-muted);
  margin: 0;
}
.steps-note {
  margin: clamp(24px, 5vw, 34px) 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--dy-navy);
}
.step-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--dy-line);
  font-size: 22px;
}
@media (min-width: 780px) {
  .step-arrow { display: flex; }
}

/* --- Propósito / Sobre nosotros --- */
.purpose-section {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 72px) clamp(16px, 4vw, 32px) clamp(56px, 10vw, 88px);
  text-align: center;
}
.purpose-section h2 { font-size: clamp(22px, 4.5vw, 28px); margin-bottom: 16px; }
.purpose-text {
  font-size: clamp(15px, 3.4vw, 16.5px);
  line-height: 1.7;
  color: var(--dy-muted);
  margin: 0;
}

/* --- Footer --- */
.site-footer {
  padding: 28px 16px 36px;
  font-size: 13px;
  border-top: 1px solid var(--dy-line);
}
.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
@media (min-width: 640px) {
  .site-footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.site-footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
@media (min-width: 640px) {
  .site-footer-top { flex-direction: row; align-items: center; gap: 24px; }
}
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.site-footer-links a { color: var(--dy-muted); text-decoration: underline; }
.site-footer-links a:hover { color: var(--dy-ink); }
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dy-muted);
  font-size: 12.5px;
}
