/* ==========================================================================
   La Ruta Dorada de los Rollos de Canela — hoja de estilos
   El diseño vive en estilos inline dentro del HTML (viene de Claude Design).
   Aquí solo van: base, animaciones y las reglas responsive que antes
   resolvía JavaScript con el estado `narrow`.
   ========================================================================== */

html,
body {
  margin: 0;
  padding: 0;
  background: #FBF1E3;
}

* {
  box-sizing: border-box;
}

a {
  color: #B4531B;
  text-decoration: none;
}

a:hover {
  color: #8A3B10;
}

img {
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Animaciones
   -------------------------------------------------------------------------- */

@keyframes softDown {

  0%,
  100% {
    transform: translateY(0);
    opacity: .75;
  }

  50% {
    transform: translateY(7px);
    opacity: 1;
  }
}

@keyframes glaze {

  0%,
  100% {
    transform: rotate(-2.2deg) translateY(0);
  }

  50% {
    transform: rotate(-2.2deg) translateY(-9px);
  }
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.marquee-track {
  animation: marqueeScroll 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Modo estrecho (< 560 px)

   El diseño original medía el ancho con JavaScript y guardaba un estado
   `narrow` para mostrar/ocultar la barra superior, el párrafo largo del hero
   y reordenar el indicador de scroll. Aquí se resuelve con media queries:
   sin parpadeo en la primera carga y sin depender de JS.

   Los elementos traen `display` en su estilo inline, así que hace falta
   !important para ganarle.
   -------------------------------------------------------------------------- */

@media (max-width: 559px) {

  [data-narrow="hide"] {
    display: none !important;
  }

  [data-narrow="only"] {
    display: block !important;
  }

  [data-narrow="cue"] {
    order: 3 !important;
  }
}

/* --------------------------------------------------------------------------
   Barra superior en móvil

   El diseño original la ocultaba por debajo de 560 px. Se mantiene visible
   porque las dos señales que lleva —material digital con acceso inmediato y
   garantía de 7 días— son justo las que quitan fricción antes de leer nada.

   A 14 px no cabe en una pantalla estrecha, así que se reduce el tipo y se
   aprieta el espaciado para que ocupe dos líneas limpias en lugar de cuatro
   apretadas.
   -------------------------------------------------------------------------- */

@media (max-width: 559px) {

  #topbar {
    flex-direction: column !important;
    padding: 7px 10px !important;
    gap: 5px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    text-align: center;
  }

  /* La píldora de la garantía, algo más compacta */
  #topbar span span[style*="border-radius: 999px"],
  #topbar span span[style*="border-radius:999px"] {
    padding: 3px 9px !important;
    font-size: 1em !important;
  }

  /* El punto rojo pierde protagonismo a este tamaño */
  #topbar span span[style*="border-radius: 50%"],
  #topbar span span[style*="border-radius:50%"] {
    width: 7px !important;
    height: 7px !important;
  }
}

@media (max-width: 380px) {

  #topbar {
    font-size: 12px !important;
  }
}

/* --------------------------------------------------------------------------
   Módulos Tabs + Card layout (lateral y card activa)
   -------------------------------------------------------------------------- */

.mod-tabs-container {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: clamp(18px, 2.5vw, 32px);
  align-items: start;
}

@media (max-width: 820px) {
  .mod-tabs-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.mod-tabs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #FFF !important;
  padding: 10px;
  border-radius: 16px;
}

@media (max-width: 820px) {
  .mod-tabs-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .mod-tabs-list::-webkit-scrollbar {
    height: 4px;
  }

  .mod-tabs-list::-webkit-scrollbar-thumb {
    background: #DFCBB0;
    border-radius: 4px;
  }
}

.mod-tab-btn {
  width: 100%;
  border: 1.5px solid transparent;
  background: rgba(255, 249, 239, 0.75);
  border-radius: 16px;
  padding: 12px 16px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  color: inherit;
  box-shadow: 0 2px 8px rgba(74, 44, 28, 0.04);
}

@media (max-width: 820px) {
  .mod-tab-btn {
    flex: 0 0 auto;
    min-width: 230px;
    padding: 10px 14px;
    width: 80%;
  }
}

.mod-tab-btn:hover {
  background: rgba(255, 249, 239, 0.98);
  transform: translateY(-1px);
  border-color: #E7D2B2;
}

.mod-tab-btn.active {
  background: rgb(52, 33, 26);
  border-color: rgb(52, 33, 26);
  box-shadow: 0 10px 22px rgba(52, 33, 26, 0.22);
  transform: translateY(-2px);
}

.mod-tab-btn .tab-badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #E8D5BC;
  color: #5C3A24;
  font-family: Bitter, serif;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.22s ease;
}

.mod-tab-btn.active .tab-badge {
  background: rgb(239, 181, 83);
  color: rgb(52, 33, 26);
  box-shadow: 0 4px 10px rgba(239, 181, 83, 0.35);
}

.mod-tab-btn .tab-info {
  flex: 1 1 auto;
  min-width: 0;
}

.mod-tab-btn .tab-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #A1744D;
  transition: color 0.22s ease;
  margin-bottom: 2px;
}

.mod-tab-btn.active .tab-tag {
  color: #EFB553;
}

.mod-tab-btn .tab-title {
  display: block;
  font-family: Bitter, serif;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.25;
  color: #34211A;
  transition: color 0.22s ease;
}

.mod-tab-btn.active .tab-title {
  color: #FFFFFF;
}

/* Card activa en el lateral derecho */
.mod-card-panel {
  display: none;
  background: rgb(255, 249, 239);
  border: 1.5px solid rgb(231, 210, 178);
  border-radius: 22px;
  padding: clamp(22px, 3.2vw, 36px);
  box-shadow: rgba(74, 44, 28, 0.12) 0px 16px 32px;
}

.mod-card-panel.active {
  display: block;
  animation: modFadeIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Acordeones (FAQ) y foco accesible
   -------------------------------------------------------------------------- */

[data-tab-target],
[data-faq] {
  -webkit-tap-highlight-color: transparent;
}

[data-tab-target]:focus-visible,
[data-faq]:focus-visible,
a:focus-visible {
  outline: 3px solid #B4531B;
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Galería
   -------------------------------------------------------------------------- */

[data-dot] {
  transition: background .4s ease;
}

/* --------------------------------------------------------------------------
   Utilidades
   -------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

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

/* --------------------------------------------------------------------------
   Split-Card Oferta Principal (#s6-oferta-principal)
   Estructura: Izquierda Oscura (Visual) / Derecha Clara (Acceso)
   -------------------------------------------------------------------------- */

.oferta-split-card {
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid rgb(233, 169, 60);
  box-shadow: rgba(0, 0, 0, 0.45) 0px 28px 60px;
  display: grid;
  grid-template-columns: 46% 54%;
  background: #FFFAF2;
}

.oferta-split-left {
  background: linear-gradient(180deg, #361F14 0%, #25140C 100%);
  padding: clamp(26px, 3.5vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  gap: 18px;
}

.oferta-split-right {
  background: #FFFAF2;
  padding: clamp(26px, 3.5vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  text-align: left;
}

.oferta-split-btn {
  display: block;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  width: 100%;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgb(230, 157, 59) 0%, rgb(192, 107, 31) 100%);
  color: #2A1710;
  font-family: Bitter, serif;
  font-weight: 800;
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.25;
  letter-spacing: 0.02em;
  padding: clamp(16px, 2vw, 20px) 20px;
  border-radius: 16px;
  box-shadow: rgb(138, 85, 16) 0px 8px 0px, rgba(0, 0, 0, 0.22) 0px 16px 24px;
  text-transform: uppercase;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.oferta-split-btn:hover {
  transform: translateY(-2px);
  box-shadow: rgb(138, 85, 16) 0px 10px 0px, rgba(0, 0, 0, 0.28) 0px 20px 30px;
}

.oferta-split-btn:active {
  transform: translateY(2px);
  box-shadow: rgb(138, 85, 16) 0px 4px 0px, rgba(0, 0, 0, 0.16) 0px 8px 14px;
}

@media (max-width: 880px) {
  .oferta-split-card {
    grid-template-columns: 1fr;
    max-width: 580px;
  }
}

/* --------------------------------------------------------------------------
   Bonus Cards — Layout Horizontal
   Imagen a la izquierda, texto a la derecha.
   2 cards por fila en desktop, 1 en móvil.
   -------------------------------------------------------------------------- */

.bonos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 26px);
}

.bono-card {
  width: calc(50% - (clamp(16px, 2.4vw, 26px) / 2));
  box-sizing: border-box;
  background: rgb(255, 249, 239);
  border: 1.5px solid rgb(231, 210, 178);
  border-radius: 20px;
  padding: clamp(14px, 1.8vw, 20px);
  display: flex;
  flex-direction: row;
  gap: clamp(12px, 1.6vw, 18px);
  box-shadow: rgba(74, 44, 28, 0.1) 0px 16px 30px;
  align-items: flex-start;
}

@media (max-width: 767px) {
  .bono-card {
    width: 100%;
  }
}

.bono-card-img {
  flex: 0 0 145px;
  width: 155px;
  height: 160px;
  border-radius: 14px;
  background-size: cover;
  background-position: center center;
  display: block;
}

.bono-card-body {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 860px) {
  .bonos-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .bono-card {
    display: block;
  }

  .bono-card-body {
    display: flex;
  }

  .bono-card-img {
    flex: 0 0 300px;
    width: 300px;
    height: 378px;
    margin: 0 auto 20px;

  }
}