/* ==========================================================================
   ZINCLEY SPA - ESTILOS CORPORATIVOS & INDUSTRIALES
   Paleta Oficial de la Marca:
   - #901126 (Rojo Borgoña / Identidad Primaria Zincley)
   - #070707 (Negro Carbón Industrial / Fondos Oscuros / Textos)
   - #7f7f7f (Gris Acero / Textos Secundarios)
   - #dadada (Gris Claro / Bordes y Detalles Metálicos)
   - #fff0f0 (Blanco Cálido / Fondos de Resalte Suave)
   - #25d366 (Verde Oficial WhatsApp)
   
   Diseñado y Desarrollado por Cross SpA
   ========================================================================== */

:root {
  /* Tipografía */
  --font-sans: 'Barlow', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Paleta Corporativa Zincley */
  --brand-red: #901126;
  --brand-red-hover: #a81730;
  --brand-red-light: #fef2f2;
  --brand-red-tint: rgba(144, 17, 38, 0.08);
  --brand-red-on-dark: #f87171;
  
  --brand-black: #0d0f14;
  --brand-black-soft: #161922;
  --brand-black-card: #1c202b;
  --brand-gray: #475569;
  --brand-gray-light: #e2e8f0;
  --brand-gray-border: #cbd5e1;
  
  /* Asignación funcional */
  --primary: #0d0f14;
  --primary-light: #1e2430;
  --primary-dark: #07080b;
  
  --accent: #901126;
  --accent-hover: #a81730;
  --accent-soft: #fef2f2;
  
  --steel: #475569;
  --steel-light: #64748b;
  --steel-bg: #f1f5f9;
  
  /* WhatsApp Oficial con Contraste Accesible WCAG AA */
  --whatsapp: #25d366;
  --whatsapp-hover: #22bf5b;
  --whatsapp-dark: #0f663b;
  --whatsapp-bg: #f0fdf4;
  --whatsapp-text: #052e16;

  /* Neutros & Fondos */
  --bg-body: #ffffff;
  --bg-card: #ffffff;
  --bg-alt: #f8fafc;
  --bg-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #f8fafc;
  --text-muted-dark: #94a3b8;
  --border-color: #e2e8f0;
  --border-subtle: rgba(226, 232, 240, 0.8);
  --border-focus: #901126;
  
  /* Sombras físicas multicapa */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-lift: 0 14px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.04);

  /* Dimensiones & Transiciones */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.24s var(--ease-out);
  --max-width: 1240px;
}

/* --------------------------------------------------------------------------
   RESET & SUPERFICIES DE NAVEGADOR (CRAFT FLOOR)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selección de texto tematizada */
::selection {
  background-color: var(--brand-red);
  color: #ffffff;
}

::-moz-selection {
  background-color: var(--brand-red);
  color: #ffffff;
}

/* Scrollbar personalizado sutil */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0d0f14;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: var(--radius-full);
  border: 2px solid #0d0f14;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-red);
}

/* Anillos de foco visibles para teclado */
:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 3px;
}

/* Números tabulares para datos técnicos y métricas */
.tabular-nums,
.metric-number,
.quote-summary-preview,
.cert-specs-table,
.product-specs-table {
  font-variant-numeric: tabular-nums;
}

img, picture, svg, video {
  max-width: 100%;
  display: block;
}

svg:not([width]) {
  width: 20px;
  height: 20px;
  max-width: 100%;
  flex-shrink: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* --------------------------------------------------------------------------
   BARRA SUPERIOR (TOPBAR)
   -------------------------------------------------------------------------- */
.topbar {
  background-color: var(--brand-black);
  color: #dadada;
  font-size: 0.825rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(218, 218, 218, 0.15);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-item svg {
  width: 15px;
  height: 15px;
  color: var(--brand-red-on-dark);
}

.topbar-item a:hover {
  color: #ffffff;
}

.topbar-badge {
  background-color: var(--brand-red);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   CABECERA PRINCIPAL (NAVBAR)
   -------------------------------------------------------------------------- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-xs);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--brand-gray-border);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-black);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.nav-link:hover {
  color: var(--brand-red);
  background-color: var(--brand-red-light);
}

.nav-link.active {
  color: var(--brand-red);
  background-color: var(--brand-red-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Botones genéricos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  position: relative;
}

.btn:active {
  transform: scale(0.98);
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--brand-red);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--brand-red-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--brand-black);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background-color: var(--brand-red-hover);
  color: #ffffff;
  border-color: var(--brand-red-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--brand-gray-border);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  background-color: var(--brand-red-light);
  transform: translateY(-2px);
}

.btn-hero-outline {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.btn-hero-outline:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: var(--whatsapp-text);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  color: var(--whatsapp-text);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-whatsapp-dark {
  background-color: var(--whatsapp-dark);
  color: #ffffff;
}

.btn-whatsapp-dark:hover {
  background-color: #0b502e;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 1.9rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* Botón menú móvil (hamburguesa) */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--brand-black);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.mobile-toggle:hover {
  background-color: var(--steel-bg);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

.mobile-only-action {
  display: none;
}

/* --------------------------------------------------------------------------
   HERO BANNER INDUSTRIAL
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background-color: var(--brand-black);
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, rgba(13, 15, 20, 0.88) 0%, rgba(13, 15, 20, 0.93) 100%),
    url('../img/fabricacion-perfil-5v-negro.png');
  background-size: 24px 24px, 100% 100%, cover;
  background-position: center;
  background-repeat: repeat, no-repeat, no-repeat;
  color: #ffffff;
  padding: 5.5rem 0 6rem 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--bg-body), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-badge svg {
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.hero-title span {
  color: #ffffff;
  position: relative;
  display: inline-block;
}

.hero-title span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 4px;
  background-color: var(--brand-red);
  border-radius: var(--radius-full);
}

.hero-description {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 620px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.metric-number span {
  color: var(--brand-red-on-dark);
}

.metric-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 0.25rem;
  line-height: 1.35;
}

/* Tarjeta flotante Hero */
.hero-card {
  background: rgba(22, 25, 34, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.hero-card-header {
  margin-bottom: 1.5rem;
}

.hero-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.hero-card-subtitle {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.hero-fast-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero-fast-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: #f1f5f9;
}

.hero-fast-item svg {
  width: 18px;
  height: 18px;
  color: var(--whatsapp);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   SECCIONES GENERALES
   -------------------------------------------------------------------------- */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-dark {
  background-color: var(--brand-black);
  color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 800;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--brand-black);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-dark .section-title {
  color: #ffffff;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-dark .section-subtitle {
  color: #dadada;
}

/* --------------------------------------------------------------------------
   SISTEMA DE ANIMACIONES Y REVEAL FLUIDO (UX MOTION)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  will-change: opacity;
}

.reveal-fade.is-revealed {
  opacity: 1;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  will-change: opacity, transform;
}

.reveal-scale.is-revealed {
  opacity: 1;
  transform: scale(1);
}

/* Retardo secuencial para cuadrículas */
.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.20s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.30s; }

/* Respeto estricto por accesibilidad: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-fade,
  .reveal-scale,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   PILARES CORPORATIVOS & VALOR
   -------------------------------------------------------------------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.pillar-card {
  background: var(--bg-card);
  padding: 2.25rem 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(144, 17, 38, 0.4);
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.pillar-icon {
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out);
}

.pillar-card:hover .pillar-icon {
  transform: translateX(3px);
}

.pillar-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.pillar-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   CATÁLOGO DE PRODUCTOS
   -------------------------------------------------------------------------- */
.product-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.filter-btn:hover {
  border-color: var(--brand-black);
  color: var(--brand-black);
  background-color: var(--bg-alt);
}

.filter-btn.active {
  background-color: var(--brand-black);
  color: #ffffff;
  border-color: var(--brand-black);
  box-shadow: var(--shadow-sm);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
  will-change: transform, box-shadow;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(144, 17, 38, 0.4);
}

/* Contenedor de Imagen con Relación Controlada y Recorte Limpio */
.product-card-media {
  position: relative;
  width: 100%;
  height: 200px;
  max-height: 200px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: block;
}

/* Gradiente de contraste para asegurar legibilidad de badges sobre planchas claras/zincalum */
.product-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 7, 7, 0.58) 0%,
    rgba(7, 7, 7, 0.12) 32%,
    transparent 50%,
    rgba(7, 7, 7, 0.2) 75%,
    rgba(7, 7, 7, 0.65) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.product-card-media img,
.product-preview-img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.28s cubic-bezier(0.25, 1, 0.5, 1), transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), filter 0.28s ease;
  will-change: opacity, transform, filter;
}

.product-preview-img.is-switching {
  opacity: 0.18 !important;
  transform: scale(0.96) !important;
  filter: blur(1.5px);
}

.product-card:hover .product-card-media img:not(.is-switching) {
  transform: scale(1.05);
}

/* Fila de Badges superiores alineados con flexbox y z-index prioritario */
.product-card-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
  pointer-events: none;
}

.product-badge-use,
.product-badge-origin {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

.product-badge-use {
  background-color: rgba(7, 7, 7, 0.88);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
}

.product-badge-origin {
  background-color: var(--brand-red);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Píldora de Color Seleccionado en la esquina inferior */
.preview-color-pill {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(7, 7, 7, 0.88);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  backdrop-filter: blur(6px);
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: opacity 0.25s ease;
}

/* Cuerpo de Tarjeta Compactado Verticalmente */
.product-card-body {
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-header-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
  gap: 0.5rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--brand-black);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}

.product-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-gray);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.product-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.45em;
}

.product-specs-table {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  color: var(--steel);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.spec-val {
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.825rem;
}

/* Colores interactivos compactos */
.product-colors-box {
  margin-bottom: 0.85rem;
}

.color-box-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: flex;
  justify-content: space-between;
}

.selected-color-name {
  color: var(--brand-red);
  font-weight: 800;
}

.color-swatches {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.swatch-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  outline: 2px solid #cbd5e1;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), outline-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.swatch-btn:hover {
  transform: scale(1.15);
  outline-color: var(--brand-red);
}

.swatch-btn.active {
  outline: 2.5px solid var(--brand-red);
  transform: scale(1.12);
  box-shadow: 0 0 0 3px rgba(144, 17, 38, 0.25);
}

/* Colores específicos */
.swatch-rojo { background-color: #901126; }
.swatch-terracota { background-color: #b2472b; }
.swatch-negro { background-color: #070707; }
.swatch-gris { background-color: #7f7f7f; }
.swatch-azul { background-color: #1e3a8a; }
.swatch-galv { background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%); border: 1px solid #94a3b8; }
.swatch-verde { background-color: #1e6336; }

.product-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.btn-customize-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border-color);
  color: var(--brand-black);
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-customize-quote:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  background-color: var(--brand-red-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(144, 17, 38, 0.12);
}

.btn-customize-quote svg {
  width: 16px;
  height: 16px;
  color: var(--brand-red);
  transition: transform 0.2s ease-in-out;
}

.btn-customize-quote:hover svg {
  transform: scale(1.15);
}

.btn-product-whatsapp {
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   COTIZADOR INTERACTIVO WHATSAPP (DYNAMIC QUOTE BUILDER)
   -------------------------------------------------------------------------- */
.quote-builder-section {
  background-color: var(--brand-black);
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  color: #ffffff;
  padding: 5.5rem 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-box {
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

/* Pulso de atención visual al seleccionar producto desde el catálogo */
@keyframes quoteHighlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(144, 17, 38, 0.45);
    border-color: var(--brand-red);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(144, 17, 38, 0);
    border-color: var(--brand-red);
  }
  100% {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border-color: var(--border-color);
  }
}

.quote-box.pulse-highlight {
  animation: quoteHighlightPulse 1s var(--ease-out);
}

/* Scroll-margin para compensar la barra de cabecera fija */
#hero,
#pilares,
#catalogo,
#calidad-sustentabilidad,
#calidad-origen,
#cotizadorWhatsapp,
#proyectos,
#contacto,
#ca6,
#pv4,
#pv8,
#5v,
#acanalado,
#teja-continua,
#mapaOficial,
section[id],
article[id] {
  scroll-margin-top: 90px;
}

.quote-box-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.quote-box-title {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: var(--brand-black);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.quote-box-desc {
  color: var(--text-muted);
  font-size: 0.975rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Chips de selección visual de perfiles */
.profile-selector-wrap {
  margin-bottom: 1.75rem;
}

.profile-selector-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.profile-selector-chips {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.65rem;
}

.profile-chip-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 0.45rem;
  background-color: var(--bg-alt);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  text-align: center;
  color: var(--text-main);
}

.profile-chip-btn:hover {
  background-color: #ffffff;
  border-color: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.profile-chip-btn.active {
  background-color: var(--brand-red-light);
  border-color: var(--brand-red);
  color: var(--brand-red);
  box-shadow: 0 0 0 1px var(--brand-red);
}

.profile-chip-thumb,
.profile-chip-img {
  height: 18px;
  max-width: 48px;
  object-fit: contain;
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.profile-chip-btn:hover .profile-chip-thumb,
.profile-chip-btn:hover .profile-chip-img,
.profile-chip-btn.active .profile-chip-thumb,
.profile-chip-btn.active .profile-chip-img {
  opacity: 1;
  transform: scale(1.1);
}

.profile-chip-name {
  font-size: 0.825rem;
  font-weight: 800;
  line-height: 1.2;
}

.profile-chip-width {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.quote-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-select, .form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-select:focus, .form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(144, 17, 38, 0.12);
}

/* Stepper numérico interactivo robusto (Inline Flex) */
.input-stepper-group,
.input-stepper-wrap,
.input-stepper {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.input-stepper-group:focus-within,
.input-stepper-wrap:focus-within,
.input-stepper:focus-within {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(144, 17, 38, 0.12);
}

.input-stepper-group .form-input,
.input-stepper-wrap .form-input,
.input-stepper .form-input,
.stepper-input {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  text-align: center !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: var(--brand-black) !important;
  background: transparent !important;
  padding: 0.65rem 0.5rem !important;
  height: 48px !important;
  margin: 0 !important;
  font-variant-numeric: tabular-nums;
}

.input-stepper-group .form-input:focus,
.input-stepper-wrap .form-input:focus,
.input-stepper .form-input:focus,
.stepper-input:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.stepper-btn {
  position: static !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  background-color: var(--bg-alt) !important;
  border: none !important;
  border-radius: 0 !important;
  color: var(--brand-black) !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background-color 0.15s ease, color 0.15s ease !important;
  user-select: none !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.stepper-btn:hover {
  background-color: var(--brand-red) !important;
  color: #ffffff !important;
}

.stepper-btn:active {
  background-color: #700c1d !important;
  color: #ffffff !important;
}

.stepper-btn.stepper-btn-minus,
.stepper-btn.stepper-minus,
.stepper-btn:first-child {
  border-right: 1px solid var(--border-color) !important;
}

.stepper-btn.stepper-btn-plus,
.stepper-btn.stepper-plus,
.stepper-btn:last-child {
  border-left: 1px solid var(--border-color) !important;
}

/* Tira de Métricas en Vivo de la Cotización */
.quote-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quote-metric-badge {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
}

.quote-metric-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.quote-metric-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.quote-summary-card {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quote-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quote-summary-text {
  font-size: 0.9rem;
  color: #166534;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.quote-summary-preview {
  font-size: 0.85rem;
  color: #14532d;
  background: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #dcfce7;
  line-height: 1.5;
  white-space: pre-wrap;
  font-family: inherit;
}

/* --------------------------------------------------------------------------
   GALERÍA DE PROYECTOS Y FÁBRICA
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: #000000;
  height: 280px;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  opacity: 0.85;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 7, 7, 0.95) 0%, rgba(7, 7, 7, 0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #ffffff;
  transition: var(--transition);
}

.gallery-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--brand-red);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.gallery-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
}

.gallery-desc {
  font-size: 0.85rem;
  color: #dadada;
  margin-top: 0.35rem;
}

/* --------------------------------------------------------------------------
   UBICACIÓN, CONTACTO Y MAPA GOOGLE
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-card-item {
  display: flex;
  gap: 1rem;
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--brand-red-light);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-box svg {
  width: 24px;
  height: 24px;
}

.contact-detail-title {
  font-size: 0.825rem;
  text-transform: uppercase;
  color: var(--brand-gray);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.contact-detail-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.4;
}

.contact-detail-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Contenedor de mapa embebido responsivo */
.map-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  min-height: 420px;
}

.map-wrapper iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 420px;
  border: 0;
  display: block;
}

/* Formulario de contacto */
.contact-form-card {
  background: var(--bg-card);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.contact-form-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brand-black);
  margin-bottom: 0.5rem;
}

.contact-form-subtitle {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* Checkbox de Ley de Protección de Datos */
.legal-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.25rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-red);
  margin-top: 0.15rem;
  flex-shrink: 0;
  cursor: pointer;
}

.legal-checkbox-group a {
  color: var(--brand-red);
  text-decoration: underline;
  font-weight: 700;
}

.legal-checkbox-group a:hover {
  color: var(--brand-red-hover);
}

/* --------------------------------------------------------------------------
   BANNER DE COOKIES & PRIVACIDAD (CUMPLIMIENTO LEGAL LEY CHILENA)
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 650px;
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  z-index: 9999;
  display: none;
  animation: slideUp 0.35s ease-out forwards;
}

.cookie-banner.active {
  display: block;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-header svg {
  width: 22px;
  height: 22px;
  color: var(--brand-red);
}

.cookie-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-black);
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

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

/* --------------------------------------------------------------------------
   BOTÓN FLOTANTE WHATSAPP (PERSISTENTE CON ALERTA)
   -------------------------------------------------------------------------- */
.whatsapp-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.whatsapp-btn-circle {
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background-color 0.2s ease;
  position: relative;
}

.whatsapp-btn-circle svg {
  width: 32px;
  height: 32px;
}

.whatsapp-floating:hover .whatsapp-btn-circle {
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
  background-color: var(--whatsapp-hover);
}

/* Efecto de pulso */
.whatsapp-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  opacity: 0.8;
  animation: waPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.whatsapp-tooltip {
  background: var(--brand-black);
  color: #ffffff;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
}

.whatsapp-floating:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   FOOTER (PIE DE PÁGINA & CRÉDITO CROSS SPA)
   -------------------------------------------------------------------------- */
.main-footer {
  background: linear-gradient(180deg, #12151c 0%, #0d0f14 100%);
  color: #dadada;
  padding: 4.5rem 0 1.5rem 0;
  border-top: 3px solid var(--brand-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  width: fit-content;
  transition: opacity 0.2s ease;
}

.footer-brand-wrap:hover {
  opacity: 0.9;
}

.footer-brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
}

.footer-brand-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.footer-brand-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

.footer-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.footer-desc {
  font-size: 0.9rem;
  color: #a3a3a3;
  line-height: 1.6;
}

.footer-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--brand-red);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.9rem;
  color: #dadada;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.875rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--brand-red-on-dark);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Barra inferior del footer */
.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(218, 218, 218, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
}

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

.footer-legal-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Crédito de desarrollo Cross SpA */
.developer-credit {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(218, 218, 218, 0.2);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  transition: var(--transition);
}

.developer-credit strong {
  color: #ffffff;
  font-weight: 800;
}

.developer-credit:hover {
  background: rgba(144, 17, 38, 0.2);
  border-color: var(--brand-red);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   ESTILOS PARA PÁGINAS LEGALES (POLÍTICA Y TÉRMINOS)
   -------------------------------------------------------------------------- */
.legal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-black);
  margin: 2rem 0 1rem 0;
  border-bottom: 2px solid var(--bg-alt);
  padding-bottom: 0.5rem;
}

.legal-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-red);
  margin: 1.5rem 0 0.75rem 0;
}

.legal-content p, .legal-content li {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  list-style: disc;
  margin-bottom: 1.25rem;
}

.legal-badge-date {
  display: inline-block;
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--steel);
  margin-bottom: 1.5rem;
}

.legal-highlight-box {
  background-color: var(--brand-red-light);
  border: 1px solid rgba(144, 17, 38, 0.2);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--brand-black);
}

/* --------------------------------------------------------------------------
   SECCIÓN: CALIDAD CERTIFICADA & SUSTENTABILIDAD AMBIENTAL
   -------------------------------------------------------------------------- */
.cert-block {
  margin-bottom: 3.5rem;
}

.cert-block:last-of-type {
  margin-bottom: 2.5rem;
}

.cert-block-header {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cert-block-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 0.775rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-red);
  background-color: var(--brand-red-light);
  border: 1px solid rgba(144, 17, 38, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.cert-block-badge-green {
  color: #166534;
  background-color: #eaf8f1;
  border-color: rgba(22, 101, 52, 0.2);
}

.cert-block-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brand-black);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.cert-block-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 860px;
  line-height: 1.6;
}

.cert-grid,
.cert-sustainability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

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

.cert-grid.cert-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cert-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(144, 17, 38, 0.4);
}

.cert-card-eco:hover {
  border-color: rgba(22, 101, 52, 0.4);
}

.cert-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.cert-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background-color: var(--brand-red-light);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.cert-icon svg {
  width: 24px;
  height: 24px;
}

.cert-icon-green {
  background-color: #eaf8f1;
  color: #166534;
}

.cert-card:hover .cert-icon {
  background-color: var(--brand-red);
  color: #ffffff;
}

.cert-card-eco:hover .cert-icon-green {
  background-color: #166534;
  color: #ffffff;
}

.cert-badges-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  align-items: center;
}

.badge-micro {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-micro.badge-primary {
  background-color: var(--brand-red-light);
  color: var(--brand-red);
  border: 1px solid rgba(144, 17, 38, 0.25);
}

.badge-micro.badge-green {
  background-color: #eaf8f1;
  color: #166534;
  border: 1px solid rgba(22, 101, 52, 0.25);
}

.badge-micro.badge-neutral {
  background-color: #ffffff;
  color: var(--brand-black);
  border: 1px solid var(--border-color);
}

.badge-micro.badge-accent {
  background-color: #fff7ed;
  color: #c2410c;
  border: 1px solid rgba(194, 65, 12, 0.25);
}

.cert-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-black);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.cert-card-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.cert-card-points {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cert-card-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.cert-card-points svg {
  width: 16px;
  height: 16px;
  color: var(--brand-red);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.cert-card-eco .cert-card-points svg {
  color: #166534;
}

.cert-summary-banner {
  background: var(--brand-black);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.cert-summary-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.cert-summary-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: rgba(144, 17, 38, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-summary-icon svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.cert-summary-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.cert-summary-desc {
  font-size: 0.925rem;
  color: #dadada;
  line-height: 1.5;
  margin: 0;
}

.cert-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 280px;
}

.cert-summary-actions .btn {
  white-space: normal;
  text-align: center;
  justify-content: center;
  line-height: 1.35;
  box-sizing: border-box;
  padding: 0.85rem 1.25rem;
}

.cert-phone-inline {
  display: inline-block;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   RESPONSIVIDAD Y MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .cert-grid,
  .cert-grid.cert-grid-4,
  .cert-grid.cert-grid-3,
  .cert-sustainability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cert-summary-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .cert-summary-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
  }

  .cert-summary-actions .btn {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 0.85rem 1rem;
    font-size: 0.925rem;
    white-space: normal;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .btn {
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    line-height: 1.35;
    max-width: 100%;
    box-sizing: border-box;
  }

  .cert-origin-cta-wrap {
    margin-top: 1.5rem;
    padding: 0;
  }

  .cert-origin-cta-btn {
    width: 100%;
    max-width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.925rem;
    white-space: normal;
    box-sizing: border-box;
  }

  .section {
    padding: 3rem 0;
  }

  .topbar {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    transform: translateX(100%);
    transition: transform 0.3s ease, visibility 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-menu.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  /* Ajuste crítico móvil para el botón flotante de WhatsApp */
  .whatsapp-floating {
    position: fixed !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    right: 14px !important;
    z-index: 990 !important;
    gap: 0 !important;
  }

  .whatsapp-tooltip {
    display: none !important;
  }

  .whatsapp-btn-circle {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25) !important;
  }

  .whatsapp-btn-circle svg {
    width: 26px !important;
    height: 26px !important;
  }

  .whatsapp-pulse {
    display: none !important;
  }

  .nav-link {
    font-size: 1.15rem;
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-actions {
    display: none;
  }

  .mobile-only-action {
    display: block;
    width: 100%;
    margin-top: 1rem;
  }

  /* Hero Mobile */
  .hero {
    padding: 2.75rem 0 3.5rem 0;
  }

  .hero-title {
    font-size: clamp(1.75rem, 5.5vw, 2.35rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .hero-ctas .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
    padding: 0.8rem 1.25rem;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .btn-lg {
    padding: 0.8rem 1.25rem;
    font-size: 0.95rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding-top: 1.25rem;
  }

  .metric-number {
    font-size: 1.6rem;
  }

  .metric-label {
    font-size: 0.825rem;
  }

  .hero-card {
    padding: 1.5rem 1.15rem;
  }

  /* Desactivar cualquier overflow horizontal en grids principales */
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
    width: 100%;
  }

  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
    width: 100%;
  }

  .pillars-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
    width: 100%;
  }

  .quote-form-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
    width: 100%;
  }

  .quote-box {
    padding: 1.5rem 1.15rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-footer {
    padding-bottom: 5rem;
  }

  .legal-content {
    padding: 1.75rem 1.25rem;
  }

  .cert-grid,
  .cert-grid.cert-grid-4,
  .cert-grid.cert-grid-3,
  .cert-sustainability-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .cert-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .cert-badges-group {
    justify-content: flex-start;
  }

  .cert-summary-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cert-block {
    margin-bottom: 2.5rem;
  }

  .cert-block-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .nav-brand img {
    height: 44px;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .brand-subtitle {
    font-size: 0.75rem;
  }

  .product-card-body {
    padding: 1.15rem 0.95rem;
  }

  .product-colors-selector {
    gap: 0.45rem;
  }

  .color-swatch {
    width: 32px;
    height: 32px;
  }

  .hero-card {
    padding: 1.25rem 1rem;
  }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 1.25rem 1rem;
  }
}

/* ==========================================================================
   IMAGE LIGHTBOX / MODAL DE AMPLIACIÓN DE FICHAS DE PRODUCTO
   ========================================================================== */
.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
}

.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 7, 7, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  max-width: 95vw;
  max-height: 90vh;
  background: #0f1115;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.92);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-lightbox.is-open .lightbox-dialog {
  transform: scale(1);
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.lightbox-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lightbox-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.lightbox-color-badge {
  background: var(--brand-red);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lightbox-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: var(--brand-red);
  transform: rotate(90deg);
}

.lightbox-body {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1a1e24 0%, #0a0b0e 100%);
  overflow: hidden;
}

.lightbox-img {
  max-width: 85vw;
  max-height: calc(85vh - 75px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 0.45rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Affordance de zoom para la vista media del catálogo y planos de perfil */
.product-main-view,
.product-secondary-view {
  cursor: zoom-in;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-main-view:hover,
.product-secondary-view:hover {
  border-color: rgba(144, 17, 38, 0.4);
  box-shadow: var(--shadow-md);
}

.zoom-hint-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(7, 7, 7, 0.75);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  z-index: 2;
  pointer-events: none;
}

.zoom-hint-sm {
  top: 0.45rem;
  right: 0.45rem;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
}

.product-main-view:hover .zoom-hint-btn,
.product-secondary-view:hover .zoom-hint-btn {
  opacity: 1;
  transform: scale(1.05);
  background: var(--brand-red);
  border-color: var(--brand-red);
}

/* Botón interactivo de previsualización de geometría del perfil en tarjetas de portada */
.btn-profile-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.42rem 0.75rem;
  margin-top: 0.75rem;
  background: #f8fafc;
  color: var(--brand-black);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  font-family: inherit;
}

.btn-profile-preview:hover {
  background: #ffffff;
  border-color: rgba(144, 17, 38, 0.4);
  color: var(--brand-red);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-profile-thumb {
  height: 15px;
  max-width: 60px;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-profile-preview:hover .btn-profile-thumb {
  opacity: 1;
  transform: scale(1.08);
}

/* ==========================================================================
   SECCIÓN DE SELLOS INTERACTIVOS EN PORTADA (#calidad-origen)
   ========================================================================== */
.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2.75rem 0 3rem 0;
}

.trust-badge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.trust-badge-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(144, 17, 38, 0.4);
}

.trust-badge-img {
  max-height: 60px;
  height: 60px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.25rem;
  display: block;
  transition: transform 0.25s ease;
}

.trust-badge-card:hover .trust-badge-img {
  transform: scale(1.06);
}

.trust-badge-title {
  font-size: 1.075rem;
  font-weight: 800;
  color: var(--brand-black);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.trust-badge-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.cert-origin-cta-wrap {
  text-align: center;
  margin-top: 2rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.cert-origin-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  box-sizing: border-box;
}

.cert-origin-cta-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cert-origin-cta-btn:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   PÁGINA DEDICADA DE CERTIFICACIONES (certificaciones.html)
   ========================================================================== */
.cert-page-hero {
  background: linear-gradient(135deg, rgba(13, 15, 20, 0.85) 0%, rgba(22, 25, 34, 0.82) 100%),
              url('../img/fabricacion-acanalado.png') center/cover no-repeat;
  color: #ffffff;
  padding: 4.5rem 0 3.5rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-warranty-feature {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease;
}

.cert-warranty-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(144, 17, 38, 0.35);
}

.cert-warranty-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  background: transparent;
}

.cert-warranty-badge-wrap img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.cert-warranty-badge-wrap span {
  font-size: 0.775rem;
  font-weight: 800;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-warranty-body h3 {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--brand-black);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.cert-warranty-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-red-light);
  color: var(--brand-red);
  font-size: 0.825rem;
  font-weight: 800;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  border: 1px solid rgba(144, 17, 38, 0.2);
}

.cert-slope-callout {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.cert-slope-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: #fef3c7;
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-slope-icon svg {
  width: 24px;
  height: 24px;
}

.cert-slope-text h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 0.35rem;
}

.cert-slope-text p {
  font-size: 0.92rem;
  color: #78350f;
  line-height: 1.55;
  margin: 0;
}

.cert-standards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.cert-standard-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.cert-standard-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-red);
}

.cert-standard-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.cert-standard-logo {
  height: 52px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  flex-shrink: 0;
}

.cert-standard-titles h3,
.cert-standard-titles h4 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-black);
  margin-bottom: 0.25rem;
}

.cert-standard-titles .badge-micro {
  margin-top: 0.2rem;
}

/* ==========================================================================
   CAJA DE CONDICIONES TÉCNICAS DE INSTALACIÓN (.tech-conditions-box)
   ========================================================================== */
.tech-conditions-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}

.tech-conditions-header {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tech-conditions-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  max-width: 46px;
  border-radius: var(--radius-md);
  background: var(--brand-red-light);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tech-conditions-icon svg {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  display: block;
}

.tech-conditions-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-black);
  margin: 0;
  line-height: 1.3;
}

.tech-conditions-subtitle {
  font-size: 0.885rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.tech-conditions-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.tech-condition-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--bg-alt);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tech-condition-item:hover {
  transform: translateY(-2px);
  border-color: var(--brand-red);
  box-shadow: var(--shadow-sm);
}

.tech-condition-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.tech-condition-content h4,
.tech-condition-content h5 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-black);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.tech-condition-content p {
  font-size: 0.865rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Ficha de datos técnicos del Certificado Oficial */
.cert-specs-card {
  background: transparent;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-left: none;
  border-right: none;
  border-radius: 0;
  padding: 1.5rem 0;
  margin: 1.5rem 0 2rem 0;
  box-shadow: none;
}

.cert-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cert-specs-table th,
.cert-specs-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  vertical-align: middle;
}

.cert-specs-table tr:last-child th,
.cert-specs-table tr:last-child td {
  border-bottom: none;
}

.cert-specs-table th {
  background: rgba(0, 0, 0, 0.02);
  color: var(--steel);
  font-weight: 800;
  width: 32%;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cert-specs-table td {
  color: var(--text-main);
  font-weight: 500;
}

.cert-source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand-red);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.cert-source-link:hover {
  text-decoration: underline;
  color: var(--brand-red-hover);
}

@keyframes waPulseMobile {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

/* Responsividad para bloques de certificaciones */
@media (max-width: 992px) {
  .trust-badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .cert-warranty-feature {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 1.75rem;
  }

  .cert-warranty-badge-wrap {
    flex-direction: row;
    gap: 1.25rem;
    padding: 1.25rem;
  }

  .cert-warranty-badge-wrap img {
    max-height: 80px;
    margin-bottom: 0;
  }

  .cert-standards-grid {
    grid-template-columns: 1fr;
  }

  .tech-conditions-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .profile-selector-chips {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
}

@media (max-width: 576px) {
  .profile-selector-chips {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .profile-chip-btn {
    padding: 0.6rem 0.4rem;
  }

  .profile-chip-name {
    font-size: 0.775rem;
  }

  .profile-chip-width {
    font-size: 0.75rem;
  }
  .trust-badges-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .trust-badge-card {
    padding: 1.75rem 1.25rem;
  }

  .cert-warranty-feature {
    padding: 1.5rem;
  }

  .cert-warranty-badge-wrap {
    flex-direction: column;
    text-align: center;
  }

  .cert-slope-callout {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
  }

  .cert-standard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .tech-conditions-box {
    padding: 1.35rem 1rem;
  }

  .tech-conditions-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .tech-conditions-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    flex-shrink: 0 !important;
  }

  .tech-conditions-icon svg {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    display: block !important;
  }

  .cert-specs-table th,
  .cert-specs-table td {
    padding: 0.75rem 0.65rem;
    font-size: 0.825rem;
  }

  .cert-specs-table th {
    width: 38%;
  }

  .cert-summary-banner {
    padding: 1.5rem 1rem;
  }

  .cert-summary-actions .btn {
    padding: 0.75rem 0.85rem;
    font-size: 0.885rem;
  }

  .cert-origin-cta-btn {
    padding: 0.8rem 0.85rem;
    font-size: 0.885rem;
  }

  .cert-phone-inline {
    font-size: 0.85rem;
  }
}
