/* Tu Maestro de Ajedrez — skin over Piloto engine */
:root {
  --ink: #10241e;
  --sand: #f6f1ea;
  --accent: #036c52;
  --teal: #036c52;
  --gold: #e4d4bf;
  --gold-2: #f3e6d4;
  --red: #981e0c;
  --navy: #036c52;
  --navy-2: #024a39;
  --muted: #5b6b82;
  --card: #ffffff;
  --line: rgba(7, 20, 40, 0.1);
  --shadow: 0 22px 50px rgba(7, 20, 40, 0.16);
  --radius: 20px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Cinzel", Georgia, serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(0, 102, 255, 0.1), transparent 55%),
    radial-gradient(800px 380px at 100% 0%, rgba(232, 185, 35, 0.12), transparent 50%),
    var(--sand);
}
h1, h2, h3, .display, .brand, .stat strong, .step .n {
  font-family: var(--display);
}
h1 { max-width: 18ch; }

.topbar {
  background: rgba(7, 20, 40, 0.92);
  border-bottom: 1px solid rgba(232, 185, 35, 0.28);
  color: #fff;
  backdrop-filter: blur(16px);
  padding: 0.65rem 1.1rem;
}
.topbar .brand { color: #fff; display: flex; align-items: center; gap: 0.55rem; }
.topbar .brand-logo { width: 52px !important; height: 52px !important; object-fit: contain; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); }
.topbar .nav a,
.topbar .nav-item { color: rgba(255,255,255,0.78); }
.topbar .nav a:hover,
.topbar .nav-item:hover { color: var(--gold-2); }
.btn-login {
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}
.btn-solid {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--ink);
  border: 0;
  box-shadow: 0 8px 20px rgba(232, 185, 35, 0.28);
}
.btn-solid:hover { filter: brightness(1.05); background: linear-gradient(180deg, #ffe08a, var(--gold)); }
.btn-ghost {
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
#inicio .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.08);
}
#inicio .btn-ghost:hover {
  background: rgba(255,255,255,0.16);
  border-color: var(--gold-2);
  color: var(--gold-2);
}
.section .btn-ghost { color: var(--ink); border-color: var(--line); }

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  margin: 4px auto;
  border-radius: 2px;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}
.cart-count {
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  display: grid;
  place-items: center;
  padding: 0 0.28rem;
}

/* Hero */
#inicio.section {
  padding: 0;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
#inicio .section-inner.hero {
  max-width: 1180px;
  padding: 3.2rem 1.25rem 3.6rem;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2rem;
  align-items: center;
}
#inicio .kicker { color: var(--gold-2); }
#inicio h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}
#inicio .lede { color: rgba(255,255,255,0.82); max-width: 38rem; }
#inicio .hero-media {
  min-height: 280px;
  border-radius: 24px;
  border: 1px solid rgba(232, 185, 35, 0.35);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  background: #071428;
}
#inicio .hero-media img {
  min-height: 280px;
  object-fit: cover;
  object-position: center;
}

.tma-board {
  background-image:
    linear-gradient(180deg, rgba(244,247,251,0.92), rgba(244,247,251,0.96)),
    repeating-conic-gradient(#dbe4f2 0% 25%, #eef3fa 0% 50%);
  background-size: auto, 28px 28px;
}

#stats.section { padding-top: 2.2rem; padding-bottom: 1.2rem; }
.stats-grid { grid-template-columns: repeat(4, 1fr); }
.stat {
  background: var(--ink);
  color: #fff;
  border: 1px solid rgba(232,185,35,0.28);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.stat:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(7,20,40,0.22); }
.stat strong { color: var(--gold-2); }
.stat span { color: rgba(255,255,255,0.72); font-size: 0.88rem; }

.kicker { color: var(--accent); letter-spacing: 0.16em; }

.cards, .tma-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-top: 1.6rem;
}
.card, .tma-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  position: relative;
  overflow: hidden;
}
.card::after, .tma-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.card:hover, .tma-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(0,102,255,0.28);
}
.card:hover::after, .tma-card:hover::after { transform: scaleX(1); }

.tma-audience .tma-card { padding: 1.6rem; }
.tma-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold-2);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  margin-bottom: 0.7rem;
}
.tma-card ul { margin: 0.8rem 0 1.1rem; padding-left: 1.1rem; color: var(--muted); }
.tma-card li { margin: 0.3rem 0; }

.tma-pains { grid-template-columns: repeat(3, 1fr); }
.tma-pain .n {
  font-family: var(--display);
  color: var(--accent);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.tma-pain[data-audience="maestro"] .n { color: var(--red); }
.tma-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
}
.tma-filters button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
}
.tma-filters button.is-on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.steps { gap: 0; }
.step {
  border-top: 1px solid var(--line);
  padding: 1.15rem 0;
  transition: background .2s ease, padding-left .2s ease;
}
.step:hover { background: rgba(0,102,255,0.04); padding-left: 0.6rem; }
.step .n { color: var(--gold); }

.tma-route {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.tma-route-item {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  min-height: 170px;
  border: 1px solid rgba(232,185,35,0.22);
  transition: transform .28s ease, border-color .28s ease;
}
.tma-route-item:hover {
  transform: translateY(-8px) rotate(-0.4deg);
  border-color: var(--gold);
}
.tma-route-item .n {
  font-family: var(--display);
  color: var(--gold-2);
  font-size: 1.4rem;
}
.tma-route-item p { color: rgba(255,255,255,0.72); margin: 0.4rem 0 0; }

.tma-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.tma-product {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .28s ease, box-shadow .28s ease;
}
.tma-product:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.tma-product.is-featured { border: 2px solid var(--gold); grid-column: span 1; }
.tma-product-media {
  height: 150px;
  background: var(--navy);
  overflow: hidden;
}
.tma-product-media img { width: 100%; height: 100%; object-fit: cover; }
.tma-product-body { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.tma-price {
  font-family: var(--display);
  font-size: 1.45rem;
  color: var(--ink);
}
.tma-price span { font-size: 0.75rem; color: var(--muted); font-family: var(--font); font-weight: 600; }
.tma-product .btn-solid { width: 100%; text-align: center; margin-top: auto; }

.tma-bonuses { grid-template-columns: repeat(5, 1fr); }
.tma-bonus .n { color: var(--teal); font-weight: 800; }

#leccion.section { background: var(--ink); color: #fff; }
#leccion .kicker { color: var(--gold-2); }
#leccion .lede, #leccion figcaption { color: rgba(255,255,255,0.75); }
#leccion .tma-lesson {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.6rem;
  align-items: center;
  margin-top: 1.4rem;
}
#leccion img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(232,185,35,0.3);
  box-shadow: 0 24px 50px rgba(0,0,0,0.35);
}
.tma-quote {
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 1rem 0 0.4rem;
  color: var(--gold-2);
}

.cases-grid { grid-template-columns: repeat(3, 1fr); }
.case { transition: transform .28s ease, box-shadow .28s ease; }
.case:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.case-media { background: var(--navy); }
.about-media {
  background: #fff;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}
.about-media img { object-fit: contain; min-height: 220px; max-height: 280px; }

.tma-faq { margin-top: 1.2rem; display: grid; gap: 0.6rem; }
.tma-faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  transition: border-color .2s ease;
}
.tma-faq details[open] { border-color: var(--accent); }
.tma-faq summary { cursor: pointer; font-weight: 700; }
.tma-faq p { margin: 0.55rem 0 0; color: var(--muted); }

#guarantee .tma-guarantee {
  background: linear-gradient(135deg, var(--navy), #14325c);
  color: #fff;
  border-radius: 24px;
  padding: 2rem 1.6rem;
  border: 1px solid rgba(232,185,35,0.35);
  text-align: center;
}
#guarantee .kicker { color: var(--gold-2); }
#guarantee .lede { color: rgba(255,255,255,0.78); margin-inline: auto; }

.contact-box {
  background:
    radial-gradient(500px 200px at 10% 0%, rgba(0,102,255,0.25), transparent 50%),
    var(--ink);
  border: 1px solid rgba(232,185,35,0.28);
}
.contact-box .kicker { color: var(--gold-2); }
.contact-box .btn-solid { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink); }
.tma-phone {
  margin: 0.15rem 0 0.85rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.contact-box .tma-phone a { color: var(--gold-2); text-decoration: none; }
.tma-reviews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 1.3rem;
}
.tma-review {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: 0 12px 30px rgba(7, 20, 40, 0.06);
}
.tma-reviews .tma-stars {
  margin: 0 0 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}
.tma-reviews .tma-stars span {
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 1.15rem;
  margin-right: 0.35rem;
}
.tma-review p { margin: 0 0 12px; color: var(--ink); line-height: 1.5; }
.tma-review footer { display: grid; gap: 2px; }
.tma-review strong { font-family: var(--display); }
.tma-review span { color: var(--muted); font-size: 0.88rem; }

.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(232,185,35,0.22);
}
.footer a { color: var(--gold-2); }

.tma-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.tma-reveal.is-in { opacity: 1; transform: none; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: #fff;
  z-index: 80;
  box-shadow: -18px 0 50px rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform .32s ease;
}
.cart-drawer.is-open { transform: none; }
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7,20,40,0.45);
  z-index: 79;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.cart-backdrop.is-open { opacity: 1; pointer-events: auto; }
.cart-head, .cart-foot { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.cart-foot { border-bottom: 0; border-top: 1px solid var(--line); flex-direction: column; gap: 0.7rem; align-items: stretch; }
.cart-body { flex: 1; overflow: auto; padding: 0.8rem 1.1rem; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.cart-empty { color: var(--muted); padding: 1.5rem 0; }
.cart-qty { display: flex; gap: 0.35rem; align-items: center; }
.cart-qty button {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer;
}

body.nav-open .nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--ink);
  padding: 0.8rem 1.1rem 1.1rem;
  border-bottom: 1px solid rgba(232,185,35,0.25);
  z-index: 45;
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .hero { grid-template-columns: 1.05fr 0.95fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 0.85fr 1.15fr; }
  .mod-gallery, .mod-counters { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .tma-pains, .tma-products, .tma-route, .tma-bonuses, .cases-grid { grid-template-columns: repeat(2, 1fr); }
  #inicio .section-inner.hero, #leccion .tma-lesson { grid-template-columns: 1fr; }
}

@media (max-width: 899px) {
  .nav-burger { display: inline-block; margin-left: auto; }
  .topbar { flex-wrap: wrap; position: sticky; }
  .topbar-actions { margin-left: 0.4rem; }
  .btn-login { display: none; }
  .cards, .tma-grid, .tma-pains, .tma-products, .tma-route, .tma-bonuses, .cases-grid, .stats-grid {
    grid-template-columns: 1fr;
  }
  h1 { max-width: none; }
  #inicio .hero-media img { min-height: 180px; object-position: 78% center; }
  .cart-btn span.cart-label { display: none; }
  .wa-float { right: 0.8rem; bottom: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tma-reveal { opacity: 1; transform: none; }
  .card, .tma-card, .tma-product, .tma-route-item, .stat, .case { transition: none; }
}

#inicio { position: relative; }
#inicio::before {
  content: "";
  position: absolute;
  right: -40px;
  top: 40px;
  width: 420px;
  height: 420px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'><path fill='white' d='M40 8c-6 8-8 14-4 20 2 3 2 6 0 8-6 4-14 8-14 18h36c0-10-8-14-14-18-2-2-2-5 0-8 4-6 2-12-4-20z'/></svg>") center/contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}
.tma-board { position: relative; }
.hero-visual { position: relative; min-height: 320px; }
.tma-journey {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 18px 18px;
  color: #fff;
  pointer-events: none;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(7,20,40,.05) 0%, rgba(7,20,40,.78) 48%, rgba(7,20,40,.94) 100%);
}
#inicio .hero-media img { opacity: 0.28; }
.tj-board {
  position: absolute;
  inset: 0 0 46% 18%;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(7,20,40,.2), rgba(7,20,40,.55)),
    repeating-conic-gradient(#1d4ed8 0% 25%, #dbe7ff 0% 50%);
  background-size: auto, 36px 36px;
  animation: tjFade 14s ease infinite;
}
.tj-piece { position: absolute; font-size: 28px; line-height: 1; }
.tj-piece.a { left: 18%; top: 22%; animation: tjTry 14s ease infinite; }
.tj-piece.b { left: 42%; top: 38%; animation: tjTry 14s ease infinite 0.4s; }
.tj-piece.c { left: 64%; top: 24%; color: #e8b923; animation: tjHit 14s ease infinite; }
.tj-moves { display: flex; gap: 8px; }
.tj-moves span, .tj-path li {
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: .04em;
}
.tj-moves .hot { background: #e8b923; color: #071428; border-color: #e8b923; animation: tjHot 14s ease infinite; }
.tj-path { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tj-path li { animation: tjStep 14s ease infinite; }
.tj-path li:nth-child(2) { animation-delay: .4s; }
.tj-path li:nth-child(3) { animation-delay: .8s; }
.tj-path li:nth-child(4) { animation-delay: 1.2s; }
.tma-journey strong { font-family: Cinzel, serif; font-size: 1.15rem; }
.tma-journey em { color: #e8b923; font-style: normal; }
@keyframes tjFade { 0%, 100% { opacity: .35 } 30%, 70% { opacity: 1 } }
@keyframes tjTry { 0%, 20% { opacity: .35 } 35%, 55% { opacity: 1 } 70%, 100% { opacity: .2 } }
@keyframes tjHit { 0%, 40% { opacity: .2; transform: scale(1) } 55%, 80% { opacity: 1; transform: scale(1.15) } 100% { opacity: .4 } }
@keyframes tjHot { 0%, 45% { background: transparent; color: #fff } 55%, 100% { background: #e8b923; color: #071428 } }
@keyframes tjStep { 0%, 50% { opacity: .35 } 70%, 100% { opacity: 1 } }
.tma-guide { margin-top: 1.4rem; }
.tma-guide h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); }
.tma-opt, .tma-back {
  display: block;
  width: 100%;
  text-align: left;
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
}
.tma-opt strong, .tma-back strong { display: block; }
.tma-opt span, .tma-back span { display: block; color: rgba(255,255,255,.75); font-size: .92rem; margin-top: 2px; }
.tma-opt:hover, .tma-back:hover { background: rgba(232,185,35,.18); }
.tma-other { margin: 12px 0 0; color: rgba(255,255,255,.8); }
.tma-other a { color: #e8b923; }
.tma-pain-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 1.4rem; }
.tma-pain-col { border-radius: 22px; padding: 22px 18px; }
.tma-pain-col.is-alumno { background: #eef4ff; border: 1px solid #c5d7ff; }
.tma-pain-col.is-maestro { background: #fff1f3; border: 1px solid #f3c2cb; }
.tma-pain-col > h3 { margin-top: 0; }
.tma-pain-lead { font-weight: 650; }
.tma-pain-col.is-alumno .n { color: #0066ff; }
.tma-pain-col.is-maestro .n { color: #c41e3a; }
.tma-real, .tma-review, .tma-roles article, .tma-process article {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 16px;
}
#leccion .tma-real { background: rgba(255,255,255,.06); margin: 1rem 0 1.4rem; }
.tma-mini { display: grid; grid-template-columns: repeat(4, 42px); width: max-content; margin: 12px 0; }
.tma-mini span, .tma-mini b {
  width: 42px; height: 42px; display: grid; place-items: center; font-size: 22px;
}
.tma-mini span:nth-child(odd), .tma-mini b:nth-child(odd) { background: #dbe7ff; color: #071428; }
.tma-mini span:nth-child(even), .tma-mini b:nth-child(even) { background: #1d4ed8; color: #fff; }
.tma-ask { font-weight: 700; }
.tma-process, .tma-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 12px 0 22px; }
.tma-craft { background: #071428; color: #fff; }
.tma-craft .lede, .tma-craft p { color: rgba(255,255,255,.82); }
.tma-results { border-top: 1px solid rgba(255,255,255,.16); padding-top: 12px; }
@media (max-width: 860px) {
  .tma-pain-split, #inicio .section-inner.hero { grid-template-columns: 1fr; }
}

/* Piezas 3D: hero flotante + rey y reina que juegan con el scroll */
#inicio::before { opacity: 0; }
#inicio .hero-visual { position: relative; min-height: 340px; }
#inicio .hero-media {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  border: 0;
  box-shadow: none;
}
#inicio .hero-media img { opacity: 0; min-height: 0; }
.tma-stage {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  z-index: 1;
}
.tma-hero-art {
  width: min(100%, 640px);
  height: auto;
  animation: tmaHover 5.6s ease-in-out infinite;
  filter: drop-shadow(0 22px 28px rgba(0,0,0,.45));
}
@keyframes tmaHover {
  0%, 100% { transform: translateY(0) rotate(-1.1deg); }
  50% { transform: translateY(-18px) rotate(1.1deg); }
}
.tma-play {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
}
.tma-piece {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: min(200px, 26vw);
  transform-origin: 50% 78%;
  will-change: transform;
}
.tma-piece.is-queen { width: min(176px, 23vw); }
.tma-piece img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 16px rgba(0,0,0,.32));
}
.tma-piece .tma-ripple {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.75);
  box-shadow: 0 0 0 1px rgba(232,185,35,.35);
  transform: translate(-50%, -50%) scale(.2);
  opacity: 0;
}
.tma-piece.is-impact img { animation: tmaDistort .55s cubic-bezier(.2,.7,.2,1); }
.tma-piece.is-impact .tma-ripple { animation: tmaRipple .62s ease-out; }
@keyframes tmaDistort {
  0% { transform: scale(1, 1); }
  14% { transform: scale(1.2, .74); filter: contrast(1.5) saturate(1.4) drop-shadow(0 0 14px rgba(232,185,35,.85)); }
  36% { transform: scale(.9, 1.14); filter: contrast(1.25) saturate(1.2); }
  58% { transform: scale(1.05, .96); }
  100% { transform: scale(1, 1); }
}
@keyframes tmaRipple {
  0% { opacity: .9; transform: translate(-50%, -50%) scale(.25); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.8); }
}
.tma-glass {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--hx, 50%) var(--hy, 40%), rgba(255,255,255,.62), rgba(232,185,35,.2) 10%, transparent 26%);
  mix-blend-mode: screen;
  opacity: 0;
}
.tma-glass.is-on { animation: tmaGlass .48s ease-out; }
@keyframes tmaGlass {
  0% { opacity: 0; transform: scale(.55); }
  22% { opacity: .95; }
  100% { opacity: 0; transform: scale(1.2); }
}
@media (max-width: 860px) {
  .tma-stage { min-height: 280px; }
  .tma-piece { width: min(132px, 34vw); }
  .tma-piece.is-queen { width: min(118px, 30vw); }
}
@media (prefers-reduced-motion: reduce) {
  .tma-hero-art { animation: none; }
  .tma-play { display: none; }
}

.tma-marco-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.72fr);
  gap: 28px;
  align-items: start;
}
.tma-asks { display: grid; gap: 12px; margin-top: 1.2rem; }
.tma-asks article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
}
.tma-asks h3 { margin: 0 0 6px; font-size: 1.05rem; }
.tma-asks p { margin: 0; color: var(--muted); }
.tma-reel {
  background: #071428;
  border-radius: 24px;
  padding: 12px;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.tma-reel iframe, .tma-reel video {
  width: min(100%, 360px);
  aspect-ratio: 9 / 16;
  height: auto;
  max-height: 640px;
  border: 0;
  border-radius: 16px;
  background: #000;
}
.tma-reel .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.tma-inspire {
  margin-top: 2rem;
  background: #071428;
  color: #fff;
  border-radius: 24px;
  padding: 22px 22px 8px;
}
.tma-inspire .kicker { color: #e8b923; }
.tma-inspire h3 { color: #fff; margin-top: 0; }
.tma-inspire p { color: rgba(255,255,255,.86); }
.tma-diff-title { margin-top: 2rem; }
.tma-diffs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tma-diffs article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
}
.tma-diffs h3 { margin: 0 0 6px; font-size: 1.02rem; }
.tma-diffs p { margin: 0; color: var(--muted); }
.tma-result {
  margin-top: 1.6rem;
  font-size: 1.15rem;
  max-width: 40rem;
}
.tma-motto {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0.4rem 0 0;
}
.tma-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0.2rem;
}
.tma-chain li {
  background: #071428;
  color: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.92rem;
}
.tma-chain li:not(:last-child)::after {
  content: " \2192";
  color: #e8b923;
}
.tma-team { margin: 0.4rem 0 1.4rem; }
.tma-team img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 22px;
}
.tma-team figcaption {
  margin-top: 8px;
  color: rgba(255,255,255,.72);
  font-size: 0.92rem;
}
@media (max-width: 860px) {
  .tma-marco-top, .tma-diffs, .tma-reviews { grid-template-columns: 1fr; }
}

.topbar { background: #024a39; border-bottom-color: rgba(228,212,191,.35); }
.btn-solid { background: #036c52; color: #fff; box-shadow: none; }
.btn-solid:hover { background: #024a39; filter: none; }
.contact-box .btn-solid { background: #e4d4bf; color: #10241e; }
#inicio.section { background: #036c52; }
.stat { background: #10241e; }
.footer { background: #10241e; }
.tma-hero-art { width: min(100%, 380px); }
.tma-play { display: none !important; }

/* Torremex: logo completo, linea dorada, scroll y hover */
:root { --gold-line: #e2b657; }

.topbar {
  border-bottom: 3px solid var(--gold-line);
  box-shadow: 0 8px 24px rgba(2, 36, 28, 0.18);
}
.topbar .brand-logo-wrap { display: inline-flex; align-items: center; overflow: visible; }
.topbar .brand-logo {
  width: 54px !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent;
  transition: transform .35s ease;
}
.topbar .brand:hover .brand-logo { transform: scale(1.08) rotate(-4deg); }
.topbar .nav a {
  position: relative;
  transition: color .25s ease;
}
.topbar .nav a::after {
  content: "";
  position: absolute;
  left: 0.15rem;
  right: 0.15rem;
  bottom: -0.35rem;
  height: 2px;
  background: var(--gold-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.topbar .nav a:hover::after { transform: scaleX(1); }

.section:not(#inicio) { border-top: 3px solid var(--gold-line); }
.footer { border-top: 3px solid var(--gold-line); }
.section h2::after,
#inicio h1::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 3px;
  margin-top: 0.7rem;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-line), #e4d4bf);
}

#inicio.section { overflow: visible; }
#inicio .section-inner.hero {
  align-items: start;
  padding: 2.2rem 1.25rem 2.6rem;
}
#inicio .hero-visual,
#inicio .tma-stage {
  min-height: 0;
  height: auto;
  overflow: visible;
}
#inicio .tma-stage { padding: 0.4rem 0 1.2rem; }
.tma-hero-art {
  width: min(100%, 340px);
  max-height: none;
  height: auto;
  object-fit: contain;
  display: block;
  margin-inline: auto;
  animation: tmaIn .8s cubic-bezier(.2,.7,.2,1) both, tmaHover 6.4s ease-in-out 0.85s infinite;
}
@keyframes tmaIn {
  from { opacity: 0; transform: translateY(22px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes tmaHover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
#inicio .kicker,
#inicio h1,
#inicio .lede,
#inicio .cta-row,
#inicio .tma-guide {
  animation: tmaIn .75s cubic-bezier(.2,.7,.2,1) both;
}
#inicio h1 { animation-delay: .08s; }
#inicio .lede { animation-delay: .16s; }
#inicio .cta-row { animation-delay: .24s; }
#inicio .tma-guide { animation-delay: .32s; }

.tma-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1);
}
.tma-reveal.is-in { opacity: 1; transform: none; }

.btn-solid,
.btn-ghost,
.cart-btn,
.wa-float,
.tma-opt,
.card,
.tma-card,
.tma-product,
.tma-route-item,
.step,
.stat {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease, color .3s ease;
}
.btn-solid:hover,
.cart-btn:hover,
.wa-float:hover { transform: translateY(-3px); }
.tma-opt:hover,
.card:hover,
.tma-card:hover,
.tma-product:hover,
.tma-route-item:hover,
.step:hover {
  transform: translateY(-8px);
  border-color: var(--gold-line);
  box-shadow: 0 16px 34px rgba(16, 36, 30, 0.12);
}
.wa-float { box-shadow: 0 0 0 3px var(--gold-line); }
.stat:hover { border-color: var(--gold-line); }

@media (max-width: 860px) {
  #inicio .section-inner.hero { padding-top: 1.4rem; }
  .tma-hero-art { width: min(78vw, 280px); }
  .topbar .brand-logo { width: 46px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .tma-hero-art,
  #inicio .kicker,
  #inicio h1,
  #inicio .lede,
  #inicio .cta-row,
  #inicio .tma-guide { animation: none; }
  .tma-reveal { opacity: 1; transform: none; }
}
