/* ===== FONTS ===== */
/* Tipografia del nombre ETIQ-BORD, igual a la del logo de su web (Tinos, licencia Apache) */
@font-face {
  font-family: 'Tinos';
  src: url('../fonts/Tinos-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ===== VARIABLES ===== */
:root {
  --primary-cyan: #2DA7C8;
  --primary-cyan-hover: #228AA7;
  --cyan-soft: rgba(45, 167, 200, 0.14);
  --dark-accent: #111111;
  --gray-900: #1a1a1a;
  --gray-600: #555555;
  --gray-400: #999999;
  --gray-200: #e5e5e5;
  --gray-150: #e9edf1;
  --gray-100: #f8f9fa;
  --white: #ffffff;
  --wa-green: #1c8c4c;
  --wa-green-bg: #25a55f;

  --font-base: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.12);
  --container-width: 1180px;
  --header-height: 68px;
}

/* ===== RESET ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
section[id] { scroll-margin-top: var(--header-height); }
:focus-visible { outline: 3px solid var(--primary-cyan); outline-offset: 3px; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1100;
  background: var(--dark-accent);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--primary-cyan);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(45, 167, 200, 0.28);
}
.btn-primary:hover { background: var(--primary-cyan-hover); }
.btn-outline-cyan {
  background: transparent;
  color: var(--primary-cyan-hover);
  border-color: var(--primary-cyan);
}
.btn-outline-cyan:hover { background: var(--primary-cyan); color: var(--white); }
.btn-light {
  background: var(--white);
  color: var(--primary-cyan-hover);
}
.btn-light:hover { background: var(--gray-100); }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-block { width: 100%; margin-top: auto; }
.text-cyan { color: var(--primary-cyan); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark-accent);
  padding: 4px 2px;
}
.link-arrow span { display: inline-block; transition: transform 0.15s ease; }
.link-arrow:hover span { transform: translateX(4px); }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  height: var(--header-height);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark { width: 48px; height: 48px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; gap: 4px; }
.brand-name-row { display: flex; align-items: flex-end; gap: 5px; }
.brand-name {
  display: block;
  font-family: 'Tinos', 'Times New Roman', Times, serif;
  font-weight: 400;
  font-size: 1.62rem;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: #4a4f4f;
  white-space: nowrap;
}
.brand-light .brand-name { color: var(--white); }
/* "Textil" recto, en el celeste del logo */
.brand-textil { font-size: 0.7rem; font-weight: 500; line-height: 1; letter-spacing: 0.02em; color: #3fafd0; margin-bottom: 2px; }
.brand-light .brand-textil { color: var(--white); }
.brand-tagline {
  font-size: 0.64rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: justify;
  text-align-last: justify;
  line-height: 1;
  color: var(--gray-600);
  white-space: nowrap;
}
.brand-light .brand-tagline { color: rgba(255, 255, 255, 0.75); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 501;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--dark-accent);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: 10px 20px 24px;
  gap: 4px;
  transform: translateY(-150%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}
.main-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.nav-link {
  position: relative;
  padding: 12px 4px;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 600;
  color: var(--gray-900);
  transition: color 0.2s ease;
}
.nav-link:hover,
.nav-link.is-active { color: var(--primary-cyan-hover); }
.nav-cta { margin-top: 12px; }

/* ===== HERO ===== */
/* Foto del telar a todo el ancho, con degradé oscuro para leer el texto */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 0;
  background: #0b2a34;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}
.hero-inner { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.75), 0 4px 22px rgba(0, 0, 0, 0.55); }
.hero .btn { text-shadow: none; }
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.hero-badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 9px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 2.4rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
}
.hero .text-cyan { color: #5ccbe6; }
.hero-subtitle {
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--white);
  max-width: 680px;
  margin: 0 0 1.8em;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(6, 26, 33, 0.62);
  text-shadow: none;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.hero-actions .btn-primary { width: 100%; }
.hero .link-arrow { color: var(--white); font-size: 1.12rem; }
.hero .btn-lg { font-size: 1.1rem; padding: 16px 34px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(6, 26, 33, 0.62);
  text-shadow: none;
}
.hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong { font-size: 1.95rem; line-height: 1.1; color: var(--white); }
.hero-stats span { font-size: 0.98rem; color: rgba(255, 255, 255, 0.88); line-height: 1.3; }

/* ===== SECTION GENERIC ===== */
.section { padding: 52px 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.section-head .section-lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block;
  color: var(--primary-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
/* Puntadas cortas a los lados del eyebrow de cada seccion */
.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-head .eyebrow::before,
.section-head .eyebrow::after {
  content: "";
  width: 18px;
  border-top: 1.5px dashed currentColor;
  opacity: 0.6;
}
.section h2 {
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.4em;
}
.section-lead {
  color: var(--gray-600);
  max-width: 640px;
  font-size: 1.02rem;
  margin-bottom: 0;
}
.cta-inline {
  margin-top: 36px;
  text-align: center;
}
.cta-inline-left { text-align: left; }
.cta-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
}

.section-alt { background: var(--gray-150); }
.section-calc { background: var(--white); }
.section-contact { background: var(--white); }

/* ===== PRODUCTS ===== */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 36px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.product-card-header {
  background: var(--primary-cyan);
  padding: 14px 18px;
}
.product-card-header h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin: 0;
}
.product-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--gray-100);
  overflow: hidden;
  cursor: zoom-in;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card-img:hover img { transform: scale(1.04); }
.product-card-img .product-img-alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.5s ease;
}
.product-card-img:hover .product-img-alt { opacity: 1; }

.card-min,
.card-photos {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding: 7px 11px;
  pointer-events: none;
}
.card-min {
  left: 12px;
  bottom: 12px;
  background: var(--white);
  color: var(--dark-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.card-photos {
  right: 12px;
  top: 12px;
  background: rgba(17, 17, 17, 0.62);
  color: var(--white);
}
.card-photos svg { width: 14px; height: 14px; }

.product-card-body {
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.93rem;
  line-height: 1.4;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23228AA7' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Lo mas pedido */
.highlight-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 28px auto 0;
}
.highlight-list li {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark-accent);
}
.highlight-list li.is-featured {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  border-radius: 14px;
  background: var(--primary-cyan);
  border-color: var(--primary-cyan);
  color: var(--white);
}
.highlight-list li.is-featured small { font-size: 0.72rem; font-weight: 500; color: rgba(255, 255, 255, 0.9); }

/* Tipos de terminacion */
.terminaciones {
  scroll-margin-top: calc(var(--header-height) + 16px);
  margin-top: 28px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.terminaciones summary,
.terminaciones-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}
.terminaciones summary::-webkit-details-marker { display: none; }
.terminaciones-head { cursor: default; }
.terminaciones-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--dark-accent);
}
.terminaciones-title small {
  font-size: 0.82rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gray-600);
}
.terminaciones-chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--primary-cyan-hover);
  transition: transform 0.2s ease;
}
.terminaciones[open] .terminaciones-chevron { transform: rotate(180deg); }
.terminaciones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 16px 16px;
}
.terminacion {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 12px 16px;
  border-radius: 12px;
  background: var(--gray-100);
}
.terminacion svg { width: 100%; max-width: 220px; height: auto; overflow: visible; }
.terminacion-wide { grid-column: 1 / -1; }
.terminacion-wide svg { max-width: none; height: 84px; overflow: hidden; }
.terminacion figcaption {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--gray-600);
}
.tm-label { fill: var(--teal-dark, #0d3542); }
.tm-fold { fill: #1d5466; }
.tm-line { stroke: var(--primary-cyan); stroke-width: 2; stroke-dasharray: 6 5; fill: none; }
.tm-seam { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.5; stroke-dasharray: 3 3; fill: none; }
.visually-hidden { position: absolute; width: 0; height: 0; overflow: hidden; }
.terminaciones + .terminaciones { margin-top: 16px; }
.carta-body { padding: 0 16px 20px; }
.product-card-img.carta-img {
  aspect-ratio: auto;
  border-radius: 10px;
  background: var(--gray-100);
}
.carta-img img { height: auto; object-fit: contain; }
.carta-lurex { margin-top: 6px; }
.carta-note {
  margin: 12px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--gray-600);
}

/* Detalle por tecnica: bordado, goma, estampado */
.tech-block {
  scroll-margin-top: calc(var(--header-height) + 16px);
  margin-top: 14px;
  padding: 20px 18px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.tech-intro { margin: 56px 0 20px; text-align: center; }
.tech-intro h3 { margin: 0 0 6px; font-size: 1.6rem; color: var(--dark-accent); }
.tech-intro p { margin: 0; color: var(--gray-600); }
/* Cada tecnica arranca cerrada y se abre al tocarla */
.tech-head {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}
.tech-head::-webkit-details-marker { display: none; }
.tech-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tech-head .eyebrow { margin-bottom: 4px; }
.tech-head h3 { margin: 0 0 4px; font-size: 1.3rem; color: var(--dark-accent); }
.tech-lead { font-size: 0.92rem; color: var(--gray-600); }
.tech-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 9px 12px 9px 16px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--primary-cyan-hover);
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}
.tech-toggle svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.tech-toggle-label::before { content: "Ver detalle"; }
.tech-block[open] .tech-toggle-label::before { content: "Cerrar"; }
.tech-block[open] .tech-toggle svg { transform: rotate(180deg); }
.tech-head:hover .tech-toggle { background: var(--primary-cyan); color: var(--white); }
.tech-block[open] > .tech-head { margin-bottom: 24px; }
.tech-body { animation: panel-in 0.25s ease; }
.tech-cols { display: grid; grid-template-columns: 1fr; gap: 14px; }
.tech-col { padding: 20px 20px 22px; border-radius: 12px; background: var(--gray-100); }
.tech-col h4 {
  margin: 0 0 14px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-cyan-hover);
}
.feature-list li small { display: block; margin-top: 2px; font-size: 0.82rem; color: var(--gray-600); }
.calidades-list li { text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; }
.calidades-list li small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.tech-extras { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
.tech-extra { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--gray-200); }
.tech-extra h4 { margin: 0 0 4px; font-size: 0.95rem; color: var(--dark-accent); }
.tech-extra p { margin: 0; font-size: 0.86rem; line-height: 1.45; color: var(--gray-600); }
.tech-note { margin: 14px 0 0; text-align: center; font-size: 0.9rem; font-weight: 600; color: var(--primary-cyan-hover); }
.tech-block .terminaciones { margin-top: 14px; box-shadow: none; border: 1.5px solid var(--gray-150); }
.tech-block .terminaciones + .terminaciones { margin-top: 12px; }
.tech-cta { margin-top: 24px; text-align: center; }

/* Lineas secundarias: tarjetas compactas */
.products-more-title {
  margin: 40px 0 16px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-accent);
}
.products-more {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.product-mini {
  display: grid;
  grid-template-columns: 120px 1fr;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.product-mini:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.product-mini .product-card-img { aspect-ratio: auto; height: 100%; min-height: 150px; }
.product-mini .card-photos { top: 8px; right: 8px; padding: 5px 8px; font-size: 0.7rem; }
.product-mini-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 16px;
}
.product-mini-body h3 { font-size: 1rem; margin: 0; }
.product-mini-body p { margin: 0; font-size: 0.84rem; line-height: 1.4; color: var(--gray-600); }
.product-mini-min { font-size: 0.78rem; font-weight: 700; color: var(--primary-cyan-hover); }
.product-mini-body .btn { margin-top: auto; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }

/* ===== RUBROS ===== */
.rubros-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.rubro-card {
  background: var(--white);
  color: var(--dark-accent);
  border: 1.5px solid var(--gray-150);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.rubro-card:hover { transform: translateY(-4px); border-color: var(--primary-cyan); }
.rubro-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--primary-cyan-hover);
}
.rubro-icon svg { width: 28px; height: 28px; }
.rubro-card h3 { font-size: 0.95rem; margin: 0 0 6px; }
.rubro-card p {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.4;
  margin: 0;
}

/* ===== PROCESO ===== */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 40px;
  position: relative;
}
.step {
  position: relative;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  text-align: center;
}
.step-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--white);
  border: 2px dashed var(--primary-cyan);
  color: var(--primary-cyan-hover);
}
.step-icon svg { width: 28px; height: 28px; }
.step-num {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-cyan);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: 0.88rem; color: var(--gray-600); margin: 0; line-height: 1.45; }

/* ===== CALCULADORA ===== */
.calc-widget {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 36px;
}
.calc-tool,
.calc-table-col {
  min-width: 0;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
}
.calc-tool h3,
.calc-table-title { font-size: 1.1rem; margin-bottom: 16px; }
.calc-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-600);
}
.calc-input {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 0 14px;
  transition: border-color 0.2s ease;
}
.calc-input:focus-within { border-color: var(--primary-cyan); }
.calc-input input {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-accent);
}
.calc-input input:focus { outline: none; }
.calc-input em { font-style: normal; color: var(--gray-400); font-weight: 700; }
.calc-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.calc-result-item {
  background: var(--white);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  border: 1px solid var(--gray-200);
}
.calc-result-total {
  background: var(--primary-cyan-hover);
  border-color: var(--primary-cyan-hover);
  color: var(--white);
  position: relative;
}
.calc-result-total::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1.5px dashed rgba(255, 255, 255, 0.55);
  border-radius: 7px;
  pointer-events: none;
}
.calc-result-item strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1.1;
}
.calc-result-item span { font-size: 0.8rem; font-weight: 600; opacity: 0.85; }
.calc-note {
  font-size: 0.84rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.5;
}
.calc-note + .calc-note { margin-top: 8px; }
#calc-warning { color: #b0541f; font-weight: 600; }
.calc-mayorista {
  margin: 12px 0;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.5px dashed var(--gray-200);
  font-size: 0.86rem;
  color: var(--gray-600);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.calc-mayorista.is-active {
  background: rgba(37, 165, 95, 0.1);
  border-color: var(--wa-green-bg);
  color: var(--wa-green);
}
.anchos {
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--gray-100);
  text-align: center;
}
.anchos-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1.05rem;
  margin: 0 0 16px;
}
.anchos-title small { font-size: 0.85rem; font-weight: 400; color: var(--gray-600); }
.anchos-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}
.anchos-list li {
  padding: 8px 4px;
  white-space: nowrap;
  border-radius: 8px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-cyan-hover);
}
.anchos-list li::after { content: "mm"; display: block; margin-top: 1px; font-size: 0.68rem; font-weight: 600; color: var(--gray-400); }
.calc-table-wrap { overflow-x: auto; }
.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.calc-table th,
.calc-table td {
  padding: 9px 14px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.calc-table th {
  color: var(--primary-cyan-hover);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.calc-table tbody tr { transition: background 0.2s ease; }
.calc-table tbody tr:nth-child(even) { background: var(--white); }
.calc-table tbody tr.is-match { background: var(--cyan-soft); font-weight: 700; }
.calc-table tbody tr.is-match td:first-child { box-shadow: inset 3px 0 0 var(--primary-cyan); }


/* ===== TESTIMONIOS ===== */
.testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}
.testi-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.testi-mark {
  font-size: 3.2rem;
  line-height: 0.6;
  height: 24px;
  font-weight: 700;
  color: var(--primary-cyan);
}
.testi-card blockquote {
  flex: 1;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  font-style: italic;
  color: var(--gray-900);
}
.testi-who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-150);
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.4;
}
.testi-who strong { display: block; font-size: 0.92rem; color: var(--dark-accent); }
.testi-grid.is-single { grid-template-columns: 1fr; max-width: 760px; margin-left: auto; margin-right: auto; }
.testi-grid.is-single .testi-card blockquote { font-size: 1.02rem; }
.testi-logo { display: block; height: 64px; width: auto; max-width: 100%; }
.testi-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-cyan);
  color: var(--white);
  font-weight: 700;
}

/* Carrusel infinito de logos */
.trust-logos {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px dashed var(--gray-200);
}
.trust-title { margin: 0 0 24px; text-align: center; font-size: 1.05rem; color: var(--dark-accent); }
.logos-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: logos-scroll 32s linear infinite;
}
.logos-track:hover { animation-play-state: paused; }
@keyframes logos-scroll { to { transform: translateX(calc(-50% - 8px)); } }
.logo-card {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 88px;
  padding: 14px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.logo-card img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-placeholder {
  border-style: dashed;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-400);
}

/* ===== CONTACTO ===== */
.contact-direct { max-width: 1000px; margin: 40px auto 0; }
.contact-direct-title {
  margin: 0 0 16px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-accent);
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 16px 16px 18px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-cyan);
  box-shadow: var(--shadow-hover);
}
.contact-card:has(.is-wa):hover { border-color: var(--wa-green-bg); }
.contact-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--primary-cyan-hover);
}
.contact-card-icon svg { width: 24px; height: 24px; }
.contact-card-icon.is-wa { background: rgba(37, 165, 95, 0.14); color: var(--wa-green-bg); }
.contact-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.contact-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
}
.contact-card strong { font-size: 0.93rem; color: var(--dark-accent); overflow-wrap: anywhere; }

.quote-form {
  max-width: 820px;
  margin: 28px auto 0;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-150);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hidden-field { position: absolute; left: -9999px; }
.form-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.chip-group {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip-group legend {
  width: 100%;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 8px;
  padding: 0;
}
.chip { position: relative; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--gray-200);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: all 0.15s ease;
}
.chip input:checked + span {
  background: var(--primary-cyan);
  border-color: var(--primary-cyan);
  color: var(--white);
}
.chip input:focus-visible + span {
  outline: 3px solid var(--primary-cyan);
  outline-offset: 2px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row label {
  font-size: 0.88rem;
  font-weight: 700;
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-base);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-900);
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}
.form-row .is-invalid { border-color: #c0392b; }
.form-row textarea { resize: vertical; }
.form-row select.is-prefilled { border-color: var(--primary-cyan); background: #f2fafd; }


.form-label { font-size: 0.88rem; font-weight: 700; }
.optional { font-weight: 400; color: var(--gray-400); }
.form-help { font-size: 0.8rem; color: var(--gray-600); margin: 2px 0 0; }

/* ===== SELECTOR DE PRODUCTOS ===== */
.picker { position: relative; }
.picker-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 6px 6px 6px 12px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.picker-field:hover { border-color: var(--primary-cyan); }
.picker.is-open .picker-field {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}
.picker.is-invalid .picker-field { border-color: #c0392b; }
.picker-chips { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.picker-placeholder { color: var(--gray-400); font-size: 0.95rem; padding: 6px 0; }
.picker-chip {
  display: inline-flex;
  align-items: center;
  background: var(--primary-cyan);
  border-radius: 999px;
  overflow: hidden;
}
.picker-chip button {
  display: flex;
  align-items: center;
  border: none;
  background: none;
  color: var(--white);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.picker-chip-open { padding: 6px 4px 6px 12px; }
.picker-chip-remove { padding: 6px 9px 6px 5px; }
.picker-chip button:hover { background: var(--primary-cyan-hover); }
.picker-chip svg { width: 14px; height: 14px; }
.picker-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--primary-cyan-hover);
  cursor: pointer;
}
.picker-toggle svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.picker.is-open .picker-toggle svg { transform: rotate(180deg); }
.picker-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
  padding: 6px;
  max-height: 380px;
  overflow-y: auto;
}
.picker-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
}
.picker-group + .picker-option { margin-top: 0; }
.picker-option + .picker-group { margin-top: 6px; border-top: 1px solid var(--gray-150); }
.picker-group small { font-size: 0.72rem; color: var(--primary-cyan-hover); letter-spacing: 0; text-transform: none; }
.picker-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--gray-900);
  text-align: left;
  cursor: pointer;
}
.picker-option:hover,
.picker-option:focus-visible { background: var(--gray-100); outline: none; }
.picker-option span { flex: 1; line-height: 1.3; }
.picker-option small { flex-shrink: 0; white-space: nowrap; color: var(--gray-400); font-size: 0.76rem; font-weight: 600; }
.picker-option.is-selected { color: var(--primary-cyan-hover); font-weight: 700; }
.picker-option.is-selected small { color: var(--primary-cyan-hover); }
.picker-option.is-selected::after {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23228AA7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ===== PANELES POR PRODUCTO ===== */
.product-panels { display: flex; flex-direction: column; gap: 14px; }
.product-panels:empty { display: none; }
.product-panel {
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  background: var(--gray-100);
  transition: border-color 0.2s ease;
}
.product-panel.is-open { border-color: var(--primary-cyan); }
.product-panel.has-error:not(.is-open) { border-color: #e39b8f; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } }
.product-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 6px 10px 6px 6px;
  transition: background 0.2s ease;
}
.product-panel.is-open .product-panel-head { background: var(--primary-cyan); color: var(--white); }
.product-panel-toggle {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
}
.pp-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pp-title { font-size: 0.95rem; font-weight: 700; }
.pp-status {
  font-size: 0.8rem;
  color: var(--gray-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pp-status.is-missing { color: #b0541f; font-weight: 600; }
.pp-status.is-done { color: var(--wa-green); font-weight: 600; }
.product-panel.is-open .pp-status { display: none; }
.pp-chevron { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.2s ease; }
.product-panel.is-open .pp-chevron { transform: rotate(180deg); }
.product-panel-remove {
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
.product-panel-remove:hover { background: rgba(255, 255, 255, 0.3); }
.product-panel:not(.is-open) .product-panel-remove { background: var(--gray-100); color: var(--gray-600); }
.product-panel:not(.is-open) .product-panel-remove:hover { background: var(--gray-200); }
.product-panel-body[hidden] { display: none; }
.product-panel-body {
  animation: panel-in 0.25s ease;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.pf-group { border: none; margin: 0; padding: 0; min-width: 0; }
.pf-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-600);
  margin-bottom: 8px;
  padding: 0;
}
.pf-hint { text-transform: none; letter-spacing: 0; color: var(--primary-cyan-hover); font-weight: 700; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chips .chip span { padding: 7px 14px; font-size: 0.82rem; background: var(--white); }
.pf-chips .chip input:checked + span { background: var(--primary-cyan); }
.pf-group.is-invalid .chip span { border-color: #f0b8b0; }
.pf-group.is-invalid .pf-label { color: #c0392b; }
.pf-group input[type="text"],
.pf-group textarea {
  width: 100%;
  font-family: var(--font-base);
  font-size: 0.93rem;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pf-group input[type="text"]:focus,
.pf-group textarea:focus {
  outline: none;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}
.pf-group .is-invalid { border-color: #c0392b; }
.pf-pair { display: grid; grid-template-columns: 1fr; gap: 14px; }
.qty-input { position: relative; }
.pf-group .qty-input input { padding-right: 88px; }
.qty-unit {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-400);
  pointer-events: none;
}
.pf-error { display: block; margin-top: 6px; font-size: 0.8rem; font-weight: 600; color: #c0392b; }
.pf-error:empty { display: none; }
.pf-note { display: block; margin-top: 6px; font-size: 0.8rem; color: var(--wa-green); font-weight: 600; }
.pf-qty.has-qty-error input { border-color: #c0392b; }
.pf-qty.has-qty-error .pf-hint { color: #c0392b; }

.form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.form-actions .btn { width: 100%; }
.form-hint { font-size: 0.82rem; color: var(--gray-600); margin: -6px 0 0; text-align: center; }
.form-feedback {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}
.form-feedback:empty { display: none; }
.form-feedback.success { color: #1e7e34; }
.form-feedback.error { color: #c0392b; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark-accent);
  color: var(--gray-400);
  font-size: 0.9rem;
  padding-top: 52px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 36px;
}
.footer-brand p { margin: 14px 0 0; max-width: 300px; line-height: 1.5; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.footer-col a { transition: color 0.2s ease; }
.footer-col a:not(.btn):hover { color: var(--primary-cyan); }
.footer-cta { margin-top: 8px; }
.footer-bottom {
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  padding-top: 20px;
  padding-bottom: 24px;
  font-size: 0.82rem;
}
.footer-bottom p { margin: 0; }

/* ===== BARRA FIJA MOVIL ===== */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 600;
  display: grid;
  padding: 10px 80px calc(10px + env(safe-area-inset-bottom, 0px)) 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
}
.mobile-cta.is-visible { transform: translateY(0); visibility: visible; }
.mobile-cta .btn { padding: 13px 18px; }

.wa-float {
  position: fixed;
  right: 14px;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 610;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--wa-green-bg);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(37, 165, 95, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}
.wa-float:hover { transform: scale(1.07); background: var(--wa-green); }
.wa-float svg { width: 30px; height: 30px; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 20, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
/* Marco de tamaño fijo: la foto no cambia de tamaño al pasar de una a otra */
.lightbox-content { margin: 0; width: min(92vw, 560px); }
.lightbox-content img {
  display: block;
  width: 100%;
  height: min(70vh, 700px);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}
.lightbox-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  padding-top: 12px;
}
.lightbox-caption #lightbox-title { font-weight: 700; color: var(--white); }
.lightbox-caption-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.lightbox-variant {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--primary-cyan);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
}
.lightbox-variant[hidden] { display: none; }
.lightbox-caption #lightbox-count { white-space: nowrap; }
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 50%;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.25); }

/* ===== ANIMACIONES ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .logos-track { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 599px) {
  .tech-toggle { padding: 10px; }
  .tech-toggle-label { display: none; }
}

@media (min-width: 600px) {
  .form-cols { grid-template-columns: 1fr 1fr; }
  .tech-cols, .tech-extras { grid-template-columns: 1fr 1fr; }
  .tech-block { padding: 24px 28px; }
  .pf-pair { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .section { padding: 64px 0; }
  .section h2 { font-size: 2.1rem; }
  .hero h1 { font-size: 3rem; }
  .hero-subtitle { font-size: 1.38rem; }
  .hero-actions { flex-direction: row; align-items: center; gap: 28px; }
  .hero-actions .btn-primary { width: auto; }
  .hero-stats strong { font-size: 2.4rem; }
  .hero-stats span { font-size: 1.05rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .rubros-grid { grid-template-columns: repeat(4, 1fr); }
  .calc-widget { grid-template-columns: 1.05fr 1fr; }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card { flex-direction: column; text-align: center; gap: 10px; padding: 22px 16px 18px; }
  .contact-card-text { align-items: center; }
  .contact-card strong { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  :root { --header-height: 84px; }
  .brand { gap: 12px; }
  .brand-mark { width: 60px; height: 60px; }
  .brand-name { font-size: 2rem; }
  .brand-textil { font-size: 0.86rem; margin-bottom: 3px; }
  .brand-text { gap: 6px; }
  .brand-tagline { font-size: 0.8rem; }
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    gap: 28px;
  }
  .nav-link {
    padding: 6px 0;
    border-bottom: none;
    font-size: 0.92rem;
  }
  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--primary-cyan);
    transform: scaleX(0);
    transition: transform 0.25s ease;
  }
  .nav-link:hover::after,
  .nav-link.is-active::after { transform: scaleX(1); }
  .nav-cta { margin-top: 0; }
  .hero {
    display: flex;
    min-height: min(760px, calc(100vh - var(--header-height)));
    padding-top: 80px;
  }
  .hero-bg { object-position: center; }
  .hero-inner {
    width: 100%;
    grid-template-columns: minmax(0, 740px) 1fr;
    grid-template-rows: 1fr auto;
    column-gap: 40px;
    row-gap: 40px;
  }
  .hero-text { align-self: center; }
  .hero h1 { font-size: 3.4rem; }
  .hero-stats { grid-column: 1 / -1; max-width: 740px; margin-bottom: 36px; }
  /* Opcion 2: degradé solo a la izquierda, detrás del texto; la derecha de la foto queda limpia */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(6, 26, 33, 0.88) 0%, rgba(6, 26, 33, 0.74) 36%, rgba(6, 26, 33, 0.38) 56%, rgba(6, 26, 33, 0) 70%);
  }
  .hero-inner { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
  .hero-subtitle { padding: 0; background: none; }
  .hero-stats { padding: 18px 0 0; background: none; border-radius: 0; border-top: 1px solid rgba(255, 255, 255, 0.25); }
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .products-more { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .tech-extras { grid-template-columns: repeat(4, 1fr); }
  .tech-extras-3 { grid-template-columns: repeat(3, 1fr); }
  .tech-block { padding: 26px 36px; }
  .tech-block[open] { padding-bottom: 36px; }
  .tech-intro h3 { font-size: 2rem; }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  .terminaciones-grid { grid-template-columns: repeat(4, 1fr); padding: 0 24px 24px; gap: 16px; }
  .carta-body { padding: 0 24px 24px; }
  .anchos-list { grid-template-columns: repeat(15, minmax(0, 1fr)); max-width: none; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps::before {
    content: "";
    position: absolute;
    top: 58px;
    left: 12%;
    right: 12%;
    border-top: 2px dashed rgba(45, 167, 200, 0.5);
  }
  .mobile-cta { display: none; }
  .wa-float { right: 28px; bottom: 28px; width: 60px; height: 60px; }
  .wa-float svg { width: 32px; height: 32px; }
}

@media (min-width: 1280px) {
  .hero h1 { font-size: 4.1rem; }
}
