/* =========================================================
   FITLINK GLOBAL — PARTNER MARKETPLACE
   Design system:
   • bg-deep  #0E2925  verde bosque profundo
   • bg-dark  #344B48  superficies
   • gold     #DCC49C  acento champagne
   • cream    #FFFEFC  texto
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Raleway:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg-deep:     #0e2925;
  --bg-deeper:   #0a1f1c;
  --bg-dark:     #14332e;
  --bg-card:     #16352f;
  --bg-elevated: #1c3f38;

  --gold:        #dcc49c;
  --gold-light:  #ecdcc0;
  --gold-deep:   #c2a67c;
  --gold-glow:   rgba(220,196,156,.14);
  --gold-line:   rgba(220,196,156,.16);
  --gold-line-2: rgba(220,196,156,.34);

  --cream:       #fffefc;
  --cream-80:    rgba(255,254,252,.80);
  --cream-58:    rgba(255,254,252,.58);
  --cream-38:    rgba(255,254,252,.38);
  --cream-16:    rgba(255,254,252,.10);

  --wa:          #25d366;
  --wa-dark:     #1da851;

  --max-w:  1320px;
  --nav-h:  74px;
  --r-sm:   6px;
  --r:      10px;
  --r-lg:   16px;
  --r-pill: 100px;

  --shadow:    0 4px 24px rgba(0,0,0,.28);
  --shadow-lg: 0 24px 70px rgba(0,0,0,.5);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Raleway', system-ui, -apple-system, sans-serif;

  /* Escenario del producto: las fotos de los fabricantes vienen sobre blanco,
     así que la tarjeta usa un claro cálido y no un verde oscuro que las recorta. */
  --stage:      #f3f0e9;
  --stage-2:    #e7e2d6;
  --stage-ink:  #2a3d38;

  --icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='8.5' cy='8.5' r='5.75'/%3E%3Cpath d='M13 13L17 17' stroke-linecap='round'/%3E%3C/svg%3E");

  --ease: cubic-bezier(.16,1,.3,1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg-deep);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--bg-deep); }

/* scrollbars */
.scroll-thin::-webkit-scrollbar { width: 6px; height: 6px; }
.scroll-thin::-webkit-scrollbar-track { background: transparent; }
.scroll-thin::-webkit-scrollbar-thumb { background: var(--gold-line-2); border-radius: 3px; }

.container { max-width: var(--max-w); margin-inline: auto; padding-inline: clamp(20px, 4.5vw, 56px); }

/* ── Shared type ────────────────────────────────────────── */
.kicker {
  display: inline-block;
  font-size: .64rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold);
}
.section-head { margin-bottom: 28px; }
.section-head h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.15;
  margin-top: 10px; letter-spacing: -.01em;
}
.section-head p { color: var(--cream-58); font-size: .92rem; max-width: 56ch; margin-top: 8px; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px; border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  white-space: nowrap; position: relative; overflow: hidden;
  transition: all .3s var(--ease);
}
.btn:disabled { opacity: .4; pointer-events: none; }

.btn-gold { background: var(--gold); color: var(--bg-deep); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(220,196,156,.24); }

.btn-ghost { border: 1px solid var(--gold-line); color: var(--cream-80); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); }

.btn-wa { background: var(--wa); color: #06281a; font-weight: 700; }
.btn-wa:hover { background: #2fe075; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(37,211,102,.3); }
.btn-wa svg { flex-shrink: 0; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 32px; font-size: .82rem; }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 120;
  height: var(--nav-h);
  background: rgba(10,31,28,.72);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(10,31,28,.94); border-bottom-color: var(--gold-line); }
.nav-inner {
  height: 100%; max-width: var(--max-w); margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo-divider { width: 1px; height: 22px; background: var(--gold-line-2); }

/* assets/fitlink-logo.png is the wordmark on real transparency (extracted from
   the square brand tile), so it just sits on whatever is behind it. */
.fl-logo { height: 30px; width: auto; flex-shrink: 0; }
.nav-logo-label {
  font-family: var(--serif); font-size: .95rem; font-weight: 400;
  letter-spacing: .1em; color: var(--gold); white-space: nowrap;
}
.nav-right { display: flex; align-items: center; gap: 12px; }

/* Language switcher */
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--gold-line);
  font-size: .7rem; font-weight: 600; letter-spacing: .12em;
  transition: all .25s var(--ease);
}
.lang-btn:hover { border-color: var(--gold); color: var(--gold); }
.lang-btn svg { width: 9px; height: 9px; opacity: .55; transition: transform .25s var(--ease); }
.lang.open .lang-btn svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 158px;
  background: var(--bg-elevated); border: 1px solid var(--gold-line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97);
  transform-origin: top right;
  transition: all .25s var(--ease);
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.lang-menu button {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 11px 15px; font-size: .8rem; text-align: left;
  transition: background .2s;
}
.lang-menu button:hover { background: var(--gold-glow); }
.lang-menu button.on { color: var(--gold); background: var(--gold-glow); }
.lang-menu button span:first-child {
  font-size: .62rem; font-weight: 700; letter-spacing: .1em;
  opacity: .6; width: 20px;
}

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--cream); transition: .3s var(--ease); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); z-index: 400;
  background: var(--bg-deeper); border-left: 1px solid var(--gold-line);
  padding: 26px 24px; transform: translateX(100%);
  transition: transform .4s var(--ease);
  display: flex; flex-direction: column; gap: 22px;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head .fl-logo { height: 27px; }
.drawer a {
  padding: 12px 0; border-bottom: 1px solid var(--gold-line);
  font-size: .85rem; letter-spacing: .06em;
}
.drawer-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-langs button {
  flex: 1; padding: 10px; border: 1px solid var(--gold-line); border-radius: var(--r-sm);
  font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  transition: all .25s;
}
.drawer-langs button.on { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 9vw, 116px) 0 clamp(48px, 6vw, 76px);
  border-bottom: 1px solid var(--gold-line);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 15% 0%, rgba(220,196,156,.09), transparent 62%),
    radial-gradient(ellipse 50% 60% at 88% 100%, rgba(220,196,156,.06), transparent 60%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(var(--gold-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--gold-line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000, transparent 75%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 860px; margin-inline: auto; text-align: center;
}
.hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.4rem, 6.2vw, 4.4rem); line-height: 1.06;
  letter-spacing: -.02em; margin: 18px 0 20px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
/* El max-width sin margin auto dejaba el párrafo pegado a la izquierda del
   hero: el texto se centraba dentro de su propia caja, pero la caja no estaba
   centrada. Se nota en cuanto el idioma cambia la longitud de la frase. */
.hero p {
  font-size: clamp(.95rem, 1.5vw, 1.08rem); color: var(--cream-58);
  max-width: 60ch; margin-inline: auto;
}
/* ── Buscador principal ─────────────────────────────────── */
/* Buscador claro sobre el hero oscuro: es la acción principal de la página,
   así que se comporta como un campo real y no como un hueco translúcido. */
.hsearch {
  position: relative; display: flex; align-items: center;
  margin: clamp(30px, 4vw, 44px) auto 0; max-width: 680px;
  background: var(--cream);
  border: 1px solid transparent; border-radius: var(--r-pill);
  /* 10px a la derecha: el halo del botón tiene que caber dentro del campo. */
  padding: 6px 10px 6px 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.hsearch:focus-within {
  box-shadow: 0 16px 52px rgba(0,0,0,.36), 0 0 0 4px rgba(220,196,156,.28);
  transform: translateY(-1px);
}
.hsearch-icon { width: 19px; height: 19px; color: rgba(42,61,56,.45); flex-shrink: 0; transition: color .3s; }
.hsearch:focus-within .hsearch-icon { color: var(--bg-deep); }
.hsearch input {
  flex: 1; min-width: 0; background: none; border: none;
  padding: 14px 14px; font-size: 1rem; color: var(--bg-deep);
}
.hsearch input:focus { outline: none; }
.hsearch input::placeholder { color: rgba(42,61,56,.45); }
.hsearch input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hsearch-clear {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  color: rgba(42,61,56,.45); font-size: .72rem;
  display: none; align-items: center; justify-content: center; transition: all .2s;
}
.hsearch-clear:hover { background: rgba(42,61,56,.08); color: var(--bg-deep); }
.hsearch.filled .hsearch-clear { display: flex; }
/* El dorado sobre el blanco del campo se lee blando: una línea verde de un
   píxel lo recorta y le devuelve el contraste, sin añadir peso ni desplazar
   nada (va por dentro, con box-shadow, no con border). */
/* Tres anillos concéntricos, de dentro afuera: el filete verde que recorta el
   dorado, un respiro blanco que lo despega del campo, y un halo verde muy fino
   que ata el botón al fondo de la web. Todo con box-shadow: no ocupa espacio,
   así que el campo no cambia de tamaño ni el texto se mueve. */
.hsearch-go {
  flex-shrink: 0; background: var(--gold); color: var(--bg-deep);
  padding: 13px 28px; border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  box-shadow:
    inset 0 0 0 1px var(--bg-deep),
    0 0 0 3px var(--cream),
    0 0 0 4px rgba(14,41,37,.22);
  transition: background .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.hsearch-go:hover {
  background: var(--gold-light);
  box-shadow:
    inset 0 0 0 1.5px var(--bg-deep),
    0 0 0 3px var(--cream),
    0 0 0 5px rgba(14,41,37,.42),
    0 8px 18px rgba(14,41,37,.18);
  transform: translateY(-1px);
}
.hsearch-go:active {
  transform: translateY(0);
  box-shadow: inset 0 0 0 1.5px var(--bg-deep), 0 0 0 3px var(--cream), 0 0 0 4px rgba(14,41,37,.42);
}
.hsearch-go:focus-visible { outline: 2px solid var(--bg-deep); outline-offset: 2px; }

.hchips {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap; margin-top: 20px;
}
.hchips-label {
  font-size: .6rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cream-38);
}
.hchips-list { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hchip {
  padding: 7px 15px; border-radius: var(--r-pill);
  border: 1px solid var(--gold-line); color: var(--cream-80);
  font-size: .75rem; letter-spacing: .03em; transition: all .25s var(--ease);
}
.hchip:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); transform: translateY(-1px); }

/* ── Verticales (elegir por necesidad) ──────────────────── */
.verts { padding: clamp(48px, 6vw, 78px) 0 clamp(10px, 2vw, 20px); }
.verts-grid {
  display: grid; gap: clamp(12px, 1.6vw, 18px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 244px), 1fr));
}
/* Horizontal y baja: es un atajo, no una tarjeta de producto. A la misma
   altura que las marcas, para que la búsqueda y los filtros entren en pantalla. */
.vert {
  position: relative; overflow: hidden; text-align: left;
  background: var(--bg-card); border: 1px solid var(--gold-line);
  border-radius: var(--r-lg); padding: 15px 16px;
  display: grid; align-items: center;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: 'icon title go' 'icon sub go';
  column-gap: 13px; row-gap: 2px;
  transition: all .35s var(--ease);
}
.vert::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(ellipse 90% 70% at 20% 0%, var(--gold-glow), transparent 68%);
  transition: opacity .35s;
}
.vert:hover { border-color: var(--gold-line-2); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.vert:hover::before { opacity: 1; }
.vert.on { border-color: var(--gold); }
.vert.on::before { opacity: 1; }
.vert-icon {
  grid-area: icon; position: relative; z-index: 1;
  width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-line); color: var(--gold);
  background: rgba(220,196,156,.06);
}
.vert h3 {
  grid-area: title; position: relative; z-index: 1;
  font-family: var(--serif); font-weight: 500; font-size: 1.12rem; line-height: 1.15;
}
.vert p {
  grid-area: sub; position: relative; z-index: 1;
  font-size: .73rem; line-height: 1.4; color: var(--cream-58);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vert-go {
  grid-area: go; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); opacity: .55; transition: opacity .3s, transform .3s var(--ease);
}
.vert:hover .vert-go { opacity: 1; transform: translateX(3px); }

/* ── Secciones por tipo ─────────────────────────────────── */
.csec { margin-bottom: clamp(38px, 5vw, 62px); }
.csec:last-child { margin-bottom: 0; }
.csec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
  padding-bottom: 12px; border-bottom: 1px solid var(--gold-line);
}
.csec-head h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.2;
}
.csec-head p { font-size: .78rem; color: var(--cream-38); margin-top: 3px; }
.csec-all {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); transition: gap .3s var(--ease);
}
.csec-all:hover { gap: 12px; }

/* ── Brand rail ─────────────────────────────────────────── */
.brands { padding: clamp(44px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
.brands-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; margin-bottom: 26px;
}
.brands-rail-wrap { position: relative; }
.brands-rail {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 18px;
  scroll-snap-type: x proximity; scrollbar-width: thin;
  scrollbar-color: var(--gold-line-2) transparent;
}
.brands-rail::-webkit-scrollbar { height: 5px; }
.brands-rail::-webkit-scrollbar-track { background: var(--cream-16); border-radius: 3px; }
.brands-rail::-webkit-scrollbar-thumb { background: var(--gold-line-2); border-radius: 3px; }

.brand-card {
  flex: 0 0 auto; width: 186px; scroll-snap-align: start;
  background: var(--bg-card); border: 1px solid var(--gold-line);
  border-radius: var(--r-lg); padding: 20px 18px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; position: relative; overflow: hidden;
  transition: all .35s var(--ease);
}
.brand-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, var(--gold-glow), transparent 70%);
  transition: opacity .35s;
}
.brand-card:hover { border-color: var(--gold-line-2); transform: translateY(-4px); box-shadow: var(--shadow); }
.brand-card:hover::before { opacity: 1; }
.brand-card.on { border-color: var(--gold); background: var(--bg-elevated); }
.brand-card.on::before { opacity: 1; }

.brand-logo {
  position: relative; z-index: 1;
  width: 100%; height: 82px;
  display: flex; align-items: center; justify-content: center;
}
/* Partner logos are authored for light backgrounds and are mostly square
   canvases, so the plate — not the image — owns the box. Any logo then reads,
   whatever its own colours or aspect ratio are. */
.brand-logo:has(img) {
  background: #fffefc; border-radius: 9px; padding: 9px;
  transition: transform .4s var(--ease);
}
.brand-card:hover .brand-logo:has(img) { transform: scale(1.03); }
.brand-logo img {
  max-height: 100%; max-width: 100%; width: auto; object-fit: contain;
  opacity: .92; transition: opacity .4s var(--ease);
}
.brand-card:hover .brand-logo img,
.brand-card.on .brand-logo img { opacity: 1; }
.brand-wordmark {
  font-family: var(--serif); font-weight: 400; font-size: 1.22rem;
  line-height: 1.15; color: var(--gold-deep); letter-spacing: .01em;
  transition: color .35s;
}
.brand-card:hover .brand-wordmark, .brand-card.on .brand-wordmark { color: var(--gold); }
.brand-meta {
  position: relative; z-index: 1;
  font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cream-38);
}
.brand-card.on .brand-meta { color: var(--gold); }
.brand-info {
  position: absolute; top: 9px; right: 9px; z-index: 2;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--gold-line); color: var(--cream-38);
  display: flex; align-items: center; justify-content: center;
  font-size: .66rem; font-family: var(--serif); font-style: italic;
  opacity: 0; transition: all .25s var(--ease);
}
.brand-card:hover .brand-info { opacity: 1; }
.brand-info:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); }

.brand-card-all { justify-content: center; min-height: 156px; }
.brand-card-all .brand-wordmark { font-size: 1.1rem; }

/* ── Toolbar ────────────────────────────────────────────── */
.toolbar {
  position: sticky; top: var(--nav-h); z-index: 100;
  background: rgba(10,31,28,.9);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-block: 1px solid var(--gold-line);
  padding: 13px 0;
}
.toolbar-inner { display: flex; align-items: center; gap: 14px; }
.search {
  position: relative; flex: 0 0 clamp(180px, 26vw, 300px);
}
.search svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: rgba(42,61,56,.45); pointer-events: none; z-index: 1;
}
.search input {
  width: 100%; padding: 10px 14px 10px 39px;
  background: var(--cream-16); border: 1px solid transparent;
  border-radius: var(--r-pill); font-size: .82rem;
  transition: all .25s var(--ease);
}
.search input:focus { outline: none; border-color: var(--gold-line-2); background: rgba(255,254,252,.14); }
.search input::placeholder { color: var(--cream-38); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.pills {
  display: flex; gap: 7px; overflow-x: auto; flex: 1;
  scrollbar-width: none; -ms-overflow-style: none;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
}
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex-shrink: 0; padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--gold-line); color: var(--cream-58);
  font-size: .74rem; font-weight: 500; letter-spacing: .04em; white-space: nowrap;
  transition: all .25s var(--ease);
}
.pill:hover { border-color: var(--gold-line-2); color: var(--cream); }
.pill.on { background: var(--gold); border-color: var(--gold); color: var(--bg-deep); font-weight: 600; }

.sort-wrap { position: relative; flex-shrink: 0; }
.sort-wrap select {
  appearance: none; -webkit-appearance: none;
  padding: 9px 34px 9px 15px; border-radius: var(--r-pill);
  background: transparent; border: 1px solid var(--gold-line);
  color: var(--cream-58); font-size: .74rem; font-family: var(--sans);
  cursor: pointer; transition: all .25s;
}
.sort-wrap select:hover { border-color: var(--gold-line-2); color: var(--cream); }
.sort-wrap select:focus { outline: none; border-color: var(--gold); }
.sort-wrap option { background: var(--bg-elevated); color: var(--cream); }
.sort-wrap::after {
  content: ''; position: absolute; right: 14px; top: 50%;
  width: 6px; height: 6px; border-right: 1.4px solid var(--cream-38); border-bottom: 1.4px solid var(--cream-38);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

/* Active filter chips */
.active-filters { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 12px; }
.active-filters:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 8px 5px 13px; border-radius: var(--r-pill);
  background: var(--gold-glow); border: 1px solid var(--gold-line-2);
  color: var(--gold); font-size: .7rem; letter-spacing: .04em;
}
.chip button {
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .62rem; opacity: .65; transition: all .2s;
}
.chip button:hover { opacity: 1; background: var(--gold); color: var(--bg-deep); }
.chip-reset { font-size: .7rem; color: var(--cream-38); text-decoration: underline; transition: color .2s; }
.chip-reset:hover { color: var(--gold); }

/* ── Catalog ────────────────────────────────────────────── */
.catalog { padding: clamp(30px, 4vw, 46px) 0 clamp(90px, 10vw, 130px); }
.catalog-meta {
  font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cream-38); margin-bottom: 22px;
}
.grid {
  display: grid; gap: clamp(16px, 1.8vw, 24px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
}

/* Card */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--gold-line);
  border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--gold-line-2); box-shadow: var(--shadow-lg); }
.card.on { border-color: var(--gold); }
.card.on::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--gold); pointer-events: none;
}

.card-media {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: linear-gradient(155deg, var(--stage), var(--stage-2));
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }

.card-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  user-select: none;
}
.card-ph-mark {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 300; line-height: 1;
  color: var(--stage-ink); opacity: .3;
}
.card-ph-label {
  font-size: .58rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(42,61,56,.42);
}
/* Muchos logos traen su propio fondo blanco. Sobre el escenario crema eso se
   vería como un recorte suelto, así que van sobre una placa redondeada. */
.card-ph-plate {
  max-width: 62%; display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 12px; padding: 14px 18px;
  box-shadow: 0 2px 10px rgba(42,61,56,.08), 0 0 0 1px rgba(42,61,56,.05);
  transition: transform .5s var(--ease);
}
.card-ph-plate img { max-height: 62px; max-width: 100%; width: auto; object-fit: contain; }
.card:hover .card-ph-plate { transform: scale(1.04); }
.modal-media .card-ph-plate { max-width: 56%; padding: 20px 26px; }
.modal-media .card-ph-plate img { max-height: 110px; }

.card-brand {
  position: absolute; top: 11px; left: 11px; z-index: 2;
  display: flex; align-items: center; gap: 7px;
  max-width: calc(100% - 62px);
  padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(10,31,28,.82); border: 1px solid var(--gold-line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .66rem; font-weight: 600; letter-spacing: .06em; color: var(--cream-80);
  transition: all .25s var(--ease);
}
.card-brand:hover { border-color: var(--gold); color: var(--gold); }
.card-brand img {
  height: 16px; width: auto; max-width: 46px; object-fit: contain;
  background: #fffefc; border-radius: 3px; padding: 1px 3px;
}
/* Separa el escenario claro del cuerpo oscuro de la tarjeta. */
.card-media::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 1px;
  background: rgba(42,61,56,.12);
}
.card-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.card-cat {
  position: absolute; bottom: 11px; left: 11px; z-index: 2;
  padding: 4px 10px; border-radius: var(--r-sm);
  background: rgba(255,254,252,.9); border: 1px solid rgba(42,61,56,.14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .58rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--stage-ink);
}

.card-tick {
  position: absolute; top: 11px; right: 11px; z-index: 3;
  width: 27px; height: 27px; border-radius: 50%;
  background: var(--gold); color: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.4); transition: all .3s var(--ease);
}
.card.on .card-tick { opacity: 1; transform: scale(1); }

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; gap: 7px; }
.card-body h3 {
  font-family: var(--serif); font-weight: 500; font-size: 1.1rem; line-height: 1.28;
  letter-spacing: .005em;
}
.card-desc {
  font-size: .78rem; line-height: 1.55; color: var(--cream-58);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--gold-line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-price { line-height: 1.25; }
.card-price strong { display: block; font-family: var(--serif); font-size: 1.14rem; color: var(--gold); }
.card-price span { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-38); }
.card-add {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--gold-line); color: var(--cream-58);
  display: flex; align-items: center; justify-content: center;
  transition: all .3s var(--ease);
}
.card-add:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); transform: scale(1.08); }
.card.on .card-add { background: var(--gold); border-color: var(--gold); color: var(--bg-deep); }

/* Skeletons + states */
.skeleton { border-color: var(--gold-line); pointer-events: none; }
.sk { background: linear-gradient(90deg, var(--cream-16) 25%, rgba(255,254,252,.16) 50%, var(--cream-16) 75%); background-size: 200% 100%; animation: sk 1.5s infinite; border-radius: var(--r-sm); }
@keyframes sk { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
.sk-media { aspect-ratio: 4/3; border-radius: 0; }
.sk-line { height: 12px; margin: 0 18px; }
.sk-line:first-of-type { margin-top: 18px; width: 70%; }
.sk-line:last-of-type { margin-bottom: 22px; width: 42%; }

.empty { grid-column: 1/-1; text-align: center; padding: 80px 20px; }
.empty-mark { font-family: var(--serif); font-size: 3rem; color: var(--gold-deep); opacity: .4; }
.empty h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin: 14px 0 8px; }
.empty p { color: var(--cream-58); font-size: .88rem; margin-bottom: 22px; }

.more-wrap { display: flex; justify-content: center; margin-top: 48px; }
.more-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 34px; border-radius: var(--r-pill);
  border: 1px solid var(--gold-line); color: var(--cream);
  font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  transition: all .35s var(--ease);
}
.more-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); }
.more-btn b {
  padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--gold); color: var(--bg-deep); font-size: .64rem; font-weight: 700;
}

/* ── Selection bar ──────────────────────────────────────── */
.selbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: rgba(10,31,28,.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--gold-line-2);
  padding: 14px 0; padding-bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform .45s var(--ease);
}
.selbar.up { transform: translateY(0); }
.selbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.selbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.selbar-n {
  flex-shrink: 0; min-width: 30px; height: 30px; padding-inline: 9px;
  border-radius: var(--r-pill); background: var(--gold); color: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700;
}
.selbar-txt { min-width: 0; }
.selbar-txt strong { display: block; font-size: .82rem; font-weight: 500; }
.selbar-txt span { display: block; font-size: .68rem; color: var(--cream-38); }
.selbar-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.selbar-clear { font-size: .72rem; color: var(--cream-38); text-decoration: underline; transition: color .2s; }
.selbar-clear:hover { color: var(--cream); }

/* ── Overlays (shared) ──────────────────────────────────── */
.veil {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(4,14,12,.72);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  opacity: 0; visibility: hidden; transition: all .35s var(--ease);
}
.veil.open { opacity: 1; visibility: visible; }

/* ── Partner panel ──────────────────────────────────────── */
.panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 320;
  width: min(468px, 100vw);
  background: var(--bg-deep); border-left: 1px solid var(--gold-line);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .45s var(--ease);
  box-shadow: var(--shadow-lg);
}
.panel.open { transform: translateX(0); }
.panel-head {
  flex-shrink: 0; padding: 22px 26px; border-bottom: 1px solid var(--gold-line);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.panel-head .kicker { font-size: .58rem; }
.icon-x {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--gold-line); color: var(--cream-58);
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
  transition: all .25s var(--ease);
}
.icon-x:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); transform: rotate(90deg); }

.panel-body { flex: 1; overflow-y: auto; padding: 26px; }
.panel-hero { text-align: center; padding-bottom: 24px; border-bottom: 1px solid var(--gold-line); }
.panel-logo {
  height: 104px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
}
.panel-logo:has(img) {
  width: min(230px, 100%); margin-inline: auto;
  background: #fffefc; border-radius: 11px; padding: 12px;
}
.panel-logo img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.panel-logo .brand-wordmark { font-size: 1.9rem; color: var(--gold); }
.panel-hero h3 { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; margin-bottom: 6px; }
.panel-hero .panel-count {
  font-size: .64rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream-38);
}
.panel-web {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  padding: 9px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--gold-line); color: var(--gold);
  font-size: .72rem; letter-spacing: .05em; transition: all .3s var(--ease);
}
.panel-web:hover { background: var(--gold-glow); border-color: var(--gold); }

.panel-sec { padding-top: 24px; }
.panel-sec h4 {
  font-size: .6rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cream-38); margin-bottom: 13px;
}
.panel-desc { font-size: .87rem; line-height: 1.72; color: var(--cream-80); white-space: pre-wrap; }
.panel-desc.muted { color: var(--cream-38); font-style: italic; }
.panel-tabs { display: flex; gap: 6px; margin-bottom: 13px; }
.panel-tab {
  padding: 5px 13px; border-radius: var(--r-pill); border: 1px solid var(--gold-line);
  font-size: .66rem; font-weight: 600; letter-spacing: .1em; color: var(--cream-58);
  transition: all .25s;
}
.panel-tab.on { background: var(--gold); border-color: var(--gold); color: var(--bg-deep); }

.panel-list { display: flex; flex-direction: column; gap: 8px; }
.panel-item {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  padding: 11px 13px; border-radius: var(--r);
  background: var(--bg-card); border: 1px solid var(--gold-line);
  transition: all .28s var(--ease);
}
.panel-item:hover { border-color: var(--gold-line-2); background: var(--bg-elevated); transform: translateX(3px); }
.panel-item-thumb {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: var(--r-sm);
  overflow: hidden; background: var(--bg-deeper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1rem; color: var(--gold-deep);
}
.panel-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.panel-item-txt { flex: 1; min-width: 0; }
.panel-item-txt strong {
  display: block; font-weight: 500; font-size: .82rem; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.panel-item-txt span { font-size: .72rem; color: var(--gold); }
.panel-foot { flex-shrink: 0; padding: 18px 26px; border-top: 1px solid var(--gold-line); }

/* ── Product modal ──────────────────────────────────────── */
.modal-wrap {
  position: fixed; inset: 0; z-index: 340;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(12px, 3vw, 32px);
  opacity: 0; visibility: hidden; transition: all .35s var(--ease);
}
.modal-wrap.open { opacity: 1; visibility: visible; }
.modal {
  position: relative; width: 100%; max-width: 940px; max-height: min(88vh, 760px);
  background: var(--bg-deep); border: 1px solid var(--gold-line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  /* Sin la fila acotada, los hijos crecen por encima del max-height del modal
     y overflow:hidden les corta el final en vez de dejarlos scrollear. */
  grid-template-rows: minmax(0, 1fr);
  transform: scale(.96) translateY(12px); transition: transform .4s var(--ease);
}
.modal > * { min-height: 0; }

/* Con planes hace falta ancho: 3 tarjetas por fila en vez de 2. */
.modal.has-plans { max-width: 1160px; grid-template-columns: minmax(0, .52fr) minmax(0, 1fr); }
/* Y si encima no hay foto real, la columna de imagen es espacio desperdiciado. */
.modal.no-media { grid-template-columns: minmax(0, 1fr); max-width: 940px; }
.modal.no-media .modal-media { display: none; }
.modal-wrap.open .modal { transform: scale(1) translateY(0); }
.modal .icon-x { position: absolute; top: 14px; right: 14px; z-index: 5; background: rgba(10,31,28,.8); backdrop-filter: blur(8px); }

.modal-media {
  position: relative; background: linear-gradient(155deg, var(--stage), var(--stage-2));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-media .card-ph-mark { font-size: 4.5rem; color: var(--stage-ink); opacity: .28; }

.modal-body { overflow-y: auto; padding: clamp(24px, 3.4vw, 40px); }
.modal-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.tag {
  padding: 4px 11px; border-radius: var(--r-sm); border: 1px solid var(--gold-line);
  font-size: .58rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cream-58);
}
.tag.gold { color: var(--gold); border-color: var(--gold-line-2); background: var(--gold-glow); }
.modal-body h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.05rem);
  line-height: 1.16; letter-spacing: -.01em; margin-bottom: 14px;
}
.modal-brand {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px;
  padding: 7px 14px 7px 9px; border-radius: var(--r-pill);
  border: 1px solid var(--gold-line); transition: all .3s var(--ease);
}
.modal-brand:hover { border-color: var(--gold); background: var(--gold-glow); }
.modal-brand img {
  height: 22px; width: auto; max-width: 66px; object-fit: contain;
  background: #fffefc; border-radius: 4px; padding: 2px 5px;
}
.modal-brand span { font-size: .76rem; font-weight: 600; letter-spacing: .05em; }
.modal-brand small { font-size: .62rem; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }

.modal-price {
  padding: 16px 20px; margin-bottom: 22px;
  background: var(--bg-card); border: 1px solid var(--gold-line); border-radius: var(--r);
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.modal-price strong { font-family: var(--serif); font-size: 1.9rem; color: var(--gold); line-height: 1; }
.modal-price span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-38); }

.modal-desc { font-size: .89rem; line-height: 1.75; color: var(--cream-80); white-space: pre-wrap; margin-bottom: 26px; }
.modal-desc.muted { color: var(--cream-38); font-style: italic; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; min-width: 160px; }

/* ── Inquiry modal ──────────────────────────────────────── */
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 88vh;
  background: var(--bg-deep); border: 1px solid var(--gold-line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  transform: scale(.96) translateY(12px); transition: transform .4s var(--ease);
}
.modal-wrap.open .sheet { transform: scale(1) translateY(0); }
.sheet-head {
  flex-shrink: 0; padding: 24px 26px 18px; border-bottom: 1px solid var(--gold-line);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
}
.sheet-head h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; margin-top: 8px; }
.sheet-body { flex: 1; overflow-y: auto; padding: 22px 26px; }

.inq-list {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--gold-line); border: 1px solid var(--gold-line);
  border-radius: var(--r); overflow: hidden; margin-bottom: 22px;
}
.inq-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--bg-card);
}
.inq-row-txt { flex: 1; min-width: 0; }
.inq-row-txt strong { display: block; font-size: .84rem; font-weight: 500; line-height: 1.3; }
.inq-row-txt span { font-size: .68rem; color: var(--cream-38); letter-spacing: .06em; }
.inq-row-price { font-size: .82rem; color: var(--gold); white-space: nowrap; flex-shrink: 0; }
.inq-row-x {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  color: var(--cream-38); display: flex; align-items: center; justify-content: center;
  font-size: .72rem; transition: all .25s;
}
.inq-row-x:hover { background: var(--cream-16); color: var(--cream); }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-38); }
.field input, .field textarea {
  padding: 12px 15px; border-radius: var(--r);
  background: var(--cream-16); border: 1px solid transparent;
  font-size: .86rem; transition: all .25s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-line-2); background: rgba(255,254,252,.14); }
.field input::placeholder, .field textarea::placeholder { color: var(--cream-38); }
.field textarea { resize: vertical; min-height: 84px; line-height: 1.55; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.note {
  display: flex; gap: 11px; padding: 14px 16px; margin-bottom: 20px;
  background: var(--bg-card); border-left: 2px solid var(--gold);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: .76rem; line-height: 1.6; color: var(--cream-58);
}
.note svg { flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.sheet-foot { flex-shrink: 0; padding: 18px 26px; border-top: 1px solid var(--gold-line); }

/* ── Footer ─────────────────────────────────────────────── */
.footer { background: var(--bg-deeper); border-top: 1px solid var(--gold-line); padding-bottom: 96px; }
.footer-top {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: clamp(28px, 5vw, 64px);
  padding: clamp(44px, 6vw, 72px) 0 clamp(32px, 4vw, 48px);
}
.footer-brand .fl-logo { height: 38px; margin-bottom: 22px; }
.footer-tag { font-family: var(--serif); font-size: 1.12rem; font-style: italic; color: var(--cream-58); max-width: 34ch; line-height: 1.5; }
.footer-col h4 {
  font-size: .6rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block; font-size: .82rem; color: var(--cream-58);
  padding: 5px 0; transition: color .25s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  padding: 22px 0; border-top: 1px solid var(--gold-line);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .74rem; color: var(--cream-38);
}
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom nav a { transition: color .25s; }
.footer-bottom nav a:hover { color: var(--gold); }

/* ── Contacto flotante ──────────────────────────────────── */
/* Patrón de widget de soporte (Intercom, Crisp, Tidio): un botón redondo que
   abre una tarjeta con los canales disponibles. No inventa nada: la gente ya
   sabe qué hacer con él. Aquí son dos canales, WhatsApp y correo. */
.cfab {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 150;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.cfab.hidden { opacity: 0; transform: scale(.5); pointer-events: none; }

.cfab-btn {
  position: relative;
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  background: var(--wa); color: #06281a;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(37,211,102,.36);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.cfab-btn:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 14px 38px rgba(37,211,102,.5); }
.cfab-btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

/* El icono gira de globo a cruz: una sola pieza, dos estados. */
.cfab-i { position: absolute; transition: opacity .28s var(--ease), transform .35s var(--ease); }
.cfab-i.is-x { opacity: 0; transform: rotate(-90deg) scale(.6); }
.cfab.open .cfab-btn { background: var(--cream); color: var(--bg-deep); box-shadow: var(--shadow); }
.cfab.open .cfab-i.is-chat { opacity: 0; transform: rotate(90deg) scale(.6); }
.cfab.open .cfab-i.is-x { opacity: 1; transform: none; }

.cfab-card {
  width: min(320px, calc(100vw - 32px));
  background: var(--bg-elevated);
  border: 1px solid var(--gold-line-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-origin: bottom right;
  opacity: 0; transform: translateY(10px) scale(.94); pointer-events: none;
  transition: opacity .3s var(--ease), transform .35s var(--ease);
}
.cfab.open .cfab-card { opacity: 1; transform: none; pointer-events: auto; }

.cfab-head {
  padding: 20px 20px 16px;
  background: linear-gradient(160deg, var(--bg-dark), var(--bg-deeper));
  border-bottom: 1px solid var(--gold-line);
}
.cfab-head strong {
  display: block; margin: 8px 0 5px;
  font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.15;
}
.cfab-head p { font-size: .76rem; line-height: 1.5; color: var(--cream-58); }

.cfab-opts { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.cfab-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 11px 12px; border-radius: var(--r);
  transition: background .22s var(--ease);
}
.cfab-opt:hover { background: var(--cream-16); }
.cfab-opt:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.cfab-ic {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.cfab-ic.is-wa   { background: var(--wa); color: #06281a; }
.cfab-ic.is-mail { background: var(--gold); color: var(--bg-deep); }
.cfab-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cfab-txt strong { font-size: .87rem; font-weight: 600; letter-spacing: .01em; }
.cfab-txt span {
  font-size: .71rem; color: var(--cream-58);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cfab-arrow {
  width: 12px; height: 12px; flex-shrink: 0; color: var(--cream-38);
  transition: transform .22s var(--ease), color .22s var(--ease);
}
.cfab-opt:hover .cfab-arrow { transform: translateX(3px); color: var(--gold); }

/* ── Reveal animation ───────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .card { animation: rise .55s var(--ease) backwards; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .modal { grid-template-columns: 1fr; max-height: 90vh; }
  .modal-media { aspect-ratio: 16/9; }
}
@media (max-width: 860px) {
  .hamburger { display: flex; }
  .nav-logo-divider, .nav-logo-label { display: none; }
  .nav-cta { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}
@media (max-width: 720px) {
  .toolbar-inner { flex-wrap: wrap; }
  .search { flex: 1 1 100%; }
  .sort-wrap { order: 3; }
  .pills { order: 2; }
  .brand-card { width: 152px; }
  .selbar-txt span { display: none; }
  .selbar-clear { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 12px 13px 14px; }
  .card-body h3 { font-size: .94rem; }
  .card-desc { display: none; }
  .card-price strong { font-size: .98rem; }
  .card-brand { font-size: .58rem; padding: 4px 8px; }
  .card-cat { display: none; }
  .hsearch { padding: 5px 9px 5px 16px; }
  .hsearch input { padding: 12px 8px; font-size: .92rem; }
  .hsearch-go { padding: 11px 17px; font-size: .68rem; }
  .hchips-label { display: none; }
  .modal-body, .sheet-body, .panel-body { padding: 20px; }
  .cfab-btn { width: 48px; height: 48px; }
}

/* ── Planes y complementos (modal de producto) ─────────── */
.plans-block { margin: 26px 0 8px; }
.plans-title {
  font-size: .6rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin: 22px 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--gold-line);
}
.plans-title:first-child { margin-top: 0; }
.plans-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
}
.plan {
  position: relative; background: var(--bg-card);
  border: 1px solid var(--gold-line); border-radius: var(--r);
  padding: 15px 14px; display: flex; flex-direction: column; gap: 5px;
}
.plan.popular { border-color: var(--gold); }
.plan-flag {
  position: absolute; top: -8px; left: 12px;
  background: var(--gold); color: var(--bg-deep);
  font-size: .54rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 2px 8px; border-radius: var(--r-pill);
}
.plan h4 { font-family: var(--serif); font-weight: 500; font-size: 1.08rem; }
.plan-cap { font-size: .66rem; letter-spacing: .06em; color: var(--cream-38); }
.plan-price { display: flex; align-items: baseline; gap: 5px; margin-top: 4px; }
.plan-price strong { font-family: var(--serif); font-size: 1.4rem; color: var(--gold); line-height: 1; }
.plan-price span { font-size: .64rem; letter-spacing: .06em; color: var(--cream-38); }
.plan-note, .plan-trial { font-size: .62rem; letter-spacing: .04em; color: var(--cream-38); }
.plan-trial { color: var(--gold); }
.plan-feats {
  list-style: none; margin-top: 9px; padding-top: 9px;
  border-top: 1px solid var(--gold-line);
  display: flex; flex-direction: column; gap: 5px;
}
.plan-feats li {
  display: flex; gap: 7px; font-size: .74rem; line-height: 1.45; color: var(--cream-80);
}
.plan-feats li.no { color: var(--cream-38); }
.plan-feats li.no span:last-child { text-decoration: line-through; text-decoration-thickness: 1px; }
.plan-tick { flex-shrink: 0; width: 12px; color: var(--gold); font-size: .72rem; }
.plan-feats li.no .plan-tick { color: var(--cream-38); }
.plan-feats b { color: var(--cream); font-weight: 600; }
@media (max-width: 520px) { .plans-grid { grid-template-columns: 1fr; } }

/* Selector de capacidad dentro de la tarjeta de plan */
.plan-tier {
  appearance: none; -webkit-appearance: none;
  width: 100%; padding: 7px 26px 7px 10px; margin: 2px 0 4px;
  background: var(--cream-16); border: 1px solid var(--gold-line);
  border-radius: var(--r-sm); color: var(--cream);
  font-family: var(--sans); font-size: .74rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--cream-38) 50%),
                    linear-gradient(135deg, var(--cream-38) 50%, transparent 50%);
  background-position: calc(100% - 14px) 52%, calc(100% - 10px) 52%;
  background-size: 4px 4px, 4px 4px; background-repeat: no-repeat;
  transition: border-color .2s;
}
.plan-tier:hover, .plan-tier:focus { border-color: var(--gold); outline: none; }
.plan-tier option { background: var(--bg-elevated); color: var(--cream); }

/* ═══════════════════════════════════════════════════════
   MÓVIL
   ═══════════════════════════════════════════════════════ */

/* Safari y Chrome de iOS hacen zoom automático al enfocar un input de menos
   de 16px, y después la página queda descuadrada. Subir el tamaño en táctil
   lo evita sin tocar el diseño de escritorio. */
@media (hover: none) and (pointer: coarse) {
  .hsearch input,
  .search input,
  .field input, .field textarea,
  .plan-tier { font-size: 16px; }

  /* Objetivos táctiles de al menos 44px. */
  .card-add { width: 44px; height: 44px; }
  .card-brand { padding: 8px 13px; }
  .pill, .hchip { padding: 10px 16px; }
  .lang-menu button { padding: 14px 15px; }
  .icon-x { width: 40px; height: 40px; }
  .plan-tier { padding: 11px 30px 11px 12px; }

  /* Sin resaltado azul al tocar. */
  a, button, .card, .vert, .brand-card { -webkit-tap-highlight-color: transparent; }

  /* El hover no existe en táctil: los efectos de elevación solo estorban. */
  .card:hover, .vert:hover, .brand-card:hover { transform: none; }
  .card:hover .card-media img { transform: none; }
}

@media (max-width: 720px) {
  /* El botón del buscador se queda con el icono: "Buscar" se come el campo. */
  .hsearch { padding: 5px 9px 5px 16px; }
  .hsearch-go {
    padding: 12px; width: 44px; height: 44px; font-size: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .hsearch-go::after {
    content: ''; width: 17px; height: 17px; display: block;
    background: currentColor;
    -webkit-mask: var(--icon-search) center/contain no-repeat;
    mask: var(--icon-search) center/contain no-repeat;
  }
  .hsearch input { padding: 12px 8px; }

  /* Las barras fijas respetan el área segura del iPhone. */
  .selbar { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .cfab { bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px)); }

  /* El carrusel de marcas se desliza con el dedo, sin cortar tarjetas. */
  .brands-rail { scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .brand-card { scroll-snap-align: center; }
}

@media (max-width: 480px) {
  /* Con dos columnas las tarjetas quedaban muy apretadas para leer precio y CTA. */
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card-desc { display: -webkit-box; }
  .card-media { aspect-ratio: 16/10; }
  .card-body h3 { font-size: 1.02rem; }
  .card-price strong { font-size: 1.1rem; }
  .card-cat { display: inline-block; }

  .verts-grid { grid-template-columns: 1fr; }
  .hchips { gap: 8px; }
  .hchips-list { justify-content: flex-start; }
}

/* Nada debe provocar scroll horizontal en el teléfono. */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  .modal, .sheet { max-height: 92vh; }
}

/* ═══════════════════════════════════════════════════════════
   ACCESO PRIVADO — bloque temporal
   Todo lo de esta sección se puede borrar de una vez cuando el
   marketplace se abra al público (SHOP_PRIVATE = false en app.js).
   ═══════════════════════════════════════════════════════════ */

/* Mientras el candado está puesto, la tienda ni siquiera se pinta:
   así no hay un parpadeo de catálogo antes de pedir el correo. */
body.gate-on > *:not(#gate) { display: none !important; }
body:not(.gate-on) #gate { display: none; }

.gate {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(220,196,156,.10), transparent 70%),
    var(--bg-deep);
  overflow-y: auto;
}
.gate-box {
  width: 100%; max-width: 430px; text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--gold-line-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(28px, 5vw, 42px) clamp(22px, 4vw, 36px);
}
.gate-box .fl-logo { height: 30px; width: auto; margin: 0 auto 22px; }
.gate-kick {
  display: block;
  font-size: .6rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold);
}
.gate-box h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.1rem);
  letter-spacing: -.01em; margin: 8px 0 0;
}
.gate-sub { font-size: .84rem; line-height: 1.6; color: var(--cream-58); margin: 14px 0 22px; }

/* Estado inicial: no mostramos el formulario hasta saber si ya hay sesión. */
.gate-check {
  display: none; align-items: center; justify-content: center; gap: 10px;
  margin-top: 26px; font-size: .78rem; letter-spacing: .04em; color: var(--cream-38);
}
.gate.checking .gate-check { display: flex; }
.gate.checking .gate-form  { display: none; }
.gate-spin {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--gold-line-2); border-top-color: var(--gold);
  animation: gate-spin .7s linear infinite;
}
@keyframes gate-spin { to { transform: rotate(360deg); } }

.gate-f { text-align: left; margin-bottom: 14px; }
.gate-f label {
  display: block; margin-bottom: 7px;
  font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cream-58);
}
.gate-f input {
  width: 100%; padding: 13px 15px;
  background: var(--bg-deeper);
  border: 1px solid var(--gold-line); border-radius: var(--r);
  color: var(--cream); font-size: .92rem;
  transition: border-color .25s, box-shadow .25s;
}
.gate-f input::placeholder { color: var(--cream-38); }
.gate-f input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.gate-go {
  width: 100%; padding: 13px 20px; border-radius: var(--r-pill);
  background: var(--gold); color: var(--bg-deep);
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: inset 0 0 0 1px var(--bg-deep);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.gate-go:hover:not(:disabled) { background: var(--gold-light); transform: translateY(-1px); }
.gate-go:disabled { opacity: .6; cursor: default; }
.gate-go .gate-spin { border-color: rgba(14,41,37,.25); border-top-color: var(--bg-deep); vertical-align: -2px; margin-right: 7px; display: inline-block; }

.gate-note { font-size: .68rem; line-height: 1.55; color: var(--cream-38); margin-top: 18px; }

.gate-msg {
  text-align: left; font-size: .78rem; line-height: 1.55;
  padding: 12px 14px; border-radius: var(--r); margin-bottom: 18px;
}
.gate-msg.ok  { background: rgba(37,211,102,.10); border: 1px solid rgba(37,211,102,.34); color: #a9e9c4; }
.gate-msg.err { background: rgba(226,116,102,.10); border: 1px solid rgba(226,116,102,.38); color: #f0b3a9; }

/* Recordatorio discreto en el pie: la tienda está cerrada al público. */
.privmark {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .68rem; letter-spacing: .04em; color: var(--cream-38);
}
.privmark b { color: var(--gold); font-weight: 600; }
.privmark button {
  font-size: .68rem; letter-spacing: .04em; color: var(--cream-58);
  border-bottom: 1px solid var(--gold-line-2); padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.privmark button:hover { color: var(--gold); border-color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   NOVEDADES Y CONJUNTOS
   Una tira baja, hermana de la de marcas. Un club decide por
   zonas y no por piezas, así que el conjunto tiene que estar
   a la vista — pero sin robarle la pantalla a la búsqueda,
   que es a lo que la gente viene.
   ═══════════════════════════════════════════════════════════ */
.news { padding: clamp(26px, 3vw, 38px) 0 0; }
.news.hidden { display: none; }
.news-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.news-head h3 {
  font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--cream);
}
.news-rail {
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x proximity; padding-bottom: 6px;
}
.news-card {
  flex: 0 0 auto; width: 320px; scroll-snap-align: start; text-align: left;
  display: flex; align-items: center; gap: 13px;
  padding: 12px 14px;
  background: var(--bg-card); border: 1px solid var(--gold-line);
  border-radius: var(--r-lg);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.news-card:hover { border-color: var(--gold-line-2); transform: translateY(-2px); background: var(--bg-elevated); }
.news-thumb {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--r);
  background: var(--stage); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.news-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.news-thumb em {
  font-family: var(--serif); font-style: normal; font-size: 1.6rem;
  color: var(--stage-ink); opacity: .4;
}
.news-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.news-top { display: flex; align-items: center; gap: 7px; }
.news-new {
  font-size: .5rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--bg-deep); background: var(--gold); padding: 2px 7px; border-radius: var(--r-pill);
}
.news-brand {
  font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-38);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-txt strong {
  font-family: var(--serif); font-weight: 500; font-size: 1.05rem; line-height: 1.15;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-n { font-size: .66rem; letter-spacing: .05em; color: var(--cream-58); }
.news-go { flex-shrink: 0; color: var(--gold); opacity: .6; transition: transform .3s var(--ease), opacity .3s; }
.news-card:hover .news-go { opacity: 1; transform: translateX(3px); }

/* ── "Quienes eligen esto, también llevan" (modal) ──────── */
.rel-block { margin-top: 26px; }
.rel-sub { font-size: .76rem; line-height: 1.5; color: var(--cream-58); margin: -4px 0 12px; }
.rel-rail { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.rel-card {
  flex: 0 0 138px; text-align: left;
  display: flex; flex-direction: column; gap: 5px;
  border: 1px solid var(--gold-line); border-radius: var(--r); padding: 8px;
  transition: border-color .25s, background .25s;
}
.rel-card:hover { border-color: var(--gold); background: var(--gold-glow); }
.rel-card .rel-img {
  height: 82px; border-radius: var(--r-sm); background: var(--stage);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.rel-card .rel-img img { width: 100%; height: 100%; object-fit: cover; }
.rel-card .rel-img em {
  font-family: var(--serif); font-style: normal; font-size: 1.7rem; color: var(--stage-ink); opacity: .4;
}
.rel-name {
  font-size: .76rem; line-height: 1.3; color: var(--cream);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rel-price { font-size: .72rem; color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   CANAL DE CONTACTO
   Arrancamos solo con correo. Todo lo que nombra o pinta
   WhatsApp se apaga con una clase en el body, así que volver
   a encenderlo es cambiar el interruptor de app.js y nada más.
   ═══════════════════════════════════════════════════════════ */
.i-wa, .i-mail { display: inline-flex; align-items: center; flex-shrink: 0; }
.i-mail { display: none; }
body.no-wa .i-wa { display: none; }
body.no-wa .i-mail { display: inline-flex; }

/* El verde de WhatsApp no pinta nada en un botón que abre el correo. */
body.no-wa .btn-wa { background: var(--gold); color: var(--bg-deep); }
body.no-wa .btn-wa:hover {
  background: var(--gold-light);
  box-shadow: 0 10px 30px rgba(220,196,156,.24);
}
body.no-wa .cfab-btn {
  background: var(--gold); color: var(--bg-deep);
  box-shadow: 0 8px 28px rgba(220,196,156,.3);
}
body.no-wa .cfab-btn:hover { box-shadow: 0 14px 38px rgba(220,196,156,.42); }
body.no-wa .cfab.open .cfab-btn { background: var(--cream); color: var(--bg-deep); }

/* La opción de WhatsApp y su enlace en el pie, fuera de la vista. */
body.no-wa #cfabWa,
body.no-wa #footerWa { display: none; }

/* ═══════════════════════════════════════════════════════════
   AVISO DE COOKIES
   Barra baja, discreta, que no tapa el contenido. Los dos
   botones de decisión tienen el mismo tamaño y el mismo peso
   visual, y cada uno se resuelve con un clic: rechazar no
   puede costar más que aceptar.
   ═══════════════════════════════════════════════════════════ */
.cc {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: rgba(10,31,28,.97);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--gold-line-2);
  animation: cc-up .45s var(--ease) both;
}
.cc[hidden] { display: none; }
@keyframes cc-up { from { transform: translateY(100%); } to { transform: none; } }

.cc-inner {
  max-width: var(--max-w); margin-inline: auto;
  padding: 16px clamp(20px, 4.5vw, 56px);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap;
}
.cc-txt { flex: 1; min-width: min(100%, 320px); }
.cc-txt strong {
  display: block; margin-bottom: 3px;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
}
.cc-txt p { font-size: .78rem; line-height: 1.55; color: var(--cream-58); }
.cc-txt a { color: var(--gold); border-bottom: 1px solid var(--gold-line-2); }
.cc-txt a:hover { border-bottom-color: var(--gold); }

.cc-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Mismo tamaño y misma forma para aceptar y rechazar. Solo cambia
   el tono, nunca el peso: si rechazar se ve más débil, no vale. */
.cc-btn {
  min-width: 116px; padding: 11px 22px; border-radius: var(--r-pill);
  font-size: .76rem; font-weight: 600; letter-spacing: .06em;
  background: var(--cream-16); color: var(--cream);
  border: 1px solid var(--gold-line-2);
  transition: all .25s var(--ease);
}
.cc-btn:hover { border-color: var(--gold); background: var(--gold-glow); }
.cc-primary { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); }
.cc-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.cc-link {
  padding: 11px 8px; font-size: .74rem; color: var(--cream-58);
  border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.cc-link:hover { color: var(--gold); border-bottom-color: var(--gold-line-2); }

/* ── Panel de preferencias ── */
.cc-veil {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(6,20,18,.72);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.cc-veil[hidden], .cc-panel[hidden] { display: none; }
.cc-panel {
  position: fixed; z-index: 215;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 32px)); max-height: min(86vh, 640px); overflow-y: auto;
  background: var(--bg-elevated); border: 1px solid var(--gold-line-2);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 26px clamp(20px, 4vw, 30px) 22px;
  animation: cc-in .35s var(--ease) both;
}
@keyframes cc-in { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }

.cc-panel-head { margin-bottom: 20px; }
.cc-panel-head strong {
  display: block; font-family: var(--serif); font-weight: 500; font-size: 1.4rem;
}
.cc-panel-head p { margin-top: 6px; font-size: .8rem; line-height: 1.55; color: var(--cream-58); }

.cc-cat { padding: 15px 0; border-top: 1px solid var(--gold-line); }
.cc-cat-top { display: flex; align-items: center; gap: 12px; margin-bottom: 5px; }
.cc-cat-top strong { flex: 1; font-size: .86rem; font-weight: 600; }
.cc-cat p { font-size: .76rem; line-height: 1.55; color: var(--cream-58); }
.cc-always {
  font-size: .58rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-line-2);
  padding: 3px 9px; border-radius: var(--r-pill);
}

/* Interruptor: apagado de fábrica, nunca premarcado. */
.cc-sw { position: relative; flex-shrink: 0; width: 40px; height: 22px; cursor: pointer; }
.cc-sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-sw span {
  position: absolute; inset: 0; border-radius: var(--r-pill);
  background: var(--cream-16); border: 1px solid var(--gold-line-2);
  transition: background .25s, border-color .25s;
}
.cc-sw span::after {
  content: ''; position: absolute; left: 3px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--cream-58); transition: transform .25s var(--ease), background .25s;
}
.cc-sw input:checked + span { background: var(--gold); border-color: var(--gold); }
.cc-sw input:checked + span::after { transform: translateY(-50%) translateX(18px); background: var(--bg-deep); }
.cc-sw input:focus-visible + span { box-shadow: 0 0 0 3px var(--gold-glow); }

.cc-panel-foot {
  display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--gold-line);
}

@media (max-width: 640px) {
  .cc-inner { padding: 14px 20px; gap: 14px; }
  .cc-acts { width: 100%; }
  .cc-acts .cc-btn { flex: 1; min-width: 0; }
  .cc-link { order: 3; width: 100%; text-align: center; padding-top: 4px; }
  .cc-panel-foot .cc-btn { flex: 1; }
}

/* El botón flotante de contacto se aparta mientras la barra está arriba. */
body.cc-open .cfab { transform: translateY(-84px); }
