/* Grupo TTC · hoja de estilos única. Sin dependencias externas (compatible con CSP estricta). */

:root {
  --bg: #f4f4f1;
  --ink: #0c0e11;
  --text: #15181d;
  --muted: #6a7079;
  --line: rgba(12, 14, 17, .14);
  --gold: #b8874a;
  --wrap: 1280px;
  --gut: 28px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .18, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { margin: 0; font-weight: 700; letter-spacing: -.045em; line-height: .98; }
p { margin: 0; }
ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - var(--gut) * 2); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff;
  padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--bg);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(244, 244, 241, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: inline-flex; text-decoration: none; }
.brand img { height: 42px; width: auto; }

.menu { display: flex; align-items: center; gap: 30px; }
.menu a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text);
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat;
  padding-bottom: 3px; transition: background-size .4s var(--ease);
}
.menu a:hover { background-size: 100% 1px; }

.burger {
  display: none; position: relative; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
}
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink);
  transition: transform .35s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .burger { display: block; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start;
    gap: 0; padding: 8px var(--gut) 28px; background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .menu a { font-size: 30px; font-weight: 650; letter-spacing: -.03em; padding: 10px 0; background: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(90px, 16vw, 200px) 0 clamp(70px, 9vw, 120px); }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 36px; letter-spacing: .01em; }
.hero h1 {
  font-size: clamp(3.1rem, 9.2vw, 8.4rem); font-weight: 760; letter-spacing: -.06em; line-height: .92;
  text-wrap: balance; max-width: 15ch;
}
.soft { color: #9a9ea5; }
.hero-foot {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end;
  margin-top: clamp(48px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--ink);
}
.lede { max-width: 560px; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--text); }
.cta {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 600; font-size: 17px;
  padding-bottom: 6px; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 1px no-repeat;
  white-space: nowrap; transition: gap .4s var(--ease);
}
.cta i { font-style: normal; transition: transform .4s var(--ease); }
.cta:hover i { transform: translateX(6px); }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--bg); overflow: hidden; white-space: nowrap; }
.track { display: inline-flex; align-items: center; gap: 36px; padding: 26px 0; animation: marquee 42s linear infinite; }
.track span { font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 650; letter-spacing: -.035em; }
.track b { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(90px, 13vw, 170px) 0; }
.section-line { border-top: 1px solid var(--line); }
.kicker { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 26px; }
.section h2, .contact h2 { font-size: clamp(2.4rem, 5.6vw, 4.8rem); font-weight: 720; margin-bottom: clamp(50px, 7vw, 90px); }

.statement {
  font-size: clamp(1.9rem, 4.6vw, 3.9rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.1;
  max-width: 1040px; text-wrap: pretty;
}
.statement strong { font-weight: 700; }

/* Índice de marcas (lista, sin tarjetas) */
.index { border-top: 1px solid var(--ink); }
.index li { border-bottom: 1px solid var(--line); }
.index a {
  display: grid; grid-template-columns: 70px minmax(0, 1.4fr) minmax(0, 2fr) auto; gap: 24px; align-items: center;
  padding: clamp(22px, 3vw, 34px) 0; text-decoration: none; position: relative;
  transition: padding .5s var(--ease);
}
.index a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.index a:hover::after { transform: scaleX(1); }
.index a:hover { padding-left: 14px; }
.index .n { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.index .name { font-size: clamp(2rem, 4.4vw, 3.8rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.index .desc { color: var(--muted); font-size: 16px; max-width: 460px; }
.index .go { font-size: 15px; font-weight: 600; white-space: nowrap; }
.index .go i { font-style: normal; display: inline-block; transition: transform .4s var(--ease); }
.index a:hover .go i { transform: translate(3px, -3px); }

/* Principios */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.principles p { font-size: 1.12rem; color: var(--muted); border-top: 1px solid var(--ink); padding-top: 24px; }
.principles strong { display: block; color: var(--text); font-size: 1.4rem; font-weight: 700; letter-spacing: -.03em; margin-bottom: 12px; }
.num { display: block; font-size: 14px; color: var(--gold); font-weight: 700; margin-bottom: 18px; }

/* Contacto */
.contact { background: var(--ink); color: var(--bg); padding: clamp(110px, 15vw, 190px) 0; }
.contact .kicker { color: #8d939b; }
.contact h2 { color: #fff; margin-bottom: 40px; }
.mail {
  display: inline-block; font-size: clamp(1.8rem, 6vw, 5.4rem); font-weight: 700; letter-spacing: -.05em;
  text-decoration: none; color: #fff; line-height: 1;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--ease), color .3s;
}
.mail:hover { background-size: 100% 2px; color: #e9d4ae; }
address { margin-top: 48px; color: #8d939b; font-size: 16px; }

/* Pie */
.site-footer { background: var(--bg); padding: 56px 0 44px; font-size: 15px; color: var(--muted); }
.foot { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; }
.foot-logo { height: 34px; width: auto; }
.foot-links { display: flex; gap: 28px; justify-content: flex-end; flex-wrap: wrap; }
.foot-links a { text-decoration: none; color: var(--text); }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-legal { grid-column: 1 / -1; font-size: 14px; border-top: 1px solid var(--line); padding-top: 22px; }

/* ---------- Entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .index li:nth-child(2) { --d: 60ms; }
.js .index li:nth-child(3) { --d: 120ms; }
.js .index li:nth-child(4) { --d: 180ms; }
.js .index li:nth-child(5) { --d: 240ms; }
.js .index li:nth-child(6) { --d: 300ms; }
.js .principles p:nth-child(2) { --d: 120ms; }
.js .principles p:nth-child(3) { --d: 240ms; }

/* ---------- Legales (texto editorial, sin cajas) ---------- */
.legal-hero { padding: clamp(80px, 12vw, 150px) 0 clamp(40px, 6vw, 70px); }
.legal-hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 740; letter-spacing: -.055em; line-height: .95; }
.legal-hero p { color: var(--muted); margin-top: 22px; font-size: 15px; }
.back { display: inline-block; margin-bottom: 40px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--text); }
.back:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal { padding: 0 0 clamp(90px, 12vw, 150px); }
.legal-body { max-width: 760px; border-top: 1px solid var(--ink); padding-top: 40px; }
.legal-body h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.025em; margin: 52px 0 14px; }
.legal-body p, .legal-body li { color: #2b3038; font-size: 1.02rem; }
.legal-body p + p { margin-top: 1em; }
.legal-body ul { padding-left: 1.2em; margin: 12px 0; }
.legal-body li + li { margin-top: 8px; }
.legal-body a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.ficha { margin: 20px 0 0; display: grid; grid-template-columns: 200px 1fr; border-top: 1px solid var(--line); }
.ficha dt, .ficha dd { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; margin: 0; }
.ficha dt { color: var(--muted); padding-right: 20px; }
.ficha dd { font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .index a { grid-template-columns: 50px 1fr auto; }
  .index .desc { grid-column: 2 / 3; grid-row: 2; max-width: none; }
  .index .go { grid-column: 3; grid-row: 1; }
  .index .n { grid-row: 1; }
  .principles { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  :root { --gut: 20px; }
  body { font-size: 16px; }
  .nav { height: 72px; }
  .brand img { height: 36px; }
  .hero-foot { grid-template-columns: 1fr; gap: 28px; }
  .index a { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .index .n { display: none; }
  .index .name { grid-column: 1; grid-row: 1; font-size: clamp(1.7rem, 8vw, 2.1rem); min-width: 0; overflow-wrap: anywhere; }
  .index .go { grid-column: 2; grid-row: 1; align-self: start; font-size: 13px; text-align: right; }
  .index .desc { grid-column: 1 / -1; grid-row: 2; }
  .foot { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
  .ficha { grid-template-columns: 1fr; }
  .ficha dt { border-bottom: 0; padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
