/* ===========================================================================
   IDENTIKGLOBAL — identidad de club deportivo
   Tipografia: Archivo variable (eje de anchura 62-125%, peso 100-900).
   Una sola familia, tres voces: dorsal (expandida), texto (normal), etiqueta
   (condensada). El eje de anchura es lo que da el aire de equipacion.
   =========================================================================== */

/* ===== TIPOGRAFIA AUTOALOJADA ===== */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== VARIABLES ===== */
:root {
  /* Identidad de marca: el teal y el negro no se tocan */
  --teal: #00b4d8;
  --teal-dark: #0090b0;
  --teal-bright: #2ad4f5;      /* teal legible sobre negro */
  --black: #0a0a0a;
  --ink: #12171d;              /* negro con aire, para capas */
  --ink-soft: #1c242c;
  --white: #ffffff;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #12161c;
  --text-muted: #566070;       /* AA sobre --bg y sobre blanco */
  --border: #e4e7ec;

  --font: 'Archivo', system-ui, -apple-system, sans-serif;

  --radius: 1.2rem;
  --radius-sm: 0.6rem;
  --shadow: 0 4px 24px rgba(10,12,16,0.08);
  --shadow-lg: 0 18px 60px rgba(10,12,16,0.22);

  /* Curvas exponenciales: nada de rebotes */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* Escala z semantica (los valores altos conviven con Elementor) */
  --z-header: 1000;
  --z-modal: 9000;
  --z-toast: 9999;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== RESET DE ELEMENTOR — quitar padding/margin de los wrappers ===== */
.elementor-section,
.elementor-container,
.elementor-row,
.elementor-column,
.elementor-column-wrap,
.elementor-widget-wrap {
  padding: 0 !important;
  margin: 0 !important;
}
.elementor-widget-html { width: 100%; }

html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1.6rem; line-height: 1.6;
  color: var(--text); background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }
ul { list-style: none; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 0.4rem; }

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4 {
  font-weight: 900; line-height: 1.02;
  font-stretch: 118%;                 /* dorsal: ancha y pesada */
  letter-spacing: -0.03em;            /* suelo -0.04em */
  text-transform: uppercase;
  text-wrap: balance;
}
h1 { font-size: clamp(4.2rem, 7.5vw, 9rem); }
h2 { font-size: clamp(3rem, 4.6vw, 5.6rem); }
h3 { font-size: clamp(1.9rem, 2.2vw, 2.6rem); font-stretch: 108%; letter-spacing: -0.02em; }
h4 { font-size: 1.6rem; font-stretch: 100%; }
p { text-wrap: pretty; }

/* Etiqueta condensada: la voz "meta" del sistema */
.kicker {
  font-stretch: 74%; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 1.25rem;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem;
  padding: 1.5rem 3rem; font-weight: 800; font-size: 1.4rem;
  font-stretch: 88%; text-transform: uppercase; letter-spacing: 0.06em;
  border: 2px solid transparent; border-radius: 0.6rem;
  transition: background 0.25s var(--ease-out-quart),
              color 0.25s var(--ease-out-quart),
              border-color 0.25s var(--ease-out-quart),
              transform 0.25s var(--ease-out-quart),
              box-shadow 0.25s var(--ease-out-quart);
  white-space: nowrap; cursor: pointer;
}
.btn-primary { background: var(--teal); color: #04222b; }
.btn-primary:hover { background: var(--teal-bright); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,180,216,0.35); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-secondary:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--teal-dark); border-color: currentColor; }
.btn-outline:hover { background: var(--teal-dark); color: var(--white); }
.btn-add { background: var(--teal); color: #04222b; border-color: var(--teal); }
.btn-add:hover { background: var(--teal-bright); border-color: var(--teal-bright); }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ===== BARRA DE AVISO ===== */
.announcement-bar {
  background: var(--black); color: rgba(255,255,255,0.9); text-align: center;
  padding: 1rem 2rem; font-size: 1.15rem; font-weight: 700;
  font-stretch: 78%; letter-spacing: 0.14em; text-transform: uppercase;
}

/* ===== CABECERA ===== */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header); background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease-out-quart);
}
.site-header.scrolled { box-shadow: 0 2px 24px rgba(10,12,16,0.1); }
.header-inner {
  max-width: 1360px; margin: 0 auto; padding: 1.4rem 2.4rem;
  display: flex; align-items: center; gap: 2rem;
}
.header-logo { display: flex; align-items: center; gap: 1rem; }
.ig-badge {
  width: 3.8rem; height: 3.8rem; background: var(--black); border-radius: 0.6rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ig-badge span { color: var(--teal); font-weight: 900; font-size: 1.35rem; font-stretch: 112%; }
.ig-name {
  font-weight: 900; font-size: 1.9rem; color: var(--black);
  font-stretch: 112%; letter-spacing: -0.03em; text-transform: uppercase;
}
.header-nav { flex: 1; display: flex; justify-content: center; }
.header-nav ul { display: flex; gap: 0.2rem; }
.header-nav a {
  position: relative; padding: 0.9rem 1.3rem; font-size: 1.3rem;
  font-weight: 700; font-stretch: 86%; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted);
  transition: color 0.2s var(--ease-out-quart);
}
.header-nav a::after {
  content: ''; position: absolute; left: 1.3rem; right: 1.3rem; bottom: 0.4rem;
  height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease-out-quart);
}
.header-nav a:hover, .header-nav a.active { color: var(--text); }
.header-nav a:hover::after, .header-nav a.active::after { transform: scaleX(1); }
.header-icons { display: flex; align-items: center; gap: 1.6rem; }
.header-icons a, .header-icons button { line-height: 0; }
.header-icons svg { width: 1.9rem; height: 1.9rem; }
#header-account { font-stretch: 86%; text-transform: uppercase; letter-spacing: 0.05em; }
.menu-toggle { background: none; border: none; padding: 0.4rem; display: none; }
.menu-toggle svg { width: 2.4rem; height: 2.4rem; }

/* ===== LOGO (pie) ===== */
.logo {
  font-size: 2.6rem; font-weight: 900; color: var(--white);
  font-stretch: 112%; letter-spacing: -0.03em; text-transform: uppercase;
}
.logo span { color: var(--teal); }

/* ===== HERO ===== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--black); color: var(--white);
  padding: clamp(9rem, 16vh, 15rem) 2.4rem clamp(7rem, 12vh, 11rem);
  min-height: min(88vh, 78rem); display: flex; align-items: center;
}
/* --p lo escribe el JS al hacer scroll: 0 arriba del todo, 1 cuando el hero
   ya ha salido por arriba. Mueve el fotograma del video y el texto. */
.hero { --p: 0; }

/* La foto es la capa base: se ve siempre, incluso si el video no carga */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -3;
  background-image: url('../img/hero-tunel.webp');
  background-size: cover; background-position: 62% center;
}

/* Los fotogramas se pintan en un canvas encima de la foto. Solo aparece
   cuando estan todos cargados; si algo falla, se queda la foto y no se nota. */
.hero-frames {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.5s var(--ease-out-quart);
  pointer-events: none;
}
.hero-frames.lista { opacity: 1; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(6,8,10,0.96) 0%, rgba(6,8,10,0.86) 34%, rgba(6,8,10,0.35) 66%, rgba(6,8,10,0.55) 100%),
    linear-gradient(to top, rgba(6,8,10,0.85) 0%, transparent 42%);
}
.hero-inner {
  max-width: 1360px; width: 100%; margin: 0 auto; position: relative;
  text-align: left;
  /* El texto sube mas rapido que la foto: eso es lo que crea la profundidad */
  transform: translate3d(0, calc(var(--p) * -8rem), 0);
  opacity: calc(1 - var(--p) * 1.15);
  will-change: transform, opacity;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.8rem;
  color: var(--teal-bright); font-size: 1.2rem; font-weight: 800;
  font-stretch: 74%; text-transform: uppercase; letter-spacing: 0.16em;
  margin-bottom: 2.2rem; padding-left: 4.4rem; position: relative;
}
/* Regla corta en lugar de la pastilla: menos plantilla, mas señal */
.hero-badge::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 3.2rem; height: 2px; background: var(--teal);
}
.hero h1 { max-width: 16ch; margin-bottom: 2.4rem; }
.hero h1 em { color: var(--teal); font-style: normal; }
.hero p {
  font-size: clamp(1.6rem, 1.5vw, 1.9rem); color: rgba(255,255,255,0.82);
  line-height: 1.75; max-width: 52ch; margin-bottom: 3.4rem;
}
.hero-cta { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* ===== MARCADOR (barra de datos) ===== */
.b2b-bar { background: var(--black); padding: 0 2.4rem 4.5rem; }
.b2b-bar-inner {
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.14);
}
.b2b-stat { padding: 3.2rem 1.6rem 0; text-align: left; position: relative; }
.b2b-stat + .b2b-stat { border-left: 1px solid rgba(255,255,255,0.14); }
.b2b-stat .number {
  display: block; font-size: clamp(3.6rem, 5vw, 5.6rem); font-weight: 900;
  font-stretch: 122%; letter-spacing: -0.04em; color: var(--white); line-height: 0.92;
}
.b2b-stat .label {
  display: block; margin-top: 1rem; font-size: 1.2rem; font-weight: 700;
  font-stretch: 76%; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--teal-bright);
}

/* ===== TICKER (marcador LED) ===== */
.ticker {
  background: var(--teal); color: #04222b; padding: 1.3rem 0; overflow: hidden;
  border-top: 3px solid var(--black); border-bottom: 3px solid var(--black);
}
.ticker-track {
  display: flex; white-space: nowrap; animation: ticker 30s linear infinite;
  font-size: 1.25rem; font-weight: 900; font-stretch: 80%;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.ticker-track span { padding: 0 2.6rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== SECCIONES ===== */
.section { padding: clamp(6rem, 10vw, 10rem) 2.4rem; }
.section-inner { max-width: 1360px; margin: 0 auto; }
/* La antigua pastilla-etiqueta pasa a ser una linea condensada con regla:
   se mantiene el selector para no romper el HTML ya publicado. */
.section-tag {
  display: inline-flex; align-items: center; gap: 1rem;
  font-size: 1.2rem; font-weight: 800; font-stretch: 74%;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--teal-dark); margin-bottom: 1.4rem;
}
.section-tag::before { content: ''; width: 2.8rem; height: 2px; background: currentColor; }
.how-bg .section-tag, .b2b-callout .section-tag { color: var(--teal-bright); }
.section-header { max-width: 62rem; margin-bottom: clamp(4rem, 6vw, 6.4rem); }
.section-header p {
  font-size: 1.7rem; color: var(--text-muted); margin-top: 1.4rem; line-height: 1.7;
}
.how-bg .section-header p, .b2b-callout .section-header p { color: rgba(255,255,255,0.72); }

/* ===== CATALOGO (tarjetas antiguas) ===== */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr)); gap: 2.4rem; }
.catalog-card {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; transition: transform 0.35s var(--ease-out-quart), box-shadow 0.35s var(--ease-out-quart), border-color 0.35s var(--ease-out-quart);
}
.catalog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.catalog-img { aspect-ratio: 4/3; background: var(--bg); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.catalog-badge {
  position: absolute; top: 1.2rem; left: 1.2rem; background: var(--black); color: var(--teal-bright);
  border-radius: 0.4rem; padding: 0.4rem 1rem; font-size: 1.1rem; font-weight: 800;
  font-stretch: 76%; text-transform: uppercase; letter-spacing: 0.1em;
}
.catalog-body { padding: 2rem; }
.catalog-body h3 { margin-bottom: 0.8rem; }
.catalog-body p { color: var(--text-muted); font-size: 1.4rem; margin-bottom: 1.6rem; line-height: 1.6; }
.catalog-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.6rem; }
.catalog-tags span {
  background: var(--bg); border: 1px solid var(--border); border-radius: 0.4rem;
  padding: 0.3rem 0.8rem; font-size: 1.15rem; color: var(--text-muted); font-weight: 700;
}
.catalog-footer { display: flex; align-items: center; justify-content: space-between; }
.catalog-price { font-size: 2.2rem; font-weight: 900; font-stretch: 112%; color: var(--text); }
.catalog-price small { font-size: 1.2rem; color: var(--text-muted); font-weight: 500; display: block; font-stretch: 100%; }

/* ===== COMO FUNCIONA — el dorsal es el sistema ===== */
.how-bg { background: var(--ink); color: var(--white); }
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step-card {
  text-align: left; padding: 3rem 2.4rem 0;
  border-top: 2px solid rgba(255,255,255,0.16);
  transition: border-color 0.3s var(--ease-out-quart);
}
.step-card:hover { border-top-color: var(--teal); }
/* Numero grande de equipacion, no circulito */
.step-num {
  display: block; width: auto; height: auto; background: none; border-radius: 0;
  font-size: clamp(4.4rem, 6vw, 7rem); font-weight: 900; font-stretch: 122%;
  letter-spacing: -0.05em; line-height: 0.9; color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.32);
  margin: 0 0 1.8rem; transition: -webkit-text-stroke-color 0.3s var(--ease-out-quart), color 0.3s var(--ease-out-quart);
}
.step-card:hover .step-num { color: var(--teal); -webkit-text-stroke-color: var(--teal); }
.step-card h3 { margin-bottom: 0.8rem; }
.step-card p { font-size: 1.45rem; color: rgba(255,255,255,0.66); line-height: 1.7; }

/* ===== POR QUE ELEGIRNOS — rejilla rota a proposito ===== */
.features-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.6rem; }
.feature-card {
  grid-column: span 2;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 2.8rem;
  transition: background 0.3s var(--ease-out-quart), border-color 0.3s var(--ease-out-quart), transform 0.3s var(--ease-out-quart);
}
/* Las dos primeras mandan; el resto son soporte */
.feature-card:nth-child(1) { grid-column: span 3; }
.feature-card:nth-child(2) { grid-column: span 3; }
.feature-card:nth-child(1), .feature-card:nth-child(2) { padding: 3.6rem; }
.feature-card:nth-child(1) h3, .feature-card:nth-child(2) h3 { font-size: clamp(2.2rem, 2.6vw, 3rem); }
.feature-card:hover { background: rgba(0,180,216,0.09); border-color: var(--teal); transform: translateY(-3px); }
.feature-icon { color: var(--teal-bright); margin-bottom: 1.8rem; line-height: 0; }
.feature-icon svg { width: 3rem; height: 3rem; }
.feature-card h3 { margin-bottom: 0.8rem; }
.feature-card p { font-size: 1.45rem; color: rgba(255,255,255,0.68); line-height: 1.7; }
/* En superficie clara el mismo componente se invierte */
.section:not(.how-bg) .feature-card { background: var(--white); border-color: var(--border); }
.section:not(.how-bg) .feature-card p { color: var(--text-muted); }
.section:not(.how-bg) .feature-icon { color: var(--teal-dark); }

/* ===== CTA A TODO COLOR ===== */
.overlay-cta {
  background: var(--teal); color: #04222b;
  padding: clamp(6rem, 10vw, 9rem) 2.4rem; text-align: center;
}
.overlay-cta h2 { margin-bottom: 1.4rem; }
/* 0.78 se quedaba en 4.47:1 sobre el teal, justo por debajo de AA */
.overlay-cta p {
  font-size: 1.75rem; color: rgba(4,34,43,0.9); margin-bottom: 3.2rem;
  max-width: 56ch; margin-left: auto; margin-right: auto; line-height: 1.7;
}
.overlay-cta .btn-primary { background: var(--black); color: var(--white); }
.overlay-cta .btn-primary:hover { background: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.overlay-cta .btn-secondary { border-color: rgba(4,34,43,0.45); color: #04222b; }
.overlay-cta .btn-secondary:hover { background: #04222b; color: var(--teal); border-color: #04222b; }

/* ===== PACK EMPRESAS ===== */
.b2b-callout { background: var(--black); color: var(--white); padding: clamp(6rem, 10vw, 10rem) 2.4rem; }
.callout-inner {
  max-width: 1360px; margin: 0 auto; display: grid;
  grid-template-columns: 1.05fr 0.95fr; gap: clamp(4rem, 7vw, 8rem); align-items: center;
}
.callout-text h2 { margin-bottom: 1.8rem; }
.callout-text p { color: rgba(255,255,255,0.72); font-size: 1.6rem; line-height: 1.8; margin-bottom: 2.6rem; }
.callout-checks { display: flex; flex-direction: column; gap: 0; margin-bottom: 3.2rem; }
.callout-checks li {
  display: flex; align-items: center; gap: 1.4rem; font-size: 1.5rem;
  padding: 1.2rem 0; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.callout-checks li::before {
  content: ''; width: 1rem; height: 1rem; flex-shrink: 0;
  background: var(--teal); border-radius: 0.2rem;
}
.callout-visual {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 3rem;
}
.callout-visual h4 {
  font-size: 1.2rem; color: var(--teal-bright); font-stretch: 74%;
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 2rem;
}
.callout-packs { display: flex; flex-direction: column; }
.pack-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1.6rem;
  padding: 1.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color 0.2s var(--ease-out-quart);
}
.pack-row:last-child { border-bottom: 0; }
.pack-name { font-weight: 700; font-size: 1.5rem; flex: 1; }
.pack-qty { color: rgba(255,255,255,0.5); font-size: 1.2rem; font-stretch: 80%; text-transform: uppercase; letter-spacing: 0.08em; }
.pack-price { color: var(--teal-bright); font-weight: 900; font-size: 2rem; font-stretch: 115%; }

/* ===== PRODUCTOS ===== */
.products-bg { background: var(--bg); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr)); gap: 2rem; }
.product-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease-out-quart), box-shadow 0.35s var(--ease-out-quart), border-color 0.35s var(--ease-out-quart);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--black); }
/* 4/5 coincide casi exacto con el ratio de los mockups (1856x2304 = 0.805),
   asi que la prenda se ve entera y el estampado no se corta. */
.product-img {
  aspect-ratio: 4/5; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 0.6s var(--ease-out-expo);
}
.product-card:hover .product-img img { transform: scale(1.04); }
/* Arriba a la izquierda: en estos mockups la figura va centrada, asi que esa
   esquina siempre queda libre de cabeza. */
.product-badge {
  position: absolute; top: 1.2rem; left: 1.2rem;
  background: var(--black); color: var(--teal-bright);
  border-radius: 0.4rem; padding: 0.5rem 1rem; font-size: 1.05rem; font-weight: 800;
  font-stretch: 76%; text-transform: uppercase; letter-spacing: 0.1em;
}
.product-body { padding: 1.8rem; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.65rem; margin-bottom: 0.5rem; }
.product-body p {
  color: var(--text-muted); font-size: 1.3rem; margin-bottom: 1.6rem; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: auto; padding-top: 1.4rem; border-top: 1px solid var(--border);
}
.product-price { font-size: 2.1rem; font-weight: 900; font-stretch: 115%; color: var(--text); letter-spacing: -0.02em; }
.product-price small {
  font-size: 1.05rem; color: var(--text-muted); font-weight: 700; display: block;
  font-stretch: 78%; text-transform: uppercase; letter-spacing: 0.09em;
}
.product-footer .btn-add { padding: 1.1rem 1.8rem; font-size: 1.2rem; }
.product-footer-quote { display: block; }

/* ===== SELECTOR DE CANTIDAD ===== */
.fp-qty {
  display: inline-flex; align-items: center; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.fp-qty button {
  width: 4rem; height: 4.4rem; border: none; background: var(--bg);
  font-size: 1.8rem; font-weight: 800; color: var(--text);
  transition: background 0.2s var(--ease-out-quart);
}
.fp-qty button:hover { background: var(--border); }
.fp-qty input {
  width: 6rem; height: 4.4rem; border: none; text-align: center;
  font-family: var(--font); font-size: 1.6rem; font-weight: 800; color: var(--text);
  -moz-appearance: textfield;
}
.fp-qty input::-webkit-outer-spin-button,
.fp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ===== CAMPOS DE FORMULARIO ===== */
.fp-form-field { margin-bottom: 1.4rem; }
.fp-form-field label {
  display: block; margin-bottom: 0.6rem; font-size: 1.2rem; font-weight: 800;
  font-stretch: 78%; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text);
}
.fp-form-field input,
.fp-form-field textarea,
.fp-form-field select {
  width: 100%; padding: 1.2rem 1.4rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font); font-size: 1.5rem;
  color: var(--text); background: var(--white);
  transition: border-color 0.2s var(--ease-out-quart), box-shadow 0.2s var(--ease-out-quart);
}
.fp-form-field input:focus,
.fp-form-field textarea:focus,
.fp-form-field select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,180,216,0.18);
}
/* El gris por defecto del navegador no llega a contraste AA */
.fp-form-field ::placeholder { color: #7b8695; opacity: 1; }

/* ===== PIE ===== */
.site-footer { background: var(--black); color: var(--white); padding: 7rem 2.4rem 3rem; }
.footer-inner {
  max-width: 1360px; margin: 0 auto 4rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem;
}
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 1.4rem; line-height: 1.8; margin-top: 1.2rem; max-width: 32rem; }
.footer-social { display: flex; gap: 1rem; margin-top: 2.2rem; }
.footer-social a {
  width: 4rem; height: 4rem; background: rgba(255,255,255,0.07); border-radius: 0.6rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease-out-quart), color 0.2s var(--ease-out-quart);
}
.footer-social a:hover { background: var(--teal); color: #04222b; }
.footer-social svg { width: 1.8rem; height: 1.8rem; }
.footer-col h4 {
  font-size: 1.2rem; font-weight: 800; font-stretch: 76%; text-transform: uppercase;
  letter-spacing: 0.14em; margin-bottom: 1.8rem; color: var(--teal-bright);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.9rem; }
.footer-col a { color: rgba(255,255,255,0.62); font-size: 1.4rem; transition: color 0.2s var(--ease-out-quart); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 2.4rem;
  max-width: 1360px; margin: 0 auto; display: flex; justify-content: space-between;
  gap: 1.6rem; font-size: 1.25rem; color: rgba(255,255,255,0.45);
}

/* ===== MODALES ===== */
#pay-modal, #auth-modal, #quote-modal {
  display: none; position: fixed; inset: 0; background: rgba(6,8,10,0.82);
  z-index: var(--z-modal); align-items: center; justify-content: center; padding: 2rem;
  backdrop-filter: blur(6px);
}
#pay-modal.open, #auth-modal.open, #quote-modal.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius); padding: 3.4rem; width: 100%;
  max-width: 48rem; position: relative; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.35s var(--ease-out-expo) both;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 1.6rem; right: 1.6rem; background: var(--bg); border: none;
  width: 3.4rem; height: 3.4rem; border-radius: 50%; font-size: 2rem; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; line-height: 1;
  transition: background 0.2s var(--ease-out-quart), color 0.2s var(--ease-out-quart);
}
.modal-close:hover { background: var(--black); color: var(--white); }
#modal-producto { font-size: 2.3rem; font-weight: 900; font-stretch: 112%; text-transform: uppercase; letter-spacing: -0.02em; margin: 0.8rem 0 0.4rem; }
#modal-precio-label { color: var(--text-muted); font-size: 1.5rem; margin-bottom: 2rem; }
#modal-total { font-size: 2.2rem; font-weight: 900; font-stretch: 112%; color: var(--text); margin: 1.6rem 0; }
.modal-user-badge {
  display: flex; align-items: center; gap: 0.8rem; background: rgba(0,180,216,0.09);
  border: 1px solid rgba(0,180,216,0.28); border-radius: var(--radius-sm); padding: 1rem 1.4rem;
  font-size: 1.35rem; color: var(--text); margin-bottom: 1.6rem;
}

/* ===== PESTAÑAS DE ACCESO ===== */
.auth-tabs { display: flex; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 2rem; }
.auth-tab {
  flex: 1; padding: 1.1rem; font-size: 1.25rem; font-weight: 800; border: none;
  font-stretch: 82%; text-transform: uppercase; letter-spacing: 0.07em;
  background: var(--bg); color: var(--text-muted);
  transition: background 0.2s var(--ease-out-quart), color 0.2s var(--ease-out-quart);
}
.auth-tab.active { background: var(--black); color: var(--white); }

/* ===== AVISO DE PAGO ===== */
.pay-success-banner {
  position: fixed; top: 2rem; left: 50%; transform: translateX(-50%); z-index: var(--z-toast);
  background: #15803d; color: var(--white); padding: 1.4rem 2.4rem; border-radius: var(--radius-sm);
  font-weight: 800; font-size: 1.45rem; box-shadow: var(--shadow-lg);
}

/* ===== BANNER DE GRUPOS ===== */
.catalog-banner {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  width: 100%; font-family: var(--font); text-align: left;
  background: var(--black); color: var(--white);
  border: none; border-radius: var(--radius);
  padding: clamp(2.4rem, 4vw, 3.6rem) clamp(2.4rem, 4vw, 4rem);
  margin-bottom: 3rem; cursor: pointer; flex-wrap: wrap;
  transition: transform 0.3s var(--ease-out-quart), box-shadow 0.3s var(--ease-out-quart);
}
.catalog-banner::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image: url('../img/grupos-atardecer.webp');
  background-size: cover; background-position: center 34%;
}
.catalog-banner::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(6,8,10,0.94) 0%, rgba(6,8,10,0.8) 46%, rgba(6,8,10,0.42) 100%);
  transition: opacity 0.3s var(--ease-out-quart);
}
.catalog-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.catalog-banner:hover::after { opacity: 0.86; }
.catalog-banner p {
  font-size: clamp(1.7rem, 2.4vw, 2.4rem); font-weight: 900; font-stretch: 112%;
  text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.15; margin: 0; max-width: 24ch;
}
.catalog-banner strong { color: var(--teal-bright); font-weight: 900; }
.catalog-banner-arrow {
  font-size: 1.2rem; font-weight: 800; font-stretch: 78%; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--teal-bright); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.8rem;
}

/* ===== FILTROS DE CATALOGO ===== */
.catalog-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.catalog-pill {
  padding: 0.9rem 1.8rem; border-radius: 0.5rem; border: 1.5px solid var(--border);
  background: var(--white); color: var(--text-muted);
  font-family: var(--font); font-size: 1.2rem; font-weight: 800;
  font-stretch: 82%; text-transform: uppercase; letter-spacing: 0.07em;
  transition: border-color 0.2s var(--ease-out-quart), color 0.2s var(--ease-out-quart), background 0.2s var(--ease-out-quart);
}
.catalog-pill:hover { border-color: var(--black); color: var(--text); }
.catalog-pill.active { background: var(--black); color: var(--white); border-color: var(--black); }
#catalog-filters > .catalog-filters { margin-bottom: 1rem; }
#catalog-filters > .catalog-filters:last-child { margin-bottom: 3rem; }
.catalog-pill-sub {
  padding: 0.6rem 1.4rem; font-size: 1.1rem; letter-spacing: 0.08em;
  background: transparent; border-style: dashed;
}
.catalog-pill-sub.active { background: var(--teal); color: #04222b; border-color: var(--teal); border-style: solid; }
#catalog-load-more { display: flex; margin: 3.6rem auto 0; }

/* ===== CIERRE DEL APARTADO DE GRUPOS ===== */
.catalog-cta {
  margin-top: 3.6rem; padding: clamp(3.6rem, 6vw, 5.6rem) 2.4rem; text-align: center;
  background: var(--black); color: var(--white); border-radius: var(--radius);
}
.catalog-cta h3 { font-size: clamp(2.2rem, 3.4vw, 3.4rem); margin-bottom: 1.4rem; }
.catalog-cta p {
  color: rgba(255,255,255,0.68); font-size: 1.55rem; line-height: 1.75;
  max-width: 54ch; margin: 0 auto 2.8rem;
}

/* ===== PERSONALIZADOR ===== */
#config-modal {
  display: none; position: fixed; inset: 0; background: rgba(6,8,10,0.9);
  z-index: var(--z-modal); padding: 0;
  backdrop-filter: blur(6px);
}
#config-modal.open { display: block; }
.config-box {
  background: var(--bg); width: 100%; height: 100%;
  display: grid; grid-template-rows: auto 1fr;
  animation: modal-in 0.35s var(--ease-out-expo) both;
}
.config-head {
  display: flex; align-items: center; gap: 1.6rem;
  padding: 1.4rem 2.4rem; background: var(--black); color: var(--white);
}
.config-head h2 { font-size: 1.9rem; margin: 0; }
.config-head .modal-close { position: static; margin-left: auto; background: rgba(255,255,255,0.12); color: var(--white); }
.config-head .modal-close:hover { background: var(--teal); color: #04222b; }

.config-cuerpo {
  display: grid; grid-template-columns: 1fr 42rem; gap: 0;
  overflow: hidden; min-height: 0;
}
.config-lienzo {
  display: flex; align-items: center; justify-content: center;
  padding: 2.4rem; background: var(--bg); overflow: auto; min-height: 0;
}
.config-lienzo-caja { position: relative; }
#config-canvas {
  max-width: 100%; max-height: 100%;
  border-radius: var(--radius); box-shadow: var(--shadow);
  background: var(--white); touch-action: none; cursor: grab;
}
#config-canvas.arrastrando { cursor: grabbing; }

.config-panel {
  background: var(--white); border-left: 1px solid var(--border);
  padding: 2.4rem; overflow-y: auto; min-height: 0;
  display: flex; flex-direction: column; gap: 2.2rem;
}
.config-grupo > h3 {
  font-size: 1.2rem; font-weight: 800; font-stretch: 76%;
  text-transform: uppercase; letter-spacing: 0.13em; color: var(--text-muted);
  margin-bottom: 1.1rem;
}
.config-opciones { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.config-op {
  padding: 0.9rem 1.6rem; border: 1.5px solid var(--border); border-radius: 0.5rem;
  background: var(--white); color: var(--text-muted); font-family: var(--font);
  font-size: 1.2rem; font-weight: 800; font-stretch: 82%;
  text-transform: uppercase; letter-spacing: 0.06em;
  transition: border-color 0.2s var(--ease-out-quart), color 0.2s var(--ease-out-quart), background 0.2s var(--ease-out-quart);
}
.config-op:hover:not(:disabled) { border-color: var(--black); color: var(--text); }
.config-op.activa { background: var(--black); color: var(--white); border-color: var(--black); }
.config-op:disabled { opacity: 0.35; cursor: not-allowed; }

/* Muestras de color */
.config-colores { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.config-color {
  width: 3.8rem; height: 3.8rem; border-radius: 0.5rem; padding: 0;
  border: 2px solid var(--border); cursor: pointer; position: relative;
  transition: transform 0.15s var(--ease-out-quart), border-color 0.15s var(--ease-out-quart);
}
.config-color:hover { transform: scale(1.08); }
.config-color.activa { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,180,216,0.25); }
.config-color.activa::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.85);
}

/* Tallas */
.config-tallas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.config-talla { display: flex; align-items: center; gap: 0.6rem; }
.config-talla label {
  font-size: 1.15rem; font-weight: 800; font-stretch: 78%;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); width: 3.4rem;
}
.config-talla input {
  width: 100%; min-width: 0; padding: 0.7rem 0.6rem; text-align: center;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 1.4rem; font-weight: 800; color: var(--text);
  -moz-appearance: textfield;
}
.config-talla input::-webkit-outer-spin-button,
.config-talla input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.config-talla input:focus { outline: none; border-color: var(--teal); }

.config-rango { width: 100%; accent-color: var(--teal); }
.config-nota { font-size: 1.2rem; color: var(--text-muted); line-height: 1.6; }
.config-aviso {
  font-size: 1.2rem; color: var(--text-muted); line-height: 1.6;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem;
}

.config-resumen {
  margin-top: auto; border-top: 1px solid var(--border); padding-top: 1.8rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.config-linea { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.4rem; }
.config-linea span:last-child { font-weight: 800; }
.config-total { font-size: 2.2rem; font-weight: 900; font-stretch: 115%; color: var(--text); }
#config-error { color: #b91c1c; font-size: 1.3rem; display: none; }

@media (max-width: 1024px) {
  .config-cuerpo { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
  .config-lienzo { padding: 1.6rem; }
  #config-canvas { max-height: 44vh; }
  .config-panel { border-left: 0; border-top: 1px solid var(--border); overflow: visible; }
}

/* ===== MODAL DE PRESUPUESTO ===== */
.quote-modal-box { max-width: 68rem; }
.quote-item-row {
  display: grid; grid-template-columns: 1fr 14rem 3.6rem;
  gap: 1rem; align-items: center; margin-bottom: 1rem;
}
.quote-prenda-sel {
  width: 100%; padding: 1.1rem 1.4rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font); font-size: 1.5rem;
  background: var(--white); color: var(--text);
}
.quote-qty-wrap {
  display: flex; align-items: center; gap: 0.6rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 1rem; background: var(--white);
}
.quote-qty-inp {
  width: 6rem; border: none; font-family: var(--font); font-size: 1.5rem;
  font-weight: 800; padding: 1.1rem 0; background: transparent; outline: none; color: var(--text);
}
.quote-qty-wrap span { font-size: 1.2rem; color: var(--text-muted); white-space: nowrap; font-stretch: 82%; text-transform: uppercase; letter-spacing: 0.06em; }
.quote-remove-btn {
  width: 3.6rem; height: 3.6rem; border-radius: 0.5rem; border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text-muted); font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease-out-quart), border-color 0.2s var(--ease-out-quart), color 0.2s var(--ease-out-quart);
}
.quote-remove-btn:hover { background: #fee2e2; border-color: #dc2626; color: #b91c1c; }

/* ===== MOVIMIENTO ===== */
/* El contenido es visible por defecto; la clase .js la pone el propio script.
   Si el JS no corre, no hay reveal que se quede a medias. */
.animate-in { opacity: 1; transform: none; }
.js .animate-in {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.js .animate-in.visible { opacity: 1; transform: none; }

/* Entrada del hero: un solo momento orquestado, no un fade por seccion */
.hero-badge, .hero h1, .hero p, .hero-cta {
  animation: hero-rise 0.9s var(--ease-out-expo) both;
}
.hero h1 { animation-delay: 0.08s; }
.hero p { animation-delay: 0.16s; }
.hero-cta { animation-delay: 0.24s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-track { animation: none; }
  .js .animate-in { opacity: 1; transform: none; }
  .product-card:hover .product-img img { transform: none; }
  /* El JS ya no actualiza --p, pero por si acaso se neutraliza aqui tambien */
  .hero::before { transform: none; }
  .hero-inner { transform: none; opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-card { grid-column: span 2; }
  .feature-card:nth-child(1), .feature-card:nth-child(2) { grid-column: span 2; padding: 2.8rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .callout-inner { grid-template-columns: 1fr; gap: 4rem; }
  .b2b-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .b2b-stat:nth-child(3) { border-left: 0; }
  .b2b-stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 3rem; }
}
@media (max-width: 768px) {
  .header-nav { display: none; }
  .menu-toggle { display: block; }
  .small-hide { display: none; }
  .hero { min-height: auto; padding-top: 8rem; padding-bottom: 6rem; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(6,8,10,0.9) 0%, rgba(6,8,10,0.72) 45%, rgba(6,8,10,0.92) 100%);
  }
  .hero h1 { max-width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .how-steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card:nth-child(1), .feature-card:nth-child(2) { grid-column: span 1; }
  .catalog-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .catalog-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .quote-modal-box { padding: 2.4rem 1.8rem; }
  .quote-item-row { grid-template-columns: 1fr 10rem 3.2rem; }
  .quote-send-btns { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  .b2b-bar-inner { grid-template-columns: 1fr; }
  .b2b-stat + .b2b-stat { border-left: 0; border-top: 1px solid rgba(255,255,255,0.14); margin-top: 2.4rem; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .modal-box { padding: 2.6rem 1.8rem; }
}
