/* =====================================================================
   ESCOTA — hoja de estilos
   Tipografías alojadas en src/fonts: Cormorant Garamond (títulos, estilo
   clásico de velería) y Jost (textos e interfaz).
   Diseño "mobile first": las reglas base son para móvil y se amplían con
   @media (min-width: ...) para tablet y escritorio.
   ===================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-600.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-600-italic.woff2") format("woff2");
  font-weight: 500 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-600.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta oficial ESCOTA (Sección 10 del estudio de diseño y colorimetría de velerías):
     - Azul marino #0B2545 (titulares, cabecera y pie — contraste 13.9:1 AA sobre arena)
     - Arena clara #F7F3EA (fondo principal neutro para fidelidad cromática en telas Sauleda)
     - Gris niebla #E3E8EE (bordes y bloques)
     - Azul agua #1F6FB2 (enlaces y estados)
     - Naranja señal #C2410C (único color de acción principal CTA — contraste 5.2:1 AA con blanco) */
  --ink: #0b2545;
  --ink-2: #134074;
  --ink-3: #1f6fb2;
  --sail: #f7f3ea;
  --sail-2: #ede6d6;
  --paper: #ffffff;
  --line: #e3e8ee;
  --line-strong: #cbd5e1;
  --brass: #b08d57;
  --brass-dark: #7c5e2f;
  --brass-light: #e3c28c;
  --brass-soft: rgba(176, 141, 87, 0.12);
  --sea: #1f6fb2;
  --cta: #c2410c;
  --cta-hover: #9a3412;
  --text: #0b2545;
  --muted: #4b5563;
  --success: #2f7a4f;
  --success-soft: #e7f2ea;
  --danger: #b3261e;
  --danger-soft: #f8e6e4;
  --warning: #7d5a00;
  --warning-soft: #f6ecd0;

  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, 0.06);
  --shadow: 0 8px 24px rgba(13, 27, 42, 0.09);
  --shadow-lg: 0 18px 44px rgba(13, 27, 42, 0.2);
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 4.25rem;
  --content: 1240px;

  /* Nombres usados por algunos estilos en línea del JavaScript */
  --navy: var(--ink);
  --white: var(--paper);
  --border: var(--line);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

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

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  flex-shrink: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.25rem);
}

h3 {
  font-size: 1.35rem;
}

h4 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

::selection {
  background: var(--brass-light);
}

[hidden] {
  display: none !important;
}

/* Contenedores de maquetación (cabecera, pie, chat...) sin caja propia. */
.layout-slot {
  display: contents;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.eyebrow,
.product-category,
.guide-card-category,
.variant-group-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-dark);
}

/* ---------- Estructura ---------- */

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) var(--gutter) 4rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h1 {
  margin-bottom: 0.25rem;
}

.page-header p {
  color: var(--muted);
  margin: 0;
  max-width: 44rem;
}

/* ---------- Botones ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.55rem 1.35rem;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
}

.btn-primary {
  --btn-bg: var(--cta, #c2410c);
  --btn-fg: #ffffff;
  --btn-border: var(--cta, #c2410c);
}

.btn-primary:hover {
  --btn-bg: var(--cta-hover, #9a3412);
  --btn-border: var(--cta-hover, #9a3412);
}

.btn-accent {
  --btn-bg: var(--brass);
  --btn-fg: #fff;
  --btn-border: var(--brass);
}

.btn-accent:hover {
  --btn-bg: var(--brass-dark);
  --btn-border: var(--brass-dark);
}

.btn-ghost {
  --btn-border: transparent;
}

.btn-ghost:hover {
  --btn-bg: var(--sail-2);
  --btn-fg: var(--ink);
}

.btn-light {
  --btn-fg: #fff;
  --btn-border: rgba(255, 255, 255, 0.45);
}

.btn-light:hover {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-border: #fff;
}

.btn-ghost-dark,
.btn-icon {
  --btn-border: transparent;
  --btn-fg: var(--muted);
  width: 44px;
  min-height: 44px;
  padding: 0;
}

.btn-ghost-dark:hover,
.btn-icon:hover {
  --btn-bg: var(--sail-2);
  --btn-fg: var(--ink);
}

.btn-sm {
  min-height: 44px;
  padding: 0.45rem 1rem;
  font-size: 0.76rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-back {
  --btn-border: var(--line-strong);
  align-self: flex-start;
  min-height: 44px;
  padding: 0.45rem 1rem 0.45rem 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.76rem;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.button-row.is-centered {
  justify-content: center;
}

/* ---------- Formularios ---------- */

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

:where(input:not([type="checkbox"], [type="radio"], [type="file"]), select, textarea) {
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

:where(textarea) {
  min-height: 6rem;
  resize: vertical;
}

:where(input, select, textarea):focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-soft);
}

input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.15rem 0 0;
  accent-color: var(--ink);
  flex-shrink: 0;
}

input[type="file"] {
  width: 100%;
  max-width: 100%;
  font-size: 0.88rem;
}

input[type="file"]::file-selector-button {
  font: inherit;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  margin-right: 0.75rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

legend {
  padding: 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.checkbox-label,
.checkbox-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  cursor: pointer;
}

.admin-quote-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.error-text {
  color: var(--danger);
}

.notice-text {
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid #cfe5d6;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
}

.success-text {
  color: var(--success);
  font-weight: 600;
}

/* ---------- Aviso de API caída ---------- */

.api-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--gutter);
  background: var(--danger);
  color: #fff;
  font-size: 0.9rem;
}

.api-alert .btn-icon {
  --btn-fg: #fff;
}

.api-alert .btn-icon:hover {
  --btn-bg: rgba(255, 255, 255, 0.15);
  --btn-fg: #fff;
}

/* ---------- Cabecera ---------- */

.topbar-promo {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.5rem var(--gutter);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.navbar-inner {
  position: relative;
  max-width: var(--content);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0.5rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
  flex-shrink: 0;
}

.logo-escota {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
}

.logo-escota-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.3em;
}

.navbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.cart-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cart-button-label {
  display: none;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--brass);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.navbar-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  cursor: pointer;
}

.navbar-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem var(--gutter) 1.25rem;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
}

.navbar-links.is-open {
  display: flex;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 46px;
  padding: 0 0.9rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-item-accent {
  color: var(--brass-light);
}

.navbar-search {
  position: relative;
  margin-bottom: 0.5rem;
}

.navbar-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 1rem 0 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.navbar-search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.navbar-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

.navbar-account {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-account .btn {
  width: 100%;
}

@media (min-width: 480px) {
  .cart-button-label {
    display: inline;
  }
}

@media (min-width: 1180px) {
  .navbar-toggle {
    display: none;
  }

  .navbar-links {
    position: static;
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
    gap: 0.1rem;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .nav-item {
    width: auto;
    min-height: 40px;
    padding: 0 0.7rem;
    font-size: 0.74rem;
  }

  .navbar-search {
    order: 10;
    margin: 0 0 0 auto;
  }

  .navbar-search input {
    width: 12.5rem;
    min-height: 40px;
    font-size: 0.88rem;
  }

  .navbar-account {
    order: 11;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    margin: 0 0 0 0.5rem;
    padding: 0;
    border: 0;
  }

  .navbar-account .btn {
    width: auto;
  }

  .navbar-actions {
    margin-left: 0.25rem;
  }
}

/* ---------- Inicio ---------- */

/* En móvil, una sola fila que se desliza con el dedo; en pantallas grandes, centrada. */
.contact-strip {
  display: flex;
  gap: 0.5rem;
  margin: 0 calc(-1 * var(--gutter)) 1.25rem;
  padding: 0.1rem var(--gutter) 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.contact-strip::-webkit-scrollbar {
  display: none;
}

.contact-strip .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (min-width: 700px) {
  .contact-strip {
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 0 1.5rem;
    padding: 0;
    overflow: visible;
  }
}

.hero {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(0.5rem, 2vw, 1.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.hero-text h1 {
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);
  margin: 0.4rem 0 0.35em;
}

.hero-text p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 36rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0.75rem;
}

.hero-boat {
  position: relative;
  min-width: 0;
}

.hero-boat-video,
.hero-boat-video-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: var(--ink);
}

.hero-boat-video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem;
  text-align: center;
  background: linear-gradient(160deg, var(--ink-3), var(--ink));
  color: rgba(255, 255, 255, 0.88);
}

.hero-boat-video-placeholder svg {
  width: clamp(88px, 22vw, 140px);
  height: auto;
  margin-bottom: 0.5rem;
  color: var(--sail);
}

.hero-boat-video-placeholder p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem);
}

.hero-boat-video-placeholder .muted {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero-hotspot {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.hero-hotspot-dot {
  display: block;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  background: var(--brass);
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(168, 121, 58, 0.35);
  cursor: pointer;
}

.hero-hotspot-card {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: min(15rem, 68vw);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.hero-hotspot-card strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.15;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--brass);
}

.intro h2 {
  margin-top: 0;
}

.intro p {
  color: var(--muted);
}

.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}

.category-tile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 11rem;
  padding: 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.category-tile:hover {
  transform: translateY(-3px);
  border-color: var(--brass);
  box-shadow: var(--shadow);
}

.category-tile svg {
  color: var(--brass);
}

.category-tile-title {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.1;
}

.category-tile-text {
  font-size: 0.88rem;
  color: var(--muted);
}

.category-tile.is-featured {
  background: linear-gradient(160deg, var(--ink-3), var(--ink));
  border-color: var(--ink);
  color: #fff;
}

.category-tile.is-featured svg {
  color: var(--brass-light);
}

.category-tile.is-featured .category-tile-text {
  color: rgba(255, 255, 255, 0.72);
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 3rem 0 1.25rem;
}

.section-heading h2 {
  margin: 0;
}

.materials-section {
  margin: 3rem 0;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, 0.8);
}

.materials-section h2,
.materials-section h3 {
  color: #fff;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1.5rem;
}

.materials-grid > div {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.materials-grid .muted {
  color: rgba(255, 255, 255, 0.68);
}

.testimonial {
  max-width: 44rem;
  margin: 3rem auto;
  padding: 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  font-style: italic;
  line-height: 1.35;
  text-align: center;
  color: var(--ink);
  border: 0;
}

.cta-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  padding: clamp(1.75rem, 4vw, 3rem);
  text-align: center;
  background: linear-gradient(135deg, var(--ink), var(--ink-3));
  border-radius: var(--radius-lg);
}

.cta-banner h2 {
  margin: 0;
  color: #fff;
}

.cta-banner .btn-primary {
  --btn-bg: var(--brass);
  --btn-border: var(--brass);
}

.cta-banner .btn-primary:hover {
  --btn-bg: var(--brass-dark);
  --btn-border: var(--brass-dark);
}

.contact-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}

.contact-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.4rem;
  min-height: 9rem;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-tile:hover {
  border-color: var(--brass);
  box-shadow: var(--shadow);
}

.contact-tile-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-dark);
}

.contact-tile-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}

@media (min-width: 700px) {
  .intro {
    flex-direction: row;
    align-items: flex-start;
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 1fr;
  }
}

/* ---------- Bloque de confianza ---------- */

.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.trust-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.trust-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brass-soft);
  color: var(--brass-dark);
}

.trust-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--ink);
}

.trust-badge p {
  margin: 0.2rem 0 0;
}

.trust-badges.is-compact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 0.6rem;
  margin: 1rem 0;
}

.trust-badges.is-compact .trust-badge {
  align-items: center;
  padding: 0.7rem 0.8rem;
}

.trust-badges.is-compact .trust-badge-icon {
  width: 34px;
  height: 34px;
}

.trust-badges.is-compact .trust-badge strong {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
}

.trust-badges.is-dark .trust-badge {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.trust-badges.is-dark .trust-badge strong {
  color: #fff;
}

.trust-badges.is-dark .trust-badge-icon {
  background: rgba(227, 194, 140, 0.12);
  color: var(--brass-light);
}

/* ---------- Catálogo: listado ---------- */

.category-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.2rem 0 0.6rem;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.category-tab:hover {
  border-color: var(--ink);
}

.category-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filter-bar-selects {
  display: grid;
  gap: 0.6rem;
}

.filter-bar-sort {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 760px) {
  .filter-bar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .filter-bar-selects {
    grid-auto-flow: column;
  }

  .filter-bar-selects select,
  .filter-bar-sort select {
    width: 12rem;
  }

  .filter-bar-sort {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
  }
}

.promo-banner {
  margin-bottom: 1.5rem;
  padding: 0.8rem 1rem;
  background: var(--brass-soft);
  border: 1px solid rgba(168, 121, 58, 0.25);
  border-radius: var(--radius);
  color: var(--brass-dark);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 1.25rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-card-image,
.card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 13.5rem;
  aspect-ratio: 5 / 6;
  padding: 2rem;
  background: linear-gradient(160deg, #1f6bb0, #0b2a4a);
  color: var(--sail);
  overflow: hidden;
}

.sail-img {
  position: absolute;
  inset: 8% 10%;
  width: 80%;
  height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
  pointer-events: none;
  z-index: 1;
}

.sail-thumb-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.product-card-escota-logo {
  position: absolute;
  top: 0.7rem;
  left: 0.75rem;
  z-index: 2;
  display: inline-flex;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
}

.product-badge + .product-card-escota-logo {
  top: auto;
  bottom: 0.7rem;
}

.sail-viewer-3d-brand {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--brass);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.product-favorite {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}

.product-favorite:hover {
  background: rgba(255, 255, 255, 0.28);
}

.product-favorite.is-active {
  background: #fff;
  color: var(--danger);
}

.product-favorite.is-active svg {
  fill: currentColor;
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 1.25rem 1.3rem;
}

.product-name-link {
  color: var(--ink);
}

.product-name {
  margin: 0;
  font-size: 1.4rem;
}

.product-subtitle {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.product-price {
  margin: 0.35rem 0 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.product-cta {
  margin-top: auto;
  width: 100%;
}

/* ---------- Ficha de producto ---------- */

.product-detail-header {
  margin-bottom: 1.25rem;
}

.product-detail-header h1 {
  margin: 0.2rem 0 0.25rem;
}

.product-detail-header p {
  margin: 0;
}

.product-detail-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.product-detail-gallery .config-summary-plain {
  background: var(--paper);
  border: 1px solid var(--line);
}

/* En móvil el visor 3D es más bajo para que se vean las opciones enseguida. */
.product-detail-image .sail-viewer-3d {
  height: clamp(240px, 66vw, 380px) !important;
}

.product-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

.product-detail-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 16rem;
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink-3), var(--ink));
  border-radius: var(--radius-lg);
  color: var(--sail);
}

.product-detail-image.has-viewer {
  display: block;
  min-height: 0;
  background: #0e1620;
}

.product-detail-image.has-viewer .product-badge {
  z-index: 3;
}

.product-detail-image .sail-viewer-3d {
  border-radius: 0;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.product-detail-info h1 {
  margin: 0;
}

.product-detail-info > .muted {
  margin: -0.5rem 0 0;
}

.pdp-variant-picker {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: clamp(1rem, 3vw, 1.4rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.variant-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.variant-group-label {
  color: var(--muted);
}

.boat-step-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.boat-step-fields select {
  grid-column: 1 / -1;
}

.pdp-ficha-live {
  padding: 1.1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.pdp-ficha-live h3 {
  margin: 0 0 0.6rem;
}

.product-detail-description {
  line-height: 1.75;
}

@media (min-width: 600px) {
  .boat-step-fields {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .boat-step-fields select {
    grid-column: auto;
  }
}

@media (min-width: 900px) {
  .product-detail-grid {
    grid-template-columns: minmax(18rem, 27rem) 1fr;
  }

  .product-detail-gallery {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

/* Selector de color en la propia ficha (sin ventanas emergentes) */

.swatch-picker {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.swatch-picker-selected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  min-height: 2rem;
  margin: 0;
}

.swatch-dot {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.swatch-group-title {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.75rem, 1fr));
  gap: 0.45rem;
}

.swatch-option {
  width: 100%;
  aspect-ratio: 1;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: var(--radius-sm);
  background: var(--swatch, #ddd);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.swatch-option:hover {
  transform: scale(1.06);
}

.swatch-option.is-selected {
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--ink);
}

.product-ficha summary {
  cursor: pointer;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-dark);
}

.product-ficha dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.2rem 0.75rem;
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
}

.product-ficha dt {
  color: var(--muted);
}

.product-ficha dd {
  margin: 0;
}

/* ---------- Barra de precio y botón principal ---------- */

.price-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 -10px 30px rgba(13, 27, 42, 0.12);
}

.price-bar-left {
  flex: 1 1 12rem;
  min-width: 0;
}

.price-bar-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.price-bar-amount {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.3rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.price-bar-iva-tag {
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.price-bar-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.price-bar-disclaimer {
  font-size: 0.76rem;
  font-style: italic;
  color: var(--muted);
}

.price-bar-button {
  flex: 1 1 100%;
}

@media (min-width: 540px) {
  .price-bar-button {
    flex: 0 0 auto;
  }
}

/* ---------- Configuradores ---------- */

.configurator-header {
  margin-bottom: 1.25rem;
}

.configurator-header h1 {
  margin: 0 0 0.25rem;
}

.configurator-header p {
  margin: 0;
}

.configurator-layout {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.configurator-layout form {
  min-width: 0;
}

.configurator-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
}

.configurator-gallery > svg {
  align-self: center;
}

@media (min-width: 900px) {
  .configurator-layout {
    grid-template-columns: minmax(17rem, 25rem) 1fr;
  }

  .configurator-gallery {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

.config-summary-plain {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 1rem;
  background: var(--sail);
  border-radius: var(--radius);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.config-summary-plain .muted {
  font-style: italic;
}

.preloaded-notice {
  margin-bottom: 1rem;
  padding: 0.7rem 1rem;
  background: var(--brass-soft);
  border: 1px solid rgba(168, 121, 58, 0.25);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.option-block {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.option-block-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.option-block-header h3 {
  margin: 0;
  font-size: 1.45rem;
}

.option-block-tag {
  max-width: 100%;
  overflow: hidden;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--brass-soft);
  color: var(--brass-dark);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.option-block-help {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--muted);
}

.option-description {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.9rem;
  background: var(--sail);
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: var(--text);
}

.option-help-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  margin-top: 0.5rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.8rem;
  cursor: pointer;
}

.option-extra-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  border-color: var(--ink);
}

.chip.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.option-card-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.option-card-stacked {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.3rem 0.85rem;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.option-card-stacked:hover {
  border-color: var(--ink);
}

.option-card-stacked.is-selected {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  background: #fcfbf7;
}

.option-card-thumb {
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  color: #fff;
}

.option-card-body {
  min-width: 0;
}

.option-card-body strong {
  display: block;
  font-weight: 600;
}

.option-card-body span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.option-card-diff {
  font-size: 0.86rem;
  color: var(--muted);
}

.option-card-diff.is-included {
  color: var(--success);
}

@media (min-width: 600px) {
  .option-card-stacked {
    grid-template-columns: auto 1fr auto;
  }

  .option-card-thumb {
    grid-row: auto;
  }

  .option-card-diff {
    white-space: nowrap;
  }
}

.measurement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr));
  gap: 1rem;
}

.measurement-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.measurement-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-height: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.measurement-field-help-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.measurement-field-help-toggle:hover {
  background: var(--sail-2);
  color: var(--ink);
}

.measurement-field-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.measurement-field-input input {
  flex: 1;
  min-width: 0;
}

.measurement-field-unit {
  min-width: 1.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.measure-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: end;
}

.measure-field {
  font-size: 0.9rem;
}

.measure-result {
  grid-column: 1 / -1;
  font-weight: 600;
  color: var(--ink);
}

.checkbox-row {
  margin-top: 0.85rem;
  font-size: 0.92rem;
}

.color-swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.color-swatch {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
}

.color-swatch.is-selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink);
}

.boat-search {
  position: relative;
}

.boat-search-input-row {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.boat-search-input-row:focus-within {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-soft);
}

.boat-search-input-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  box-shadow: none;
}

.boat-search-input-row input:focus {
  box-shadow: none;
}

.boat-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.boat-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 15;
  max-height: 16rem;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.boat-search-results button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.boat-search-results button:hover {
  background: var(--sail);
}

.file-upload-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.file-upload-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.file-upload-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem 0.45rem 0.9rem;
  background: var(--sail);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.file-upload-name {
  flex: 1 1 8rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.technician-disclaimer {
  margin: 1rem 0 0;
  font-size: 0.84rem;
  font-style: italic;
  color: var(--muted);
}

.confirmation-card {
  max-width: 34rem;
  margin: 1rem auto;
  text-align: center;
}

.confirmation-card .button-row {
  justify-content: center;
}

/* ---------- Visor 3D ---------- */

.sail-viewer-3d {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0e1620;
  border-radius: var(--radius);
}

.sail-viewer-3d-canvas {
  position: absolute;
  inset: 0;
  cursor: grab;
  touch-action: pan-y;
}

.sail-viewer-3d-canvas:active {
  cursor: grabbing;
}

.sail-viewer-3d-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cfe0f0;
  font-size: 0.85rem;
  pointer-events: none;
}

.sail-viewer-3d-hint {
  position: absolute;
  left: 10px;
  bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(10, 20, 30, 0.6);
  color: #cfe0f0;
  font-size: 0.72rem;
  pointer-events: none;
}

.sail-outline-highlight {
  stroke: var(--brass-light);
}

/* ---------- Carrito ---------- */

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  background: rgba(8, 15, 23, 0.55);
}

.drawer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(27rem, 100%);
  height: 100%;
  padding: 1.25rem clamp(1rem, 4vw, 1.5rem) calc(1.25rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.drawer-header h2 {
  margin: 0;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.cart-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--sail);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cart-item-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.cart-item-qty {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.15rem;
  margin-top: 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.cart-item-qty button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.cart-item-qty button:hover {
  background: var(--sail);
}

.cart-item-qty span {
  min-width: 1.5rem;
  font-weight: 600;
  text-align: center;
}

.cart-item-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.cart-item-remove:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.cart-total {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.guest-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guest-fields p {
  margin: 0;
}

.cart-done {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ---------- Pie de página ---------- */

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
  padding: 3rem max(var(--gutter), calc((100% - var(--content)) / 2 + var(--gutter))) calc(2rem + env(safe-area-inset-bottom));
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
}

.footer-newsletter {
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter h3 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
}

.footer-newsletter .muted {
  color: rgba(255, 255, 255, 0.62);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.newsletter-form-row input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.newsletter-form-row input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.site-footer .btn-primary {
  --btn-bg: var(--brass);
  --btn-border: var(--brass);
}

.site-footer .btn-primary:hover {
  --btn-bg: var(--brass-dark);
  --btn-border: var(--brass-dark);
}

.newsletter-consent {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-columns h4 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
}

.footer-columns a {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin-left: -0.6rem;
  padding: 0 0.6rem;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.footer-columns a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.footer-columns span {
  display: block;
  padding: 0.55rem 0;
}

.footer-legal-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-mini {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  color: #fff;
}

.footer-legal {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (min-width: 520px) {
  .newsletter-form-row {
    flex-direction: row;
  }

  .newsletter-form-row input {
    flex: 1;
  }
}

@media (min-width: 900px) {
  .footer-newsletter {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
  }

  .footer-columns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-legal-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- Chat y aviso de cookies (flotantes) ---------- */

.chat-widget {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

/* Si la página tiene barra de precio fija abajo, el chat sube para no taparla. */
body:has(.price-bar) .chat-widget {
  bottom: 8.5rem;
}

.chat-widget-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}

.chat-widget-badge {
  position: absolute;
  top: -3px;
  right: -3px;
}

.chat-widget-panel {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: min(23rem, calc(100vw - 2rem));
  max-height: min(34rem, calc(100vh - 10rem));
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.chat-widget-panel .btn-sm {
  align-self: flex-start;
}

.chat-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.chat-widget-header strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
}

.chat-widget-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.chat-widget-list li + li {
  border-top: 1px solid var(--line);
}

.chat-widget-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-height: 52px;
  padding: 0.5rem 0.25rem;
  border: 0;
  background: none;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.chat-widget-list button:hover {
  color: var(--brass-dark);
}

.quote-chat {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.quote-chat h3 {
  margin: 0;
}

.quote-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 20rem;
  overflow-y: auto;
  padding: 0.6rem;
  background: var(--sail);
  border-radius: var(--radius);
}

.quote-chat-message {
  align-self: flex-start;
  max-width: 85%;
  padding: 0.5rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}

.quote-chat-message-own {
  align-self: flex-end;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.quote-chat-message-own .muted {
  color: rgba(255, 255, 255, 0.7);
}

.quote-chat-form {
  display: flex;
  gap: 0.5rem;
}

.quote-chat-form input {
  flex: 1;
  min-width: 0;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: var(--ink);
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-lg);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 699px) {
  body:has(.cookie-banner) .chat-widget {
    display: none;
  }
}

@media (min-width: 700px) {
  .cookie-banner {
    right: auto;
    max-width: 30rem;
  }
}

/* ---------- Presupuestos (cliente y responsable) ---------- */

.quote-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quote-list-item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quote-list-item > :first-child {
  min-width: 0;
}

.quote-list-item strong {
  font-weight: 600;
  color: var(--ink);
}

.quote-list-item-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

@media (min-width: 760px) {
  .quote-list-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .quote-list-item-right {
    justify-content: flex-end;
    flex-shrink: 0;
    max-width: 55%;
  }
}

.price {
  font-weight: 600;
  color: var(--ink);
}

.price-big {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--ink);
}

.quote-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto;
}

.quote-detail > .btn-back {
  margin-bottom: 0;
}

.quote-detail h1 {
  margin: 0;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
}

.quote-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  margin: 0;
}

.quote-facts dt {
  margin-top: 0.7rem;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.quote-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.quote-facts .btn {
  margin: 0.2rem 0.3rem 0.2rem 0;
}

@media (min-width: 600px) {
  .quote-facts {
    grid-template-columns: minmax(9rem, max-content) 1fr;
    gap: 0.6rem 1.5rem;
  }

  .quote-facts dt {
    margin-top: 0.15rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--sail-2);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-amber {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-blue {
  background: #e1ecf3;
  color: var(--ink-3);
}

.badge-green {
  background: var(--success-soft);
  color: var(--success);
}

.badge-red {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge-pending {
  align-self: flex-start;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Páginas de contenido ---------- */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 28rem;
  margin: 1rem auto;
}

.auth-form h2 {
  margin: 0;
  font-size: 2.1rem;
}

.auth-alt {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.auth-alt p {
  margin: 0;
}

.contacto-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 44rem;
  margin: 0 auto;
}

.contacto-card h1,
.contacto-card h2 {
  margin: 0;
}

.wizard {
  max-width: 40rem;
  margin: 0 auto;
}

.wizard-stepper {
  display: flex;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
}

.wizard-step-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.9rem;
}

.wizard-step-dot.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pdp-option-list {
  display: grid;
  gap: 0.6rem;
}

.pdp-option {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
}

.pdp-option strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
}

.pdp-option:hover {
  border-color: var(--ink);
}

.pdp-option.is-selected {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: inherit;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.guide-card:hover {
  border-color: var(--brass);
  box-shadow: var(--shadow);
}

.guide-card h2 {
  margin: 0;
  font-size: 1.6rem;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.guide-card-meta {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.guide-detail {
  max-width: 48rem;
  margin: 0 auto;
}

.guide-detail h1 {
  margin: 0.4rem 0 0.3rem;
}

.guide-body {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.guide-body h2 {
  margin: 2.25rem 0 0.75rem;
}

.guide-body h3 {
  margin: 1.5rem 0 0.5rem;
}

.guide-body ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.guide-body li {
  margin-bottom: 0.45rem;
}

.guide-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.apartado-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.apartado-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.apartado-card:hover {
  border-color: var(--brass);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.apartado-card h3 {
  margin: 0;
  font-size: 1.6rem;
}

.apartado-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.not-found {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2rem 0;
  text-align: center;
}

.not-found-search {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.not-found-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

@media (min-width: 520px) {
  .not-found-search {
    flex-direction: row;
  }

  .not-found-search input {
    flex: 1;
  }
}

.product-reviews {
  margin-top: 2.5rem;
}

.product-reviews h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.review-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--brass);
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.review-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.review-item-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.review-item p {
  margin: 0;
}

/* ---------- Panel del responsable ---------- */

.admin-subnav,
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-tile {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.25rem;
  background: linear-gradient(160deg, var(--ink-3), var(--ink));
  border-radius: var(--radius-lg);
  color: #fff;
}

.stat-tile-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

.stat-tile-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}

.settings-message-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.5rem 0;
  padding: 0;
  list-style: none;
}

.settings-message-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.settings-message-list li > span {
  flex: 1 1 10rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.settings-message-list li input {
  flex: 1 1 9rem;
  width: auto;
}

.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.catalog-type-group,
.catalog-product {
  margin-top: 0.75rem;
  padding: 0;
}

.catalog-product-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  color: var(--ink);
  cursor: pointer;
}

.catalog-product-header > div {
  flex: 1 1 12rem;
  min-width: 0;
}

.catalog-product-header select {
  width: auto;
  min-width: 10rem;
}

.catalog-product-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
}

.variant-editor {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-hero-media-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.admin-hero-media-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-hero-media-label {
  font-weight: 600;
  color: var(--ink);
}

.admin-hero-media-preview,
.admin-hero-media-empty {
  width: 100%;
  height: 11rem;
  border-radius: var(--radius);
}

.admin-hero-media-preview {
  object-fit: cover;
  background: var(--ink);
}

.admin-hero-media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line-strong);
  background: var(--sail);
  color: var(--muted);
  font-size: 0.88rem;
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    align-items: end;
  }
}

/* ---------- Carga ---------- */

.skeleton {
  background: linear-gradient(90deg, var(--line) 25%, #efe8da 37%, var(--line) 63%);
  background-size: 400% 100%;
  border-radius: var(--radius-sm);
  animation: skeleton-shimmer 1.4s ease infinite;
}

.skeleton-text {
  width: 100%;
  height: 0.9rem;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   Panel de Administración tipo Shopify (/admin) + Editor Visual Rich Text
   ========================================================================== */

.shopify-admin {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1.5rem;
  min-height: 75vh;
  align-items: start;
  position: relative;
}

.shopify-mobile-bar {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #0d1b2a;
  color: #fff;
  border-radius: 8px;
}

.shopify-sidebar {
  background: #fff;
  border: 1px solid rgba(13, 27, 42, 0.1);
  border-radius: 10px;
  padding: 1rem 0.75rem;
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shopify-sidebar-brand {
  display: flex;
  flex-direction: column;
  padding: 0.25rem 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(13, 27, 42, 0.08);
}

.shopify-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.shopify-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #1b2a3a;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.shopify-nav-btn:hover {
  background: rgba(13, 27, 42, 0.06);
}

.shopify-nav-btn.is-active {
  background: #0d1b2a;
  color: #fff;
}

.shopify-sidebar-footer {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(13, 27, 42, 0.08);
}

.shopify-content {
  min-width: 0;
}

.shopify-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.shopify-header-row h2 {
  margin: 0 0 0.25rem;
}

.shopify-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.shopify-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1.1rem;
}

.shopify-kpi strong {
  font-size: 1.35rem;
}

.shopify-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.shopify-search {
  min-width: 240px;
  flex: 1;
  max-width: 380px;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(13, 27, 42, 0.2);
  border-radius: 6px;
}

.shopify-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shopify-item-card {
  padding: 1rem 1.15rem;
}

.shopify-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.shopify-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.shopify-media-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.shopify-media-preview {
  height: 150px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shopify-media-preview img,
.shopify-media-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shopify-media-body {
  padding: 0.75rem;
}

.rte-wrapper {
  border: 1px solid rgba(13, 27, 42, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.rte-toolbar {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.45rem 0.6rem;
  background: #f6f7f9;
  border-bottom: 1px solid rgba(13, 27, 42, 0.12);
}

.rte-surface {
  padding: 0.75rem 0.9rem;
  outline: none;
  line-height: 1.55;
}

.rte-surface:focus {
  background: #fcfcfd;
}

.shopify-toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  background: #0d1b2a;
  color: #fff;
  padding: 0.75rem 1.15rem;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  font-size: 0.92rem;
}

.shopify-toast.is-error {
  background: #c0392b;
}

@media (max-width: 860px) {
  .shopify-admin {
    grid-template-columns: 1fr;
  }
  .shopify-mobile-bar {
    display: flex;
  }
  .shopify-sidebar {
    display: none;
    position: static;
  }
  .shopify-sidebar.is-open {
    display: flex;
  }
}


/* ==========================================================================
   EDITOR VISUAL DE TIENDA (/admin/editor) — Layout de 4 Zonas + Lienzo
   ========================================================================== */

body.ve-fullscreen-mode #navbar-root,
body.ve-fullscreen-mode #footer-root,
body.ve-fullscreen-mode #chat-root,
body.ve-fullscreen-mode #cookie-root {
  display: none !important;
}

body.ve-fullscreen-mode main {
  padding: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}

.ve-shell {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  background: #f1f5f9;
  color: #0f172a;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
}

/* ZONA 1: Barra superior */
.ve-topbar {
  height: 56px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
  flex-shrink: 0;
}

.ve-topbar-left,
.ve-topbar-center,
.ve-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ve-back-btn {
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f1f5f9;
}

.ve-brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0a2240;
  margin: 0 4px;
}

.ve-select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.ve-device-group {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.ve-device-btn {
  border: none;
  background: transparent;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.ve-device-btn.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ve-status-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.ve-status-pill.is-dirty {
  background: #fef3c7;
  color: #92400e;
}

.ve-status-pill.is-saved {
  background: #dcfce7;
  color: #166534;
}

.ve-icon-btn,
.ve-btn-secondary {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.ve-icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ve-btn-publish {
  border: none;
  background: #16a34a;
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ve-btn-publish:hover {
  background: #15803d;
}

.ve-btn-full {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* Workspace central (Zonas 2, 3 y 4) */
.ve-workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  min-height: 0;
  overflow: hidden;
}

/* ZONA 2: Panel izquierdo (280px) */
.ve-left-panel {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ve-left-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ve-left-tab {
  border: none;
  background: transparent;
  padding: 10px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.ve-left-tab.is-active {
  color: #0a2240;
  border-bottom-color: #0ea5e9;
  background: #ffffff;
}

.ve-left-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.ve-left-header {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ve-left-header span {
  font-weight: 700;
  color: #0f172a;
}

.ve-left-header small {
  color: #64748b;
  font-size: 11.5px;
}

.ve-section-list,
.ve-left-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.ve-section-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  margin-bottom: 6px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}

.ve-section-item:hover {
  border-color: #94a3b8;
}

.ve-section-item.is-selected {
  border-color: #0284c7;
  background: #f0f9ff;
}

.ve-section-item.is-muted {
  opacity: 0.55;
}

.ve-drag-handle {
  color: #94a3b8;
  cursor: grab;
  user-select: none;
}

.ve-section-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ve-section-item-info strong {
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ve-section-item-info small {
  color: #64748b;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ve-section-item-actions {
  display: flex;
  gap: 2px;
}

.ve-section-item-actions button {
  border: none;
  background: transparent;
  padding: 3px 5px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 12px;
}

.ve-section-item-actions button:hover {
  background: #e2e8f0;
}

.ve-left-footer {
  padding: 10px 12px;
  border-top: 1px solid #e2e8f0;
}

.ve-btn-add-sec {
  width: 100%;
  padding: 9px;
  border: 1px dashed #0284c7;
  background: #f0f9ff;
  color: #0369a1;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
}

.ve-ai-launcher-wrap {
  padding: 10px 12px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ve-ai-fab {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, #0a2240, #0284c7);
  color: #ffffff;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* ZONA 3: Lienzo central */
.ve-canvas-area {
  background: #e2e8f0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 16px;
  overflow: auto;
}

.ve-canvas-viewport {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  transition: width 0.22s ease;
  width: 100%;
  max-width: 1440px;
  height: 100%;
}

.ve-canvas-viewport[data-device="tablet"] {
  width: 820px;
}

.ve-canvas-viewport[data-device="mobile"] {
  width: 390px;
}

.ve-canvas-viewport iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ZONA 4: Panel derecho (320px) */
.ve-right-panel {
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ve-right-header {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.ve-right-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0284c7;
  font-weight: 700;
}

.ve-right-header h3 {
  margin: 4px 0 0;
  font-size: 15px;
}

.ve-right-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
}

.ve-prop-group {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #ffffff;
}

.ve-prop-group summary {
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
  background: #f8fafc;
  border-radius: 8px;
}

.ve-prop-group-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ve-prop-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ve-prop-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 12.5px;
  color: #334155;
}

.ve-prop-meta-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ve-help-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  cursor: help;
}

.ve-reset-btn {
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 13px;
}

.ve-input,
.ve-textarea,
.ve-select-full {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
}

.ve-color-row,
.ve-range-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ve-img-thumb {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 6px;
  border: 1px solid #e2e8f0;
}

/* Paletas, contraste y bloques */
.ve-palette-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.ve-palette-card {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  text-align: left;
}

.ve-palette-swatches {
  display: flex;
  height: 18px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.ve-palette-swatches span {
  flex: 1;
}

.ve-contrast-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 8px;
  border-radius: 6px;
  font-size: 11.5px;
  margin: 6px 0;
}

.ve-contrast-ok {
  background: #f0fdf4;
  color: #166534;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  margin: 6px 0;
}

.ve-subblock-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
  margin-bottom: 8px;
}

.ve-subblock-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

/* Modales y Galería de secciones */
.ve-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10020;
  padding: 20px;
}

.ve-modal {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.ve-modal-lg {
  max-width: 860px;
}

.ve-modal-header,
.ve-modal-footer {
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ve-modal-footer {
  border-bottom: none;
  border-top: 1px solid #e2e8f0;
  justify-content: flex-end;
  gap: 10px;
}

.ve-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
}

.ve-gallery-toolbar {
  padding: 12px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ve-gallery-cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ve-cat-pill {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ve-cat-pill.is-active {
  background: #0a2240;
  color: #ffffff;
  border-color: #0a2240;
}

.ve-gallery-grid {
  padding: 20px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.ve-gallery-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ffffff;
}

.ve-gallery-icon {
  font-size: 26px;
}

.ve-gallery-cat-badge {
  font-size: 11px;
  text-transform: uppercase;
  color: #0284c7;
  font-weight: 700;
}

/* Drawer del Asistente IA */
.ve-ai-drawer {
  position: fixed;
  right: 336px;
  bottom: 16px;
  width: 360px;
  max-height: 520px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  z-index: 10010;
  overflow: hidden;
}

.ve-ai-header {
  background: linear-gradient(135deg, #0a2240, #0284c7);
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ve-ai-header button {
  border: none;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
}

.ve-ai-chips {
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.ve-ai-chips button {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
}

.ve-ai-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ve-ai-msg {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.45;
}

.ve-ai-msg.is-bot {
  background: #f1f5f9;
  color: #0f172a;
  align-self: flex-start;
}

.ve-ai-msg.is-user {
  background: #0284c7;
  color: #ffffff;
  align-self: flex-end;
}

.ve-ai-proposal-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 12px;
}

.ve-ai-form {
  padding: 10px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 6px;
}

/* Toast Deshacer eliminación */
.ve-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 10030;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.ve-toast button {
  border: none;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

/* Estilos dentro del Lienzo Central (iframe ?editorCanvas=1) */
.ve-canvas-section {
  position: relative;
  border: 2px solid transparent;
  border-radius: 14px;
  transition: border-color 0.12s ease;
  cursor: pointer;
}

.ve-canvas-section:hover {
  border-color: #38bdf8;
}

.ve-canvas-section.is-selected {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.ve-canvas-badge {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 30;
  background: #0284c7;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: none;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.ve-canvas-section:hover .ve-canvas-badge,
.ve-canvas-section.is-selected .ve-canvas-badge {
  display: inline-flex;
}

.ve-canvas-quick-actions {
  display: inline-flex;
  gap: 4px;
}

.ve-canvas-quick-actions button {
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 4px;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 11px;
}

.ve-inline-editing {
  outline: 2px dashed #38bdf8 !important;
  background: rgba(2, 132, 199, 0.12);
  border-radius: 4px;
  padding: 2px 6px;
}

.ve-product-quick-edit {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  border: none;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.ve-hidden-pill {
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 4px;
}


/* ==========================================================================
   DISEÑO WEB DE VELERÍAS (Secciones 6, 8, 10 y 15):
   - Números tabulares en configurador y precios
   - Comparador visual de materiales (escala 1–10)
   - Ayuda contextual "No sé: ayúdame a medir" y salida directa a WhatsApp
   - Muestras de color accesibles (borde + check ✓ + etiqueta visible)
   ========================================================================== */

.price-bar-amount,
.configurator-layout input[type="number"],
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.btn-whatsapp {
  --btn-bg: #15803d;
  --btn-fg: #ffffff;
  --btn-border: #15803d;
}

.btn-whatsapp:hover {
  --btn-bg: #166534;
  --btn-border: #166534;
}

/* Comparador visual de materiales (Figura 7 · Escala 1-10) */
.material-comparator {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.material-comparator--light {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
}

.material-comparator-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.mat-comp-table {
  display: grid;
  gap: 0.85rem;
}

.mat-comp-row {
  display: grid;
  grid-template-columns: 160px repeat(3, 1fr);
  gap: 1rem;
  align-items: center;
  font-size: 0.86rem;
}

@media (max-width: 720px) {
  .mat-comp-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  }
}

.mat-comp-metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mat-comp-metric-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  opacity: 0.88;
  font-variant-numeric: tabular-nums;
}

.mat-comp-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
  overflow: hidden;
}

.mat-comp-fill {
  height: 100%;
  border-radius: 999px;
}

.mat-comp-fill--perf {
  background: #1f6fb2;
}

.mat-comp-fill--dur {
  background: #2aa6b8;
}

.mat-comp-fill--cost {
  background: #c2410c;
}

/* Ayuda de medición "No sé: ayúdame a medir" (Figura 6 y 9) */
.measure-help-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin-top: 0.75rem;
  background: var(--sail);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.88rem;
}

/* Muestras de color accesibles (borde + check + nombre visible, Sección 5 y 15) */
.color-swatch-card.is-selected,
.color-chip.is-selected {
  outline: 3px solid var(--ink) !important;
  outline-offset: 2px;
  font-weight: 600;
}

/* ==========================================================================
   MEJORAS FUNCIONALES Y VISUALES AVANZADAS:
   1. Selector de modelo de barco (1 clic -> P, E, I, J y m² oficiales)
   2. Barra de progreso por pasos + Esquema técnico SVG interactivo
   3. Sección de Servicio Posventa, Reparación y Lavado de Velas
   4. Ficha Técnica Imprimible / Descargable en PDF (@media print)
   ========================================================================== */

/* 1. Barra de progreso del configurador */
.cfg-progress-wrap {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.cfg-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.86rem;
}

.cfg-progress-pct {
  font-weight: 600;
  color: var(--ink-3);
}

.cfg-progress-bar {
  height: 8px;
  background: var(--sail-2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.cfg-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ink-3), var(--brass));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.cfg-progress-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.cfg-progress-step.is-done {
  color: var(--ink);
  font-weight: 600;
}

/* 2. Selector rápido de modelo de barco y cotas de astillero */
.boat-preset-box {
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  background: var(--sail);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.boat-preset-header {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
}

.boat-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.boat-preset-chip {
  min-height: 38px !important;
  padding: 0.35rem 0.75rem !important;
  font-size: 0.82rem !important;
  font-variant-numeric: tabular-nums;
}

.boat-preset-summary {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.85rem;
  color: var(--ink);
}

/* 3. Esquema técnico SVG interactivo de mediciones */
.sail-tech-diagram {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sail-tech-diagram svg {
  width: 100%;
  max-width: 180px;
  height: auto;
  display: block;
}

@media (max-width: 600px) {
  .sail-tech-diagram {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* 4. Servicio Posventa, Reparación y Lavado de Velas */
.service-repair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.service-repair-card {
  padding: 1.15rem 1.25rem;
  background: var(--sail);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-repair-card h3 {
  font-size: 1.2rem;
  margin: 0.45rem 0 0.3rem;
}

/* 5. Ficha Técnica Imprimible / Descargable en PDF */
.print-only-header,
.print-only-footer {
  display: none;
}

@media print {
  .site-header,
  .site-topbar,
  .site-footer,
  .chat-widget,
  .cookie-banner,
  .btn-back,
  .no-print,
  .shopify-sidebar,
  .shopify-mobile-bar,
  .price-bar,
  button,
  form {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #0b2545 !important;
    font-size: 11pt;
  }

  .card {
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    background: #ffffff !important;
  }

  .print-only-header {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #0b2545;
  }

  .print-only-brand {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .print-only-brand strong {
    font-size: 16pt;
    letter-spacing: 0.12em;
    color: #0b2545;
  }

  .print-only-meta {
    text-align: right;
    font-size: 9.5pt;
    color: #475569;
  }

  .print-only-footer {
    display: block !important;
    margin-top: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #cbd5e1;
    font-size: 9pt;
    color: #475569;
  }
}

/* =========================================================================
   MÓDULOS SEO NÁUTICO (Migas de pan, FAQPage, Modelos de barco, Tablas)
   ========================================================================= */

.seo-breadcrumbs {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.seo-breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.seo-breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.seo-breadcrumbs-item a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

.seo-breadcrumbs-item a:hover {
  color: var(--terracotta);
  text-decoration: underline;
}

.seo-breadcrumbs-sep {
  opacity: 0.5;
}

.seo-category-header {
  margin-bottom: 1.5rem;
}

.seo-category-header h1 {
  margin: 0 0 0.5rem;
}

.seo-category-intro {
  margin: 0;
  max-width: 72ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.seo-category-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.seo-bottom-content h2 {
  margin-top: 0;
  font-size: 1.45rem;
}

.seo-bottom-content p {
  line-height: 1.7;
  color: var(--ink);
}

.seo-bottom-content a {
  color: var(--terracotta);
  font-weight: 500;
  text-decoration: underline;
}

.seo-faq-section {
  margin-top: 2rem;
}

.seo-faq-heading {
  font-size: 1.45rem;
  margin: 0 0 1rem;
}

.seo-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.seo-faq-item {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  padding: 0.9rem 1.15rem;
  transition: border-color 0.15s ease;
}

.seo-faq-item[open] {
  border-color: var(--navy, #0b2545);
}

.seo-faq-question {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy, #0b2545);
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.seo-faq-question::-webkit-details-marker {
  display: none;
}

.seo-faq-question::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--terracotta, #c2410c);
  line-height: 1;
}

.seo-faq-item[open] .seo-faq-question::after {
  content: "−";
}

.seo-faq-answer {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line, #e2e8f0);
  color: var(--muted, #475569);
  line-height: 1.65;
  font-size: 0.95rem;
}

.seo-faq-answer p {
  margin: 0;
}

.seo-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.seo-spec-table th,
.seo-spec-table td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line, #e2e8f0);
}

.seo-spec-table th {
  font-weight: 600;
  color: var(--navy, #0b2545);
  background: rgba(11, 37, 69, 0.03);
  width: 32%;
}

.seo-model-specs-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 860px) {
  .seo-model-specs-grid {
    grid-template-columns: 1fr;
  }
}

.seo-model-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

.seo-model-card,
.seo-sail-option-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.seo-model-card h2 a {
  color: var(--navy);
  text-decoration: none;
}

.seo-model-card h2 a:hover {
  color: var(--terracotta);
  text-decoration: underline;
}

.seo-model-dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  margin: 0.25rem 0 0.5rem;
  font-size: 0.88rem;
}

.seo-model-dl > div {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  border-bottom: 1px dashed var(--line, #e2e8f0);
}

.seo-model-dl dt {
  color: var(--muted);
}

.seo-model-dl dd {
  margin: 0;
  font-weight: 600;
}

.seo-model-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.seo-model-link-card:hover {
  border-color: var(--terracotta);
  transform: translateY(-2px);
}

.seo-admin-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
  gap: 0.6rem;
}

.seo-admin-check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: rgba(21, 128, 61, 0.06);
  border: 1px solid rgba(21, 128, 61, 0.18);
  font-size: 0.88rem;
}

.seo-admin-check-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #15803d;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}


