/* ============================================================
   TENISA S.A. — Landing corporativa
   Sistema de diseño. Paleta derivada del logo (grafito + rojo + plata).
   Sin frameworks ni dependencias: 100% estático.
   ============================================================ */

:root {
  /* Marca */
  --ink:          #15181d;   /* grafito casi negro (texto/headers) */
  --ink-2:        #232831;   /* grafito secundario */
  --ink-3:        #3a414c;   /* grafito suave */
  --red:          #e30613;   /* rojo Tenisa (acento/CTA) */
  --red-dark:     #b80410;   /* rojo hover */
  --silver:       #9aa1ab;   /* plata del globo */
  --silver-2:     #c7ccd3;
  --silver-3:     #e9ebee;   /* plata muy clara (bordes) */

  /* Neutros */
  --bg:           #ffffff;
  --bg-alt:       #f5f6f8;
  --bg-dark:      #0f1217;
  --text:         #1d2127;
  --text-soft:    #5a626d;
  --text-invert:  #f4f5f7;
  --white:        #ffffff;

  /* Sistema */
  --radius:       14px;
  --radius-sm:    10px;
  --radius-lg:    22px;
  --shadow-sm:    0 1px 2px rgba(21,24,29,.06), 0 2px 8px rgba(21,24,29,.05);
  --shadow:       0 4px 14px rgba(21,24,29,.08), 0 12px 32px rgba(21,24,29,.07);
  --shadow-lg:    0 18px 50px rgba(21,24,29,.16);
  --maxw:         1180px;
  --gutter:       clamp(1.1rem, 4vw, 2.5rem);
  --ease:         cubic-bezier(.22,.61,.36,1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: var(--text-invert); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); border-radius: 2px; }
.section--dark .eyebrow { color: #ff5965; }

h1, h2, h3 { line-height: 1.12; color: var(--ink); letter-spacing: -.02em; font-weight: 800; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
h2.title { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin-top: .6rem; }
.lead { font-size: clamp(1.02rem, 2vw, 1.18rem); color: var(--text-soft); max-width: 58ch; }
.section--dark .lead { color: #c2c8d2; }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 2px solid transparent; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(227,6,19,.28); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(227,6,19,.34); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--silver-2); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.section--dark .btn--ghost,
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover { border-color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--silver-3);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.header__logo img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav__links { display: flex; gap: clamp(1rem, 2.2vw, 1.9rem); list-style: none; }
.nav__links a { font-weight: 600; font-size: .96rem; color: var(--ink-2); transition: color .2s; }
.nav__links a:hover { color: var(--red); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; transition: .3s; border-radius: 2px; }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links, .nav .btn { display: none; }
  .nav__links {
    position: absolute; inset: 74px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--silver-3); padding: .5rem var(--gutter) 1.2rem;
    box-shadow: var(--shadow);
  }
  .nav__links a { padding: .85rem 0; border-bottom: 1px solid var(--silver-3); }
  .nav.open .nav__links { display: flex; }
  .nav.open .btn { display: inline-flex; margin-top: .8rem; }
  .nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 130% at 85% -10%, #2a3140 0%, var(--bg-dark) 55%, #090b0f 100%);
  color: var(--text-invert);
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 50% at 12% 18%, rgba(227,6,19,.16), transparent 60%),
    radial-gradient(40% 40% at 95% 80%, rgba(154,161,171,.16), transparent 60%);
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: clamp(2rem,5vw,3rem); grid-template-columns: 1.15fr .85fr; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.7rem); color: #fff; }
.hero h1 .accent { color: #ff3b47; }
.hero .lead { color: #cdd3dd; margin-top: 1.2rem; font-size: clamp(1.05rem,2.2vw,1.25rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.12); }
.hero__trust div { display: flex; flex-direction: column; }
.hero__trust b { font-size: 1.5rem; color: #fff; line-height: 1.1; }
.hero__trust span { font-size: .82rem; color: #9aa3b0; letter-spacing: .02em; }

/* Tarjeta de verticales en hero */
.hero__card {
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg);
  padding: 1.6rem; backdrop-filter: blur(6px);
}
.hero__card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.vrow { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; border-top: 1px solid rgba(255,255,255,.1); }
.vrow:first-of-type { border-top: 0; }
.vrow__icon { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(227,6,19,.16); color: #ff5965; }
.vrow__icon.tech { background: rgba(154,161,171,.18); color: #cdd3dd; }
.vrow b { color: #fff; display: block; font-size: .98rem; }
.vrow span { color: #9aa3b0; font-size: .85rem; }

@media (max-width: 880px) { .hero__inner { grid-template-columns: 1fr; } .hero__card { order: 2; } }

/* ---------- Verticales / Qué hacemos ---------- */
.feat-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); }
.feat {
  background: var(--bg); border: 1px solid var(--silver-3); border-radius: var(--radius);
  padding: 1.7rem; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--silver-2); }
.feat__icon { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(160deg, var(--ink), var(--ink-3)); color: #fff; margin-bottom: 1.1rem; }
.feat h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.feat p { color: var(--text-soft); font-size: .98rem; }
@media (max-width: 820px) { .feat-grid { grid-template-columns: 1fr; } }

/* ---------- Marcas ---------- */
.vertical { margin-top: clamp(2rem, 4vw, 3rem); }
.vertical__head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.3rem; }
.vertical__tag {
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--ink); padding: .35rem .8rem; border-radius: 999px;
}
.vertical__tag.sport { background: var(--red); }
.vertical__head p { color: var(--text-soft); font-size: .95rem; }

.brand-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, 1fr); }
.brand-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--silver-3); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.brand-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--red), var(--silver)); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.brand-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--silver-2); }
.brand-card:hover::before { transform: scaleX(1); }
/* Caja de logo con tamaño uniforme y proporcional para todas las marcas */
.brand-card__logo {
  height: 96px; display: grid; place-items: center; margin-bottom: 1rem;
  padding: .4rem; border-radius: var(--radius-sm); background: var(--bg-alt);
}
.brand-card__logo img { max-height: 60px; max-width: 78%; width: auto; object-fit: contain; }
.brand-card__body { flex: 1; }
.brand-card__role {
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red); margin-bottom: .35rem;
}
.brand-card__name { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.brand-card p { color: var(--text-soft); font-size: .92rem; margin-top: .4rem; }
.brand-card__link {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem;
  font-weight: 700; font-size: .9rem; color: var(--ink);
}
.brand-card__link svg { transition: transform .2s; }
.brand-card:hover .brand-card__link { color: var(--red); }
.brand-card:hover .brand-card__link svg { transform: translate(2px,-2px); }
@media (max-width: 820px) { .brand-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .brand-grid { grid-template-columns: 1fr; } }

/* ---------- Canales (mayorista / minorista) ---------- */
.channels { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
.channel {
  border-radius: var(--radius-lg); padding: clamp(1.6rem,3vw,2.4rem);
  border: 1px solid var(--silver-3); background: #fff; position: relative; overflow: hidden;
}
.channel--whole { background: linear-gradient(165deg, var(--ink), #0c0f14); color: #fff; border-color: transparent; }
.channel--whole h3, .channel--whole p { color: #fff; }
.channel__pill { display: inline-flex; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.channel--retail .channel__pill { background: var(--bg-alt); color: var(--ink); }
.channel--whole .channel__pill { background: rgba(227,6,19,.22); color: #ff7d86; }
.channel h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.channel p { color: var(--text-soft); }
.channel ul { list-style: none; margin: 1.2rem 0 1.6rem; display: grid; gap: .6rem; }
.channel li { display: flex; gap: .6rem; align-items: flex-start; font-size: .96rem; }
.channel li svg { flex: 0 0 18px; margin-top: .28rem; color: var(--red); }
.channel--whole li svg { color: #ff5965; }
@media (max-width: 760px) { .channels { grid-template-columns: 1fr; } }

/* ---------- Por qué TENISA ---------- */
.why-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(4, 1fr); }
.why { padding: 1.5rem; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--silver-3); }
.why b { display: block; font-size: 2rem; color: var(--red); line-height: 1; margin-bottom: .4rem; letter-spacing: -.03em; }
.why span { font-weight: 700; color: var(--ink); display: block; margin-bottom: .25rem; }
.why p { font-size: .9rem; color: var(--text-soft); }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--silver-3); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; padding: 1.3rem 2.5rem 1.3rem 0;
  font-size: 1.08rem; font-weight: 700; color: var(--ink); position: relative; display: flex;
}
.faq__q::after {
  content: ""; position: absolute; right: .3rem; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: translateY(-65%) rotate(45deg); transition: transform .3s var(--ease);
}
.faq__item.open .faq__q::after { transform: translateY(-35%) rotate(-135deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq__a p { padding: 0 0 1.3rem; color: var(--text-soft); }

/* ---------- Formulario / Contacto ---------- */
.contact-grid { display: grid; gap: clamp(1.8rem,4vw,3.2rem); grid-template-columns: .92fr 1.08fr; align-items: start; }
.contact-aside h2 { margin-bottom: 1rem; }
.contact-aside .lead { margin-bottom: 1.8rem; }
.contact-list { list-style: none; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .ic { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-alt); color: var(--red); }
.section--dark .contact-list .ic { background: rgba(255,255,255,.08); }
.contact-list b { display: block; color: var(--ink); }
.section--dark .contact-list b { color: #fff; }
.contact-list a, .contact-list span { color: var(--text-soft); }
.section--dark .contact-list a, .section--dark .contact-list span { color: #b9bfc9; }

.form {
  background: #fff; border: 1px solid var(--silver-3); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.3rem); box-shadow: var(--shadow);
}
.form__row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: .4rem; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--silver-2); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,6,19,.12);
}
.field--phone { display: flex; }
.field--phone .prefix {
  display: inline-flex; align-items: center; padding: 0 .8rem; border: 1.5px solid var(--silver-2);
  border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--bg-alt);
  font-weight: 600; color: var(--text-soft);
}
.field--phone input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
/* Honeypot anti-spam (oculto a humanos, visible a bots) */
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; opacity: 0; pointer-events: none; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--text-soft); margin-bottom: 1.1rem; }
.consent input { margin-top: .2rem; accent-color: var(--red); }
.form__note { font-size: .82rem; color: var(--text-soft); margin-top: .9rem; text-align: center; }
.form__msg { padding: .9rem 1rem; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 600; margin-bottom: 1rem; display: none; }
.form__msg.show { display: block; }
.form__msg.ok { background: #e7f6ec; color: #157347; border: 1px solid #b6e0c4; }
.form__msg.err { background: #fdeaec; color: #b80410; border: 1px solid #f3c2c7; }
.h-captcha { margin-bottom: 1.1rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--bg-dark); color: #aeb5c0; padding-block: clamp(2.6rem,5vw,3.8rem) 1.6rem; }
.footer__top { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; padding-bottom: 2.2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand img { height: 40px; margin-bottom: 1rem; }
.footer__brand p { font-size: .92rem; max-width: 34ch; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { list-style: none; display: grid; gap: .55rem; }
.footer a { color: #aeb5c0; font-size: .94rem; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__social { display: flex; gap: .7rem; margin-top: 1.2rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #fff; transition: background .2s, transform .2s; }
.footer__social a:hover { background: var(--red); transform: translateY(-2px); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; padding-top: 1.4rem; font-size: .85rem; color: #7e8694; }
.footer__bottom a { color: #7e8694; }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Skip link accesibilidad */
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: .7rem 1.1rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
