/* Editorial Torremex — papel, foto a sangre, una línea. */
:root {
  --paper: #f3eee6;
  --ink: #14241c;
  --green: #036c52;
  --clay: #981e0c;
  --sand: #e4d4bf;
  --gold-line: #c6a15a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Outfit", sans-serif;
}

body.tma-skin {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}
h1, h2, h3, .display, .brand, .stat strong, .step .n {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.kicker {
  font-family: var(--sans);
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--green);
}
.lede { font-weight: 400; line-height: 1.6; }

.topbar {
  background: rgba(243, 238, 230, 0.94);
  color: var(--ink);
  border-bottom: 2px solid var(--gold-line);
  box-shadow: none;
  backdrop-filter: blur(12px);
}
.topbar .nav a,
.topbar .nav-item { color: rgba(20, 36, 28, 0.78); }
.topbar .nav a:hover,
.topbar .nav-item:hover { color: var(--green); }
.topbar .nav a::after { background: var(--gold-line); }
.cart-btn, .btn-login {
  color: var(--ink);
  border-color: rgba(20, 36, 28, 0.18);
  background: transparent;
}
.nav-burger { border-color: rgba(20, 36, 28, 0.2); color: var(--ink); }
.nav-burger span { background: var(--ink); }

.section:not(#inicio) { border-top: 1px solid rgba(20, 36, 28, 0.1); }
.section h2::after,
#inicio h1::after {
  width: 2.6rem;
  height: 2px;
  background: var(--green);
}
.footer { border-top: 2px solid var(--gold-line); background: #10241e; }

/* Carrusel */
.tx-hero.section {
  padding: 0;
  background: #10241e;
  overflow: hidden;
  border-top: 0;
}
.tx-carousel {
  position: relative;
  height: min(88vh, 820px);
  min-height: 560px;
  background: #10241e;
}
.tx-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.15s ease;
}
.tx-slide.is-on { opacity: 1; z-index: 1; }
.tx-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 7s ease;
}
.tx-slide.is-on img { transform: scale(1); }
.tx-carousel::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(16, 36, 30, 0.82) 78%);
}
.tx-hero-copy {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(1.4rem, 4vw, 3.2rem) clamp(1.2rem, 5vw, 4.5rem) 4.2rem;
  max-width: 820px;
  color: #f6f1ea;
  background: none;
}
.tx-hero-copy .kicker { color: var(--sand); }
.tx-hero-copy h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.92;
  max-width: 12ch;
  margin: 0.35rem 0 0.8rem;
}
.tx-hero-copy .lede { color: rgba(246, 241, 234, 0.88); max-width: 36rem; }
#inicio .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.tx-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(16, 36, 30, 0.35);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.tx-nav:hover { background: rgba(16, 36, 30, 0.62); border-color: var(--gold-line); }
.tx-nav:focus-visible { outline: 2px solid var(--gold-line); outline-offset: 3px; }
.tx-prev { left: 1.15rem; }
.tx-next { right: 1.15rem; }
.tx-dots {
  position: absolute;
  z-index: 3;
  left: clamp(1.2rem, 5vw, 4.5rem);
  bottom: 1.3rem;
  display: flex;
  gap: 8px;
}
.tx-dot {
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}
.tx-dot.is-on { background: var(--gold-line); }
.tx-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

#stats.section {
  background: #10241e;
  border-top: 0;
  color: #f6f1ea;
}
.stat {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.stat strong {
  color: var(--sand);
  font-family: var(--sans);
  font-weight: 500;
  font-variant-numeric: lining-nums;
  letter-spacing: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
}
.stat:hover { transform: none; box-shadow: none; }

.card, .tma-card, .tma-product, .tma-route-item, .step, .tma-opt {
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(20, 36, 28, 0.14);
}
.card:hover, .tma-card:hover, .tma-product:hover, .tma-route-item:hover, .step:hover, .tma-opt:hover {
  transform: translateY(-4px);
  box-shadow: none;
  border-color: var(--green);
}
body:not(.is-editing) .tma-product-media {
  background: #e6dfd4;
  font-size: 0;
  min-height: 160px;
}
.contact-box {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  border-top: 1px solid rgba(20, 36, 28, 0.14);
}

.tx-place { padding: 0; }
.tx-place-copy {
  max-width: 760px;
  padding: clamp(3rem, 6vw, 5rem) 1.4rem 1.6rem;
}
.tx-map-link {
  display: inline-block;
  margin-top: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--green);
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 0.2rem;
}
.tx-map iframe {
  display: block;
  width: 100%;
  height: min(68vh, 560px);
  border: 0;
  filter: saturate(0.85);
}

@media (max-width: 800px) {
  .tx-carousel { height: 92vh; min-height: 520px; }
  .tx-hero-copy {
    max-width: none;
    background: linear-gradient(180deg, transparent 0%, rgba(16, 36, 30, 0.82) 46%);
    padding-bottom: 3.6rem;
  }
  .tx-nav { top: auto; bottom: 4.6rem; transform: none; }
  .tx-prev { left: 0.7rem; }
  .tx-next { right: 0.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tx-slide, .tx-slide img { transition: none; }
  .tx-slide img, .tx-slide.is-on img { transform: none; }
}

/* Menú de cristal, sin barra. El logo flota a la izquierda. */
.topbar {
  position: fixed !important;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 18px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none;
  pointer-events: none;
}
.topbar .brand,
.topbar .nav,
.topbar .topbar-actions,
.topbar .nav-burger { pointer-events: auto; }
.topbar .brand {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
}
.topbar .brand-logo {
  width: 62px !important;
  height: auto !important;
  filter: drop-shadow(0 8px 16px rgba(16, 36, 30, 0.28));
}
.topbar .nav {
  display: flex;
  flex: none;
  margin: 0;
  gap: 2px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 40px rgba(16, 36, 30, 0.12);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}
.topbar .nav a,
.topbar .nav-item {
  color: #14241c;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
}
.topbar .nav a::after { display: none; }
.topbar .nav a:hover,
.topbar .nav-item:hover {
  color: #036c52;
  background: rgba(3, 108, 82, 0.1);
}
.topbar-actions {
  position: absolute;
  right: 18px;
  margin: 0 !important;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 40px rgba(16, 36, 30, 0.12);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}
.cart-btn, .btn-login {
  background: transparent;
  color: #14241c;
  border-color: transparent;
}
.topbar .btn-solid { background: #036c52; color: #fff; }

/* Letras que se habían quedado blancas sobre el papel */
.tma-route-item,
.tma-route-item h3,
.tma-route-item .n,
.step,
.step h3,
.card,
.card h3,
.tma-card,
.tma-card h3,
.tma-product,
.tma-product h3,
.tma-price,
#ruta,
#ruta h2,
#contacto,
#contacto h2 {
  color: #14241c;
}
.tma-route-item {
  background: #fff !important;
  color: #14241c !important;
  border: 1px solid rgba(20, 36, 28, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 32px rgba(20, 36, 28, 0.05);
  min-height: 0;
  overflow: hidden;
}
.tma-route-item::before {
  content: "";
  display: block;
  width: 42px;
  height: 8px;
  border-radius: 99px;
  margin-bottom: 0.85rem;
  background: #ddd;
}
.tma-route-item:nth-child(1)::before { background: #f7f4ee; box-shadow: inset 0 0 0 1px #cfc8bc; }
.tma-route-item:nth-child(2)::before { background: #f0c400; }
.tma-route-item:nth-child(3)::before { background: #f08a24; }
.tma-route-item:nth-child(4)::before { background: #2f9e6b; }
.tma-route-item:nth-child(5)::before { background: #2f6fed; }
.tma-route-item:nth-child(6)::before { background: #c4332a; }
.tma-route-item:nth-child(7)::before { background: #1a1a1a; }
.tma-route-item h3,
.tma-route-item .n { color: #14241c !important; }
.tma-route-item p { color: #3e5148 !important; margin: 0.35rem 0 0; }
.tma-route-item .n { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; }

.contact-box {
  background: #fff !important;
  color: #14241c !important;
  border: 1px solid rgba(20, 36, 28, 0.08) !important;
  border-radius: 24px !important;
  padding: 2.6rem 2.2rem !important;
  box-shadow: 0 18px 44px rgba(20, 36, 28, 0.06);
}
.contact-box h2,
.contact-box .lede,
.contact-box p { color: #14241c !important; }
.contact-box .kicker { color: #036c52 !important; }
.contact-box .tma-phone a {
  color: #036c52 !important;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
}
.contact-box .btn-solid {
  background: #036c52 !important;
  color: #fff !important;
}

.tma-product {
  background: #fff !important;
  border: 1px solid rgba(20, 36, 28, 0.08) !important;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(20, 36, 28, 0.05);
}
.tma-product-media {
  height: 220px;
  background: #efe8dc;
  font-size: 0;
}
.tma-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  font-size: initial;
}
.tma-product h3,
.tma-product p,
.tma-price { color: #14241c !important; }
.tma-product .tma-tag { color: #036c52; }

.section h2 { color: #14241c; font-size: clamp(2rem, 4vw, 3.1rem); }
.lede, .card p, .tma-card p, .step p { color: #3e5148; }

@media (max-width: 899px) {
  .topbar { top: 10px; }
  .topbar .brand { left: 12px; }
  .topbar .brand-logo { width: 48px !important; }
  .topbar .nav { display: none; }
  body.nav-open .nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #14241c;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 10px;
    z-index: 60;
  }
  body.nav-open .nav a { color: #14241c; }
  .topbar-actions { right: 10px; }
  .nav-burger { position: static; }
}

/* Pulseras: franja larga y aura del color. El texto se queda oscuro. */
.tma-route-item {
  position: relative;
  overflow: visible !important;
  border: 0 !important;
  background: #fff !important;
}
.tma-route-item::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  height: 8px;
  margin: 0;
  border-radius: 18px 18px 0 0;
}
.tma-route-item { padding-top: 1.45rem; }
.tma-route-item:nth-child(1) { box-shadow: 0 0 0 1px rgba(160, 150, 136, 0.55), 0 0 22px rgba(255, 252, 245, 0.95), 0 14px 28px rgba(20, 36, 28, 0.06) !important; }
.tma-route-item:nth-child(2) { box-shadow: 0 0 0 1px rgba(240, 196, 0, 0.55), 0 0 26px rgba(240, 196, 0, 0.55), 0 14px 28px rgba(20, 36, 28, 0.05) !important; }
.tma-route-item:nth-child(3) { box-shadow: 0 0 0 1px rgba(240, 138, 36, 0.5), 0 0 26px rgba(240, 138, 36, 0.5), 0 14px 28px rgba(20, 36, 28, 0.05) !important; }
.tma-route-item:nth-child(4) { box-shadow: 0 0 0 1px rgba(47, 158, 107, 0.45), 0 0 26px rgba(47, 158, 107, 0.45), 0 14px 28px rgba(20, 36, 28, 0.05) !important; }
.tma-route-item:nth-child(5) { box-shadow: 0 0 0 1px rgba(47, 111, 237, 0.45), 0 0 26px rgba(47, 111, 237, 0.42), 0 14px 28px rgba(20, 36, 28, 0.05) !important; }
.tma-route-item:nth-child(6) { box-shadow: 0 0 0 1px rgba(196, 51, 42, 0.45), 0 0 26px rgba(196, 51, 42, 0.4), 0 14px 28px rgba(20, 36, 28, 0.05) !important; }
.tma-route-item:nth-child(7) { box-shadow: 0 0 0 1px rgba(20, 20, 20, 0.55), 0 0 26px rgba(20, 20, 20, 0.28), 0 14px 28px rgba(20, 36, 28, 0.06) !important; }
.tma-route-item:hover { transform: translateY(-4px); }
.tma-route-item h3,
.tma-route-item p { color: #14241c !important; }
.tma-route-item p { color: #3e5148 !important; }
.tma-route-item:nth-child(1) .n { color: #6d655c !important; }
.tma-route-item:nth-child(2) .n { color: #8a6800 !important; }
.tma-route-item:nth-child(3) .n { color: #c45e00 !important; }
.tma-route-item:nth-child(4) .n { color: #036c52 !important; }
.tma-route-item:nth-child(5) .n { color: #1d4ed8 !important; }
.tma-route-item:nth-child(6) .n { color: #981e0c !important; }
.tma-route-item:nth-child(7) .n { color: #14241c !important; }

.topbar { transition: opacity .4s ease, transform .4s ease; }
body:not(.at-top) .topbar {
  opacity: 0;
  transform: translateY(-18px);
  pointer-events: none;
}
body:not(.at-top) .topbar .brand,
body:not(.at-top) .topbar .nav,
body:not(.at-top) .topbar .topbar-actions,
body:not(.at-top) .topbar .nav-burger { pointer-events: none; }
#inicio { transition: opacity .45s ease; }
@media (prefers-reduced-motion: reduce) {
  .topbar, #inicio { transition: none; }
}
