﻿/* ==========================================================================
   SISTEMA DE DISEÑO Y ESTILOS - WEB OFICIAL FRALCA C.A.
   Diseñado bajo estándares premium (Identidad FRALCA)
   ========================================================================== */

/* Fuentes */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@600;700;800;900&display=swap');

/* Variables de Color y Tema */
:root {
  /* HSL Tailored Colors */
  --primary-color: #0047BA;       /* Azul FRALCA principal */
  --primary-hover: #0B3272;
  --success-color: #00CE7C;       /* Verde FRALCA claro para éxito/cotizar */
  --success-hover: #00B86E;
  --warning-color: #f59e0b;       /* Amarillo/Ámbar para CrediFralca */
  --danger-color: #dc2626;
  
  /* Tema Claro (Por Defecto) */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --text-main: #151D29;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --card-glow: rgba(33, 73, 201, 0.03);
}

[data-theme="dark"] {
  /* Tema Oscuro */
  --bg-body: #0b0f19;
  --bg-card: #151d30;
  --bg-glass: rgba(21, 29, 48, 0.7);
  --text-main: #cbd5e1;
  --text-muted: #8492a6;
  --text-inverse: #0b0f19;
  --border-color: #202b42;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
  --card-glow: rgba(33, 73, 201, 0.08);
}

/* Reset y Estilos Globales */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================================================
   ESTRUCTURA DE ENCABEZADO FRALCA
   ========================================================================== */
.fralca-header-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  z-index: 1000;
  position: relative;
  box-shadow: var(--shadow-sm);
}

/* Barra Principal (Azul FRALCA) */
.header-main-bar {
  background-color: var(--primary-color);
  color: white;
  padding: 15px 26px 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* Marca y Logo */
.header-brand-fx {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.header-brand-fx:hover {
  transform: scale(1.03);
}

.brand-logo-img {
  height: 36px;
  object-fit: contain;
  display: block;
}

.brand-title-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 2.2rem;
  letter-spacing: -1.5px;
  color: white;
  position: relative;
  line-height: 1;
}

.brand-title-text::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: white;
  border-radius: 2px;
}

/* Buscador */
.header-search-container {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 9999px;
  height: 48px;
  flex-grow: 1;
  max-width: none;  /* ocupa todo el espacio libre del encabezado */
  padding: 2px;
  border: 1px solid var(--border-color);
  position: relative;
  margin-left: auto;
}

.search-category-select {
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border-right: 1.5px solid #e2e8f0;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.search-category-select:hover {
  color: var(--primary-color);
}

.search-category-dropdown {
  position: absolute;
  top: 52px;
  left: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  width: 160px;
  z-index: 100;
  display: none;
  overflow: hidden;
  flex-direction: column;
}

.search-category-dropdown.active {
  display: flex;
}

.search-category-dropdown div {
  padding: 10px 15px;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.search-category-dropdown div:hover {
  background: #f1f5f9;
  color: var(--primary-color);
}

.header-search-input {
  border: none;
  background: transparent;
  padding: 0 20px;
  font-size: 0.9rem;
  color: #1e293b;
  width: 100%;
  height: 100%;
  outline: none;
}

.header-search-input::placeholder {
  color: #94a3b8;
}

.header-search-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
  flex-shrink: 0;
  margin-right: 3px;
}

.header-search-btn:hover {
  background-color: var(--primary-hover);
}

/* Controles de Usuario y Carrito */
.header-actions-container {
  display: flex;
  align-items: center;
  gap: 28px;
}

.action-item-fx {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.action-item-fx:hover {
  opacity: 0.85;
}

.action-icon-fx {
  font-size: 1.5rem;
}

.action-text-fx {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.2;
}

.action-sub-fx {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.action-main-fx {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* Iconos de Caja Redondeada (Notificaciones y Carrito) */
.header-box-icon {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  position: relative;
  transition: background 0.2s, transform 0.2s;
}

.header-box-icon:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.header-box-icon.cart-icon-box {
  background: white;
  color: var(--primary-color);
  border-color: white;
}

.header-box-icon.cart-icon-box:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.dot-active-status {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--success-color);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success-color);
}

.cart-badge-count-fx {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--danger-color);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(220, 38, 38, 0.4);
}

/* Barra Secundaria (Navegación / Sub-header Centrado) */
.header-sub-bar {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 5%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sub-bar-nav {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.sub-nav-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sub-nav-link:hover {
  color: var(--primary-color);
}

.sub-nav-link.active {
  color: var(--primary-color);
}

/* Botón Selector de Tema Flotante (FAB) */
.theme-toggle-btn-floating {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(33, 73, 201, 0.35);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s, box-shadow 0.2s;
}

.theme-toggle-btn-floating:hover {
  transform: scale(1.1) rotate(15deg);
  background-color: var(--primary-hover);
  box-shadow: 0 6px 18px rgba(33, 73, 201, 0.45);
}

.theme-toggle-btn-floating:active {
  transform: scale(0.95);
}

/* Contenido Principal */
.main-container {
  padding: 0 5%;
  max-width: 1440px;
  margin: 0 auto;
}

/* ==========================================================================
   HERO PROMO BANNER Y TARJETAS DE CATEGORÍAS
   ========================================================================== */
.hero-promo-section {
  margin-top: 30px;
  margin-bottom: 50px;
  position: relative;
}

/* Banner Promocional (Azul FRALCA) */
.promo-banner-fx {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0B3272 100%);
  border-radius: 20px;
  padding: 40px 50px 100px 50px; /* Margen inferior extra para que las tarjetas se superpongan */
  color: white;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 30px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.promo-banner-fx::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(40, 167, 69, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Banner Izquierda */
.promo-banner-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 16px;
  backdrop-filter: blur(5px);
}

.badge-semana {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.count-products-fx {
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: white;
  margin: 5px 0;
  text-shadow: 0 4px 10px rgba(0,0,0,0.2);
  font-variant-numeric: tabular-nums;   /* el contador no «baila» mientras sube */
}

.desc-products-fx {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
}

.desc-products-fx span {
  color: var(--success-color);   /* verde original del banner (vuelve el 26-oct-2026) */
}

/* Banner Centro */
.promo-banner-center {
  text-align: center;
}

.promo-banner-center h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.promo-banner-center h2 span {
  color: var(--success-color);
  position: relative;
}

.promo-banner-center p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

/* Banner Derecha (Vectores decorativos) */
.promo-banner-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 140px;
}

.banner-glass-vector {
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.15);
  border: 2.5px solid rgba(255, 255, 255, 0.6);
  transform: perspective(300px) rotateX(15deg) rotateY(-25deg);
  border-radius: 6px;
  position: absolute;
  left: 20%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.banner-profile-vector {
  width: 30px;
  height: 110px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  transform: rotate(15deg);
  position: absolute;
  right: 20%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Fila de Tarjetas de Categorías Superpuestas */
.categories-cards-grid-fx {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding: 0 30px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.cat-card-fx {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.3s;
}

.cat-card-fx:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.cat-card-title-fx {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 15px;
  text-align: left;
}

.cat-card-img-box-fx {
  border-radius: 12px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.bg-coral-fx {
  background-color: #fda77f;
}

.bg-pink-fx {
  background-color: #f8a5c2;
}

.bg-blue-fx {
  background-color: #70a1ff;
}

.bg-yellow-fx {
  background-color: #ffeaa7;
}

[data-theme="dark"] .cat-card-img-box-fx {
  opacity: 0.85;
}

/* ==========================================================================
   BÚSQUEDA Y CATEGORÍAS (Barra de control superior)
   ========================================================================== */
.control-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.search-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 0 18px;
  width: 380px;
  height: 48px;
  max-width: 100%;
}

.search-wrapper i {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-right: 12px;
}

.search-input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.9rem;
  width: 100%;
  height: 100%;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.categories-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
  max-width: 100%;
}

.category-pill {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.category-pill:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.category-pill.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(33, 73, 201, 0.2);
}

/* ==========================================================================
   CATÁLOGO DE PRODUCTOS (Layout Principal)
   ========================================================================== */
.catalog-section {
  display: grid;
  grid-template-columns: 1fr;   /* a todo el ancho: la barra lateral se ocultó el 24-oct-2026 */
  gap: 30px;
  margin-bottom: 50px;
}

/* Filtros Laterales (Fijos en Desktop) */
.filters-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  height: fit-content;
}

.filter-group {
  margin-bottom: 25px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-option {
  display: flex;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
}

.filter-option input {
  margin-right: 10px;
  accent-color: var(--primary-color);
}

.filter-option:hover {
  color: var(--text-main);
}

/* Grilla de Tarjetas de Producto */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

/* Tarjeta de Producto Premium (Glassmorphism & Glow) */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.3s;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 0%, var(--card-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.product-image-wrapper {
  height: 200px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Representaciones de Vidrios / Perfiles de forma vectorizada */
.product-visual {
  width: 70%;
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-glass-clear {
  width: 80px;
  height: 80px;
  background: rgba(186, 230, 253, 0.15);
  border: 2px solid rgba(186, 230, 253, 0.6);
  box-shadow: 0 0 15px rgba(186, 230, 253, 0.1);
  transform: perspective(400px) rotateX(20deg) rotateY(-20deg);
  border-radius: 4px;
}

.visual-glass-fume {
  width: 80px;
  height: 80px;
  background: rgba(100, 116, 139, 0.3);
  border: 2px solid rgba(100, 116, 139, 0.7);
  box-shadow: 0 0 15px rgba(100, 116, 139, 0.1);
  transform: perspective(400px) rotateX(20deg) rotateY(-20deg);
  border-radius: 4px;
}

.visual-profile {
  width: 25px;
  height: 100px;
  background: linear-gradient(90deg, #94a3b8 0%, #cbd5e1 50%, #64748b 100%);
  border: 1.5px solid #cbd5e1;
  transform: rotate(20deg);
}

.visual-fitting {
  font-size: 3.2rem;
  color: #cbd5e1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.visual-service {
  font-size: 3.5rem;
  color: var(--primary-color);
}

.product-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(15, 23, 42, 0.75);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(5px);
  z-index: 3;
}

.product-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}

.product-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6rem;
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

.price-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.price-amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.price-amount.success-colored {
  color: var(--success-color);
}

.price-unit {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.card-action-btn {
  background: var(--success-color);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.2);
  transition: all 0.2s;
}

.card-action-btn:hover {
  background: var(--success-hover);
  transform: scale(1.05);
}

.card-action-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   SIMULADOR DE FINANCIAMIENTO (CrediFralca Widget)
   ========================================================================== */
.credit-simulator-container {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 35px;
  margin-bottom: 50px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.credit-simulator-container::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.credit-header {
  margin-bottom: 30px;
}

.credit-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--warning-color);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.credit-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.credit-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 700px;
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.simulator-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.range-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.range-label-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9rem;
}

.range-label-row .label-val {
  color: var(--primary-color);
  font-weight: 800;
}

.simulator-range {
  width: 100%;
  accent-color: var(--primary-color);
  height: 6px;
  border-radius: 4px;
  outline: none;
}

.select-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.select-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.simulator-select {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  height: 46px;
  border-radius: 12px;
  padding: 0 15px;
  font-weight: 600;
  outline: none;
}

/* Resultados del Crédito */
.simulator-results {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.02);
}

.result-card {
  display: flex;
  flex-direction: column;
}

.result-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.result-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.result-value.highlight-blue {
  color: var(--primary-color);
}

.result-value.highlight-green {
  color: var(--success-color);
}

.result-card-large {
  grid-column: span 2;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: 10px;
}

.result-value-large {
  font-size: 2rem;
  font-weight: 900;
  color: var(--warning-color);
}

.credit-apply-btn {
  grid-column: span 2;
  background: var(--primary-color);
  color: white;
  border: none;
  height: 48px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(33, 73, 201, 0.2);
  transition: all 0.2s;
  margin-top: 10px;
}

.credit-apply-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   SEDES (fichas con dirección y enlace a Google Maps)
   ========================================================================== */
.locations-section {
  margin-bottom: 50px;
}

.sedes-horario {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  color: var(--text-main);
  font-size: 0.9rem;
}

.sedes-horario > i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.sedes-horario p {
  flex: 1 1 260px;
  margin: 0;
}

.sedes-whatsapp {
  background: #00CE7C;
  color: #151D29;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.sedes-whatsapp[hidden] {
  display: none;
}

.sedes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* En pantallas anchas, las cinco sedes en una sola fila */
@media (min-width: 1100px) {
  .sedes-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }

  .sede-ficha {
    padding: 16px;
  }
}

.sede-ficha {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sede-ficha-nombre {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main);
  margin: 0;
}

.sede-ficha-estado {
  align-self: flex-start;
  background: rgba(0, 71, 186, 0.1);
  color: var(--primary-color);
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

.sede-ficha-direccion {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.sede-ficha-direccion i {
  color: var(--primary-color);
  margin-right: 4px;
}

.sede-ficha-mapa {
  align-self: flex-start;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}

.sede-ficha-mapa:hover {
  text-decoration: underline;
}

/* En modo oscuro el azul corporativo no contrasta: azul claro de la paleta */
html[data-theme="dark"] .sede-ficha-mapa,
html[data-theme="dark"] .sede-ficha-direccion i,
html[data-theme="dark"] .sedes-horario > i,
html[data-theme="dark"] .sede-ficha-estado {
  color: #68A1FF;
}

html[data-theme="dark"] .sede-ficha-estado {
  background: rgba(104, 161, 255, 0.12);
}

/* ==========================================================================
   SUPPORT / FAQ SECTION (Acordeón)
   ========================================================================== */
.faq-section {
  margin-bottom: 60px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 25px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(33, 73, 201, 0.08);
}

.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(33, 73, 201, 0.02);
}

.faq-question i {
  transition: transform 0.3s;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 18px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* ==========================================================================
   CARRITO / DRAWER SLIDE-IN
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 150000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  max-width: 100%;
  height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  z-index: 150001;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  right: 0;
}

.cart-drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-header h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-close-btn:hover {
  background: var(--bg-body);
  color: var(--text-main);
}

.cart-drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-empty-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.cart-empty-message i {
  font-size: 3rem;
  color: var(--border-color);
}

/* Item de Carrito */
.cart-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.cart-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cart-item-visual {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--success-color);
  font-weight: 700;
  margin-bottom: 8px;
}

.cart-item-qty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  background: var(--bg-body);
  border: none;
  width: 26px;
  height: 26px;
  cursor: pointer;
  color: var(--text-main);
  font-weight: 700;
}

.qty-btn:hover {
  background: var(--border-color);
}

.qty-val {
  padding: 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-item-delete {
  background: transparent;
  border: none;
  color: var(--danger-color);
  cursor: pointer;
  font-size: 0.9rem;
}

.cart-drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-body);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 18px;
  font-size: 1rem;
}

.cart-summary-price {
  color: var(--primary-color);
  font-size: 1.15rem;
}

.checkout-btn {
  background: var(--success-color);
  color: white;
  border: none;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.25);
  transition: all 0.2s;
}

.checkout-btn:hover {
  background: var(--success-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   MODAL DE DETALLE DE PRODUCTO
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.product-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 700px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-body);
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: var(--border-color);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.modal-image-side {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 320px;
  position: relative;
}

.modal-image-side .product-visual {
  width: 75%;
  height: 75%;
}

.modal-content-side {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.25;
}

.modal-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
  text-align: justify;
}

.modal-specs {
  background: var(--bg-body);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.spec-label {
  color: var(--text-muted);
  font-weight: 600;
}

.spec-val {
  color: var(--text-main);
  font-weight: 700;
}

.modal-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.modal-add-btn {
  background: var(--success-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.2);
  transition: all 0.2s;
}

.modal-add-btn:hover {
  background: var(--success-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
/* ==========================================================================
   FOOTER CORPORATIVO (Verde FRALCA)
   ========================================================================== */
.fralca-footer {
  background: linear-gradient(135deg, #151D29 0%, #1c2638 100%);
  color: #ffffff;
  padding: 60px 5% 30px;
  font-family: 'Outfit', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 40px;
  border-top: none;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr 1fr;
  gap: 40px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-self: start;
  gap: 20px;
}

.footer-logo-container {
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  box-shadow: none;
}

.footer-logo-img {
  height: 52px;
  object-fit: contain;
}

.footer-slogan {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  margin-top: 5px;
  line-height: 1.4;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.02em;
}

.footer-social-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-social-icons {
  display: flex;
  gap: 16px;
}

.footer-social-icons a {
  color: #ffffff;
  font-size: 1.25rem;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.85;
}

.footer-social-icons a:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  position: relative;
  padding-bottom: 6px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 24px; height: 2px;
  background: #FFC800;
  border-radius: 1px;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-col-links a:hover {
  color: #FFC800;
  padding-left: 4px;
}

.footer-col-links i {
  margin-right: 6px;
}

.positive-ssl-badge {
  background: #ffffff;
  color: #1e293b;
  padding: 8px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: bold;
  width: max-content;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.positive-ssl-badge i {
  color: #00CE7C;
  font-size: 0.95rem;
}

.positive-ssl-badge span {
  color: #2563eb;
}

/* Panel de Métodos de Pago */
.footer-payments-panel {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.payment-method-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-align: center;
}

.payment-icon-wrapper {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ffffff;
}

.payment-method-item span {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.zelle-bold {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  color: #ffffc8;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  flex-direction: column;   /* la versión va en una segunda línea, debajo del © */
  justify-content: center;
  align-items: center;
}

/* Enlace al panel del personal: se ve igual que el texto del pie */
.acceso-discreto,
.acceso-discreto:hover,
.acceso-discreto:visited {
  color: inherit;
  text-decoration: none;
  cursor: default;
}

.footer-copyright {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  text-align: center;
}

@media (max-width: 992px) {
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .footer-brand-col {
    grid-column: span 2;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .footer-brand-col {
    grid-column: span 1;
  }
  .footer-payments-panel {
    flex-direction: column;
    gap: 20px;
  }
}

.footer-right a:hover {
  color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
  .simulator-grid {
    grid-template-columns: 1fr;
  }
  
}

@media (max-width: 768px) {
  .fralca-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .header-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .hero-carousel {
    height: 300px;
    padding: 30px;
  }
  
  .slide-title {
    font-size: 2rem;
  }
  
  .control-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-wrapper {
    width: 100%;
  }
  
  .modal-body {
    grid-template-columns: 1fr;
  }
  
  .modal-image-side {
    height: 200px;
    min-height: 200px;
  }
}

/* ==========================================================================
   WIDGET DE CHAT INTERACTIVO (Estilo Zendesk)
   ========================================================================== */
.chat-widget-container {
  display: contents;
}

/* Botón Flotante de Chat (FAB) */
.chat-fab-fx {
  position: fixed;
  bottom: 85px;
  right: 25px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  box-shadow: 0 4px 15px rgba(33, 73, 201, 0.4);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s;
  outline: none;
  z-index: 100090;
}

.chat-fab-fx:hover {
  transform: scale(1.1);
  background-color: var(--primary-hover);
}

/* Burbuja de Prompt de Chat (Izquierda del Botón) */
.chat-prompt-bubble {
  position: fixed;
  bottom: 85px;
  right: 85px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 10px 20px 10px 35px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: flex;
  align-items: center;
  z-index: 100095;
}

.chat-prompt-bubble.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.chat-prompt-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
}

.chat-prompt-close {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  font-size: 0.6rem;
}

.chat-prompt-close:hover {
  color: #1e293b;
  background-color: #f1f5f9;
}

/* Cristal: botón con los colores de WhatsApp */
.chat-fab-fx.cristal-fab {
  background-color: #25D366;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
}
.chat-fab-fx.cristal-fab:hover { background-color: #1EBE5A; }
a.chat-prompt-text { text-decoration: none; }
a.chat-prompt-text:hover { color: #0047BA; }

/* ==========================================================================
   SECCION PROMO FRALCA (2 Banners)
   ========================================================================== */
.promo-fx-section {
  padding: 28px 5% 10px;
  max-width: 1440px;
  margin: 0 auto;
}

.promo-fx-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 16px;
}

.promo-fx-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.promo-fx-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 175px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border: 2px solid transparent;
}

.promo-fx-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  border-color: var(--primary-color);
}

.promo-card-blue  { background: linear-gradient(135deg, #1E5DD1 0%, #0047BA 100%); }
.promo-card-purple { background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%); }

/* --- Watermark icons --- */
.promo-wm-right {
  position: absolute;
  right: -14px;
  bottom: -14px;
  font-size: 9.5rem;
  opacity: 0.11;
  color: white;
  pointer-events: none;
  transform: rotate(-10deg);
  z-index: 0;
}

.promo-wm-left {
  position: absolute;
  left: -10px;
  top: -10px;
  font-size: 6rem;
  opacity: 0.07;
  color: white;
  pointer-events: none;
  transform: rotate(18deg);
  z-index: 0;
}

/* --- Countdown badge --- */
.promo-countdown-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #00CE7C;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(40,167,69,0.3);
}

/* --- Centro de contenido --- */
.promo-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  z-index: 1;
  max-width: 82%;
  padding: 16px 20px;
}

.promo-brand-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
}

.promo-brand-label span {
  opacity: 0.7;
  font-weight: 500;
}

.promo-fx-headline {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(0.85rem, 2.8vw, 1.2rem);
  color: white;
  line-height: 1.1;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.promo-shipping-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 10px;
  width: fit-content;
  line-height: 1.2;
}

.promo-compra-btn {
  background: white;
  color: #6d28d9;
  border: none;
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  width: fit-content;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.promo-compra-btn:hover {
  background: #f3f4f6;
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .promo-fx-grid { grid-template-columns: 1fr; }
  .promo-fx-card { height: 155px; }
  .promo-fx-headline { font-size: clamp(0.8rem, 4.5vw, 1.1rem); }
}


/* ==========================================================================
   ILUSTRACIONES CSS - BANNERS PROMO
   ========================================================================== */

/* --- Ilustracion: Paneles de Vidrio Templado --- */
.promo-glass-illustration {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px 16px 0;
  position: relative;
}

.promo-glass-panel {
  position: relative;
  width: 70px;
  height: 120px;
  background: linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(200,235,255,0.25) 50%, rgba(255,255,255,0.4) 100%);
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 4px;
  box-shadow: 4px 4px 16px rgba(0,0,0,0.2), inset 0 0 12px rgba(255,255,255,0.3);
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.promo-glass-panel-2 {
  width: 55px;
  height: 100px;
  opacity: 0.75;
  transform: translateY(10px);
}

.promo-glass-shine {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 12px;
  height: 60%;
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 100%);
  border-radius: 6px;
  transform: rotate(-15deg);
}

.promo-glass-shine-2 {
  left: auto;
  right: 10px;
  top: 20px;
  width: 6px;
  height: 30%;
  opacity: 0.6;
}

.promo-glass-shadow {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 10px;
  background: rgba(0,0,0,0.15);
  border-radius: 50%;
  filter: blur(4px);
}

/* --- Ilustracion: Perfiles de Aluminio --- */
.promo-aluminio-illustration {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 20px 16px 0;
  position: relative;
}

.promo-alu-bar {
  border-radius: 3px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

.promo-alu-bar-1 { width: 14px; height: 100px; background: linear-gradient(180deg, #e2e8f0, #94a3b8, #e2e8f0); }
.promo-alu-bar-2 { width: 22px; height: 130px; background: linear-gradient(180deg, #f1f5f9, #cbd5e1, #f1f5f9); }
.promo-alu-bar-3 { width: 10px; height: 115px; background: linear-gradient(180deg, #e2e8f0, #64748b, #e2e8f0); }
.promo-alu-bar-4 { width: 18px; height: 90px;  background: linear-gradient(180deg, #f8fafc, #94a3b8, #f8fafc); opacity: 0.85; }
.promo-alu-bar-5 { width: 8px;  height: 105px; background: linear-gradient(180deg, #e2e8f0, #475569, #e2e8f0); opacity: 0.7; }

.promo-alu-frame {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 50px;
  height: 38px;
  border: 5px solid rgba(255,255,255,0.7);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.promo-alu-frame-inner {
  width: 100%;
  height: 100%;
  background: rgba(200,220,255,0.2);
  border-radius: 1px;
}


/* ==========================================================================
   SECCIÓN OFERTAS DEL DÍA
   ========================================================================== */
.ofertas-dia-section {
  padding: 24px 5% 10px;
  max-width: 1440px;
  margin: 0 auto;
}

.ofertas-dia-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ofertas-dia-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-main);
  margin: 0;
}

.ofertas-dia-nav {
  display: flex;
  gap: 8px;
}

.oferta-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.oferta-nav-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(33, 73, 201, 0.06);
}

.ofertas-dia-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ofertas-dia-track::-webkit-scrollbar {
  display: none;
}

.oferta-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  scroll-snap-align: start;
  min-width: 220px;
}

.oferta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(33, 73, 201, 0.12);
  border-color: var(--primary-color);
}

.oferta-card-featured {
  border: 2.5px solid var(--primary-color);
  box-shadow: 0 4px 20px rgba(33, 73, 201, 0.15);
}

.oferta-card-img {
  background: var(--bg-section);
  height: 145px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 16px;
}

.oferta-card-img-profile {
  background: linear-gradient(135deg, var(--bg-section), var(--bg-card));
}

.oferta-visual {
  width: 100px;
  height: 115px;
}

.oferta-visual-profile {
  width: 28px;
  height: 115px;
}

.oferta-icon-visual {
  font-size: 3.5rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.oferta-card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.oferta-brand {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.oferta-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oferta-price-usd {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-top: 4px;
}

.oferta-price-bs {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.oferta-add-btn {
  margin-top: auto;
  padding-top: 12px;
  background: linear-gradient(160deg, #24CE7B 0%, #00CE7C 100%);   /* mismo verde que «añadir» del catálogo */
  color: #151D29;
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.18s, transform 0.15s;
  box-shadow: 0 6px 14px -4px rgba(0, 206, 124, 0.55);
}

.oferta-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px -6px rgba(0, 206, 124, 0.6);
}

@media (max-width: 1024px) {
  .ofertas-dia-track {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

/* Celular y tablet: una sola fila deslizable (antes eran 2 columnas que se cortaban y montaban) */
@media (max-width: 768px) {
  .ofertas-dia-track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 42%;
  }
  .oferta-card {
    min-width: 0; /* manda la columna: con 220px la tarjeta se salía y se montaba sobre la vecina */
  }
}

@media (max-width: 480px) {
  .ofertas-dia-track {
    grid-auto-columns: 68%;   /* una tarjeta y media a la vista: se nota que se desliza */
  }
}

/* ==========================================================================
   SECCIÓN DESCUBRE (Módulos Promocionales FRALCA)
   ========================================================================== */
.descubre-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.descubre-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
}

.descubre-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.descubre-right-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Tarjeta Base */
.descubre-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease, border-color 0.2s ease;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.descubre-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  border-color: var(--primary-color);
}

/* 1. Fachadas y Vidrio Templado (Amarillo / Dorado Calido) */
.descubre-fachadas {
  background: linear-gradient(135deg, #FFF9E6 0%, #FEE290 100%);
  height: 310px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 28px;
  border: 1px solid rgba(254,226,144,0.6);
}
[data-theme="dark"] .descubre-fachadas {
  background: linear-gradient(135deg, #1e1a0f 0%, #2e2105 100%);
  border-color: rgba(234,179,8,0.15);
}

.whirlpool-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.whirlpool-w {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 6px;
  font-size: 0.7rem;
}

.whirlpool-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}
[data-theme="dark"] .whirlpool-text {
  color: #f1f5f9;
}

.descubre-fachadas .descubre-headline {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.55rem;
  color: #0f172a;
  line-height: 1.15;
}
[data-theme="dark"] .descubre-fachadas .descubre-headline {
  color: #fff;
}

.facade-illustration {
  width: 100%;
  height: 130px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.facade-structure {
  width: 90%;
  height: 90px;
  background: rgba(0,0,0,0.05);
  border-radius: 8px 8px 0 0;
  position: relative;
  border: 1.5px solid rgba(0,0,0,0.1);
  display: flex;
  gap: 8px;
  padding: 8px;
  overflow: hidden;
}
[data-theme="dark"] .facade-structure {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.05);
}

.facade-glass-panel {
  flex: 1;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(200,235,255,0.2) 100%);
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 4px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.patch-fitting {
  position: absolute;
  width: 12px;
  height: 6px;
  background: #64748b;
  border-radius: 1px;
}
.top-left { top: 4px; left: 4px; }
.bottom-left { bottom: 4px; left: 4px; }
.top-right { top: 4px; right: 4px; }
.bottom-right { bottom: 4px; right: 4px; }

.facade-spider-connector {
  position: absolute;
  top: 50%; left: 50%;
  width: 16px;
  height: 16px;
  background: #475569;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.facade-spider-connector::before,
.facade-spider-connector::after {
  content: '';
  position: absolute;
  background: #64748b;
}
.facade-spider-connector::before {
  top: 50%; left: -8px; width: 32px; height: 3px;
  transform: translateY(-50%) rotate(45deg);
}
.facade-spider-connector::after {
  top: 50%; left: -8px; width: 32px; height: 3px;
  transform: translateY(-50%) rotate(-45deg);
}

/* 2. Puertas de Baño (Verde Calido/Agua) */
.descubre-banos {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  height: 310px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px;
  border: 1px solid rgba(220,252,231,0.6);
}
[data-theme="dark"] .descubre-banos {
  background: linear-gradient(135deg, #0a1c12 0%, #032e18 100%);
  border-color: rgba(40,167,69,0.15);
}

.lg-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lg-face-icon {
  width: 24px;
  height: 24px;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.lg-logo-text {
  display: flex;
  flex-direction: column;
}

.lg-brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #14532d;
  line-height: 1;
}
[data-theme="dark"] .lg-brand-name {
  color: #fff;
}

.lg-slogan {
  font-size: 0.65rem;
  color: #166534;
  font-weight: 600;
}
[data-theme="dark"] .lg-slogan {
  color: #00CE7C;
}

.shower-door-illustration {
  width: 100%;
  height: 190px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.shower-frame {
  width: 78px;
  height: 160px;
  border: 2px solid #94a3b8;
  border-bottom: none;
  background: rgba(255,255,255,0.15);
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.shower-header-bar {
  position: absolute;
  top: 15px; left: 0; right: 0;
  height: 4px;
  background: #cbd5e1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.shower-glass-fixed {
  position: absolute;
  top: 20px; left: 2px; bottom: 0;
  width: 36px;
  background: linear-gradient(90deg, rgba(255,255,255,0.2) 0%, rgba(200,235,255,0.15) 100%);
  border-right: 1px solid rgba(255,255,255,0.3);
}

.shower-glass-slider {
  position: absolute;
  top: 20px; right: 2px; bottom: 0;
  width: 38px;
  background: linear-gradient(90deg, rgba(200,235,255,0.25) 0%, rgba(255,255,255,0.3) 100%);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 2px;
  box-shadow: -2px 0 6px rgba(0,0,0,0.08);
}

.shower-handle {
  position: absolute;
  top: 50%; left: 4px;
  width: 4px;
  height: 22px;
  background: #cbd5e1;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.slider-wheel {
  position: absolute;
  top: -6px;
  width: 8px;
  height: 8px;
  background: #64748b;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
}
.wheel-1 { left: 4px; }
.wheel-2 { right: 4px; }

.shower-floor-guide {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: #64748b;
}

/* 3. Herrajes (Gris Industrial Oscuro) */
.descubre-herrajes {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  height: 146px;
  padding: 16px 20px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(30,41,59,0.5);
}

.oster-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.hinge-illustration {
  width: 120px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hinge-body {
  width: 82px;
  height: 60px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hinge-plate-1 {
  width: 32px;
  height: 52px;
  background: linear-gradient(135deg, #94a3b8 0%, #475569 100%);
  border-radius: 4px 0 0 4px;
  border: 1.5px solid #cbd5e1;
  border-right: none;
}

.hinge-plate-2 {
  width: 32px;
  height: 52px;
  background: linear-gradient(135deg, #cbd5e1 0%, #64748b 100%);
  border-radius: 0 4px 4px 0;
  border: 1.5px solid #e2e8f0;
  border-left: none;
  transform: rotateY(15deg);
  transform-origin: left center;
}

.hinge-axis {
  width: 10px;
  height: 56px;
  background: linear-gradient(90deg, #64748b, #cbd5e1, #334155);
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
}

.axis-cap {
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  background: #475569;
}
.top-cap { top: 0; border-radius: 2px 2px 0 0; }
.bottom-cap { bottom: 0; border-radius: 0 0 2px 2px; }

.hinge-screw {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #334155;
  border-radius: 50%;
  border: 1px solid #94a3b8;
}
.screw-1 { top: 12px; left: 10px; }
.screw-2 { bottom: 12px; left: 10px; }
.screw-3 { top: 26px; right: 10px; }

/* 4. Ventanas (Violeta/Azul Lavanda) */
.descubre-ventanas {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  height: 146px;
  padding: 16px 20px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(221,214,254,0.6);
}
[data-theme="dark"] .descubre-ventanas {
  background: linear-gradient(135deg, #1c192c 0%, #0d0b18 100%);
  border-color: rgba(139,92,246,0.15);
}

.samsung-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: #5c3dc3;
  letter-spacing: 0.02em;
  line-height: 1;
}
[data-theme="dark"] .samsung-brand {
  color: #a78bfa;
}

.samsung-sub {
  font-size: 0.72rem;
  color: #7c3aed;
  font-weight: 600;
  margin-top: 2px;
}
[data-theme="dark"] .samsung-sub {
  color: #c4b5fd;
}

.window-illustration {
  width: 120px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.window-frame {
  width: 90px;
  height: 60px;
  border: 3.5px solid #475569;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  position: relative;
  display: flex;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
[data-theme="dark"] .window-frame {
  border-color: #94a3b8;
}

.window-glass-1,
.window-glass-2 {
  flex: 1;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(200,235,255,0.1) 100%);
  position: relative;
}

.window-glass-1 {
  border-right: 2px solid #475569;
  z-index: 1;
}
[data-theme="dark"] .window-glass-1 {
  border-right-color: #94a3b8;
}

.glass-reflection-line {
  position: absolute;
  top: -10px; left: 10px;
  width: 1.5px;
  height: 150%;
  background: rgba(255,255,255,0.5);
  transform: rotate(35deg);
  pointer-events: none;
}

.window-handle-lock {
  position: absolute;
  top: 50%; left: 50%;
  width: 3px;
  height: 10px;
  background: #1e293b;
  transform: translate(-50%, -50%);
  border-radius: 1px;
  z-index: 2;
}

/* 5. Fralca Aluminio Extruido (Azul FRALCA) */
.descubre-wide-banner {
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  height: 135px;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
  cursor: pointer;
  background: linear-gradient(135deg, #1E5DD1 0%, #0047BA 100%);
  border: 1px solid rgba(33,73,201,0.25);
}

.descubre-wide-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(33,73,201,0.25);
}

.wide-banner-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wide-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

.wide-headline {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
  line-height: 1.15;
}

.wide-btn {
  background: rgba(255,255,255,0.25);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
  width: fit-content;
  margin-top: 4px;
  backdrop-filter: blur(4px);
  transition: background 0.2s, color 0.2s;
}

.wide-btn:hover {
  background: #fff;
  color: #0047BA;
}

.wide-banner-visual {
  width: 320px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.alu-profile-illustration {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 95px;
}

.alu-extrusion-bar {
  background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  border: 1.5px solid #e2e8f0;
}

.bar-wide { width: 44px; height: 90px; }
.bar-medium { width: 32px; height: 75px; }
.bar-small { width: 22px; height: 55px; }

.extrusion-inner-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 8px 8px;
}

/* RESPONSIVE DISEÑO DESCUBRE */
@media (max-width: 1024px) {
  .descubre-grid {
    grid-template-columns: 1.2fr 1fr;
  }
  .descubre-right-col {
    grid-column: span 2;
    flex-direction: row;
  }
  .descubre-fachadas, .descubre-banos {
    height: 280px;
  }
  .descubre-right-col .descubre-card {
    flex: 1;
    height: 140px;
  }
}

@media (max-width: 768px) {
  .descubre-grid {
    grid-template-columns: 1fr;
  }
  .descubre-right-col {
    grid-column: span 1;
    flex-direction: column;
  }
  .descubre-fachadas, .descubre-banos {
    height: 220px;
  }
  .descubre-right-col .descubre-card {
    height: 130px;
  }
  .descubre-wide-banner {
    padding: 0 20px;
    height: 120px;
  }
  .wide-banner-visual {
    width: 160px;
  }
  .alu-extrusion-bar {
    border-radius: 3px;
  }
  .bar-wide { width: 34px; height: 70px; }
  .bar-medium { width: 26px; height: 58px; }
  .bar-small { width: 18px; height: 42px; }
  .wide-headline {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .descubre-section {
    margin: 25px auto;
  }
  .descubre-fachadas {
    padding: 16px 20px;
  }
  .descubre-fachadas .descubre-headline {
    font-size: 1.2rem;
  }
  .descubre-wide-banner {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: auto;
    padding: 20px;
    gap: 16px;
  }
  .wide-banner-visual {
    width: 100%;
    justify-content: center;
  }
  .alu-profile-illustration {
    height: 60px;
  }
  .bar-wide { width: 36px; height: 55px; }
  .bar-medium { width: 28px; height: 45px; }
  .bar-small { width: 20px; height: 35px; }
}

/* ==========================================================================
   SECCIÓN DESTACADOS DEL MES
   ========================================================================== */
.destacados-mes-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  position: relative;
}

.destacados-mes-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 24px;
}

.destacados-mes-wrapper {
  position: relative;
  width: 100%;
}

.destacados-mes-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 4px 20px;
  scrollbar-width: none; /* Firefox */
}

.destacados-mes-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Tarjetas */
.destacado-card {
  flex: 0 0 calc(25% - 14px);
  min-width: 250px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  cursor: pointer;
}

.destacado-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  border-color: var(--primary-color);
}

.destacado-card-img {
  height: 160px;
  background: #f8fafc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid rgba(0,0,0,0.03);
  transition: background 0.2s;
}
[data-theme="dark"] .destacado-card-img {
  background: #0f172a;
  border-color: rgba(255,255,255,0.02);
}

.destacado-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.destacado-brand {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: block;
}
[data-theme="dark"] .destacado-brand {
  color: #94a3b8;
}

.destacado-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin: 6px 0 12px;
  height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.destacado-price-usd {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 2px;
}

.destacado-price-bs {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 18px;
}
[data-theme="dark"] .destacado-price-bs {
  color: #94a3b8;
}

/* Botón agregar */
.destacado-add-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 999px; /* Pill */
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  box-shadow: 0 4px 10px rgba(33,73,201,0.25);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.destacado-add-btn:hover {
  background: #173db8;
  transform: scale(1.02);
  box-shadow: 0 6px 14px rgba(33,73,201,0.35);
}

.destacado-add-btn i {
  font-size: 0.9rem;
}

/* Botones Deslizantes (Slide buttons) */
.destacado-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 5;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}

.destacado-slide-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.slide-prev { left: -18px; }
.slide-next { right: -18px; }

/* --- Mini Ilustraciones CSS de Fralca --- */
.destacado-visual-wrapper {
  transform: scale(0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Bisagra pivot mini */
.pivot-hinge-mini {
  width: 70px;
  height: 50px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pivot-hinge-mini .p-plate {
  width: 25px;
  height: 40px;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  border-radius: 3px;
  border: 1px solid #e2e8f0;
}
.pivot-hinge-mini .p-plate-1 { border-right: none; }
.pivot-hinge-mini .p-plate-2 { border-left: none; transform: rotateY(20deg); transform-origin: left center; }
.pivot-hinge-mini .p-axis {
  width: 8px;
  height: 44px;
  background: linear-gradient(90deg, #64748b, #cbd5e1, #334155);
  border-radius: 1px;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Perfil mini */
.profile-icon-mini {
  width: 80px;
  height: 60px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  justify-content: center;
}
.profile-icon-mini .prof-bar {
  background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
  border: 1px solid #e2e8f0;
  border-radius: 2px 2px 0 0;
  width: 14px;
}
.profile-icon-mini .prof-1 { height: 48px; }
.profile-icon-mini .prof-2 { height: 35px; }

/* Manija mini */
.handle-icon-mini {
  width: 60px;
  height: 60px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.handle-icon-mini .h-bar {
  width: 6px;
  height: 52px;
  background: linear-gradient(90deg, #94a3b8, #cbd5e1, #475569);
  border-radius: 3px;
  z-index: 2;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}
.handle-icon-mini .h-mount {
  position: absolute;
  width: 8px;
  height: 4px;
  background: #64748b;
  left: 28px;
}
.handle-icon-mini .h-m-1 { top: 12px; }
.handle-icon-mini .h-m-2 { bottom: 12px; }

/* Vidrio mini */
.glass-icon-mini {
  width: 75px;
  height: 75px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.glass-icon-mini .g-sheet {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(33,73,201,0.2) 0%, rgba(200,235,255,0.15) 100%);
  border: 1.5px solid rgba(33,73,201,0.4);
  border-radius: 4px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.06);
}
.glass-icon-mini .g-shine {
  position: absolute;
  top: 15px; left: 24px;
  width: 1.5px;
  height: 45px;
  background: rgba(255,255,255,0.6);
  transform: rotate(35deg);
}

@media (max-width: 1024px) {
  .destacado-card {
    flex: 0 0 calc(50% - 9px);
  }
}

@media (max-width: 768px) {
  .destacados-mes-container {
    margin: 25px auto;
  }
  .destacados-mes-title {
    font-size: 1.5rem;
  }
  .destacado-card {
    min-width: 220px;
    padding: 16px;
  }
  .destacado-name {
    font-size: 0.9rem;
  }
  .slide-prev { left: -10px; }
  .slide-next { right: -10px; }
}

@media (max-width: 480px) {
  .destacado-card {
    flex: 0 0 calc(50% - 9px);
  }
}

/* ==========================================================================
   SECCIÓN CATEGORÍAS VISUALES (fondo amarillo)
   ========================================================================== */
.visual-categories-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  position: relative;
}

.visual-categories-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 24px;
}

.visual-categories-wrapper {
  position: relative;
  width: 100%;
}

.visual-categories-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 4px 16px;
  scrollbar-width: none;
}

.visual-categories-track::-webkit-scrollbar {
  display: none;
}

.visual-cat-card {
  flex: 0 0 160px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.visual-cat-card:hover {
  transform: translateY(-4px);
}

.visual-cat-graphic {
  width: 150px;
  height: 150px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.25s ease, border-color 0.2s ease;
  border: 2px solid transparent;
}

.visual-cat-card:hover .visual-cat-graphic {
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-color: var(--primary-color);
}

.bg-yellow-soft {
  background: #FFC800; /* Amarillo de acento */
}
[data-theme="dark"] .bg-yellow-soft {
  background: #eab308;
}

.visual-cat-label {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(33,73,201,0.3);
  width: fit-content;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-cat-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 5;
  transition: all 0.2s;
}

.visual-cat-slide-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

/* Gráficos mini de categoría */
.mini-glass-graphic {
  width: 60px;
  height: 60px;
  position: relative;
}
.mini-glass-graphic .mgg-sheet {
  position: absolute;
  width: 32px;
  height: 44px;
  border-radius: 4px;
  border: 1.5px solid rgba(0,0,0,0.15);
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}
.mini-glass-graphic .sheet-1 {
  background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(200,235,255,0.4) 100%);
  left: 8px; top: 4px;
  z-index: 1;
}
.mini-glass-graphic .sheet-2 {
  background: linear-gradient(135deg, rgba(200,235,255,0.6) 0%, rgba(255,255,255,0.4) 100%);
  left: 20px; top: 12px;
  z-index: 2;
}

.mini-tempered-graphic {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-tempered-graphic .mtg-shield {
  font-size: 2.2rem;
  color: #1e293b;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.mini-profile-graphic {
  width: 70px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mini-profile-graphic .mpg-bar {
  width: 14px;
  background: linear-gradient(90deg, #64748b, #cbd5e1, #475569);
  border: 1px solid #1e293b;
  border-radius: 2px;
}
.mini-profile-graphic .mpg-1 { height: 48px; }
.mini-profile-graphic .mpg-2 { height: 35px; }

.mini-system-graphic {
  width: 70px;
  height: 50px;
  position: relative;
}
.mini-system-graphic .msg-rail {
  position: absolute;
  top: 15px; left: 5px; right: 5px;
  height: 4px;
  background: #475569;
  border-radius: 2px;
}
.mini-system-graphic .msg-roller {
  position: absolute;
  top: 9px;
  width: 10px;
  height: 10px;
  background: #cbd5e1;
  border: 1.5px solid #1e293b;
  border-radius: 50%;
}
.mini-system-graphic .msg-r1 { left: 16px; }
.mini-system-graphic .msg-r2 { right: 16px; }

.mini-hardware-graphic {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-hardware-graphic .mhg-hinge {
  width: 42px;
  height: 32px;
  background: linear-gradient(135deg, #cbd5e1, #64748b);
  border: 1.5px solid #1e293b;
  border-radius: 4px;
  position: relative;
}
.mini-hardware-graphic .mhg-hinge::before {
  content: '';
  position: absolute;
  top: -2px; left: 50%;
  width: 6px; height: 36px;
  background: #334155;
  transform: translateX(-50%);
  border-radius: 2px;
}

.mini-services-graphic {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-services-graphic .msg-tool {
  font-size: 2.2rem;
  color: #1e293b;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}


/* ==========================================================================
   SECCIÓN CATÁLOGOS (portada 4:5 + PDF): 6 por fila en computadora, 2 en celular
   ========================================================================== */
.catalogos-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}
.catalogos-cabecera { margin-bottom: 18px; }
.catalogos-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 4px;
}
.catalogos-sub {
  margin: 0;
  color: #64748B;
  font-size: 0.95rem;
}
.catalogos-wrapper { position: relative; }
.catalogos-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 16px;
  scrollbar-width: none;
}
.catalogos-track::-webkit-scrollbar { display: none; }
.catalogo-card {
  flex: 0 0 calc((100% - 80px) / 6);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-align: left;
  font: inherit;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 10px 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.catalogo-card:hover,
.catalogo-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  box-shadow: 0 6px 16px rgba(33, 73, 201, 0.12);
}
.catalogo-portada {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  background: #F5F7FB;
  border: 1px solid #eef1f6;
  display: block;
}
.catalogo-titulo {
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.25;
}
.catalogo-detalle {
  margin-top: 2px;
  font-size: 0.78rem;
  color: #64748B;
  line-height: 1.3;
  flex: 1;
}
.catalogo-meta {
  margin-top: 6px;
  font-size: 0.72rem;
  color: #94a3b8;
}
.catalogo-ver {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-color);
}
.catalogo-ver i { font-size: 0.7rem; margin-left: 2px; }
[data-theme="dark"] .catalogo-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .catalogo-detalle,
[data-theme="dark"] .catalogos-sub { color: #94a3b8; }
[data-theme="dark"] .catalogo-ver { color: #68A1FF; }

.catalogos-slide-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 5;
  transition: all 0.2s;
}
.catalogos-slide-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* Visor de catálogos (pantalla completa) */
.visor-catalogo {
  position: fixed;
  inset: 0;
  z-index: 100200;
  background: rgba(10, 16, 28, 0.94);
  display: flex;
  flex-direction: column;
}
.visor-catalogo[hidden] { display: none; }
.visor-barra {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  color: #fff;
}
.visor-titulo { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visor-contador { font-variant-numeric: tabular-nums; color: #cbd5e1; font-size: 0.9rem; }
.visor-cerrar {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}
.visor-cerrar:hover { background: rgba(255, 255, 255, 0.12); }
.visor-pagina {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 64px 20px;
  position: relative;
}
.visor-pagina img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.visor-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #0B3272;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.visor-nav:disabled { opacity: 0.25; cursor: default; }
.visor-anterior { left: 12px; }
.visor-siguiente { right: 12px; }
@media (max-width: 768px) {
  .visor-pagina { padding: 0 8px 70px; }
  .visor-nav { top: auto; bottom: 14px; transform: none; }
  .visor-anterior { left: calc(50% - 56px); }
  .visor-siguiente { right: calc(50% - 56px); }
}
@media (min-width: 1025px) {
  .visual-categories-track {
    justify-content: center;
  }
}


/* ==========================================================================
   SECCIÓN DE INFORMACIÓN Y POLÍTICAS (3 Tarjetas horizontales de Políticas)
   ========================================================================== */
.policies-info-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.policies-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.policy-card {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.25s, border-color 0.2s;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .policy-card {
  background: #1e293b;
  border-color: rgba(255,255,255,0.06);
}

.policy-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 24px rgba(33,73,201,0.08);
}

.policy-icon-circle {
  width: 54px;
  height: 54px;
  background: rgba(33,73,201,0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
  transition: background 0.2s, color 0.2s;
}

.policy-card:hover .policy-icon-circle {
  background: var(--primary-color);
  color: #fff;
}

.policy-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
}

.policy-card-btn {
  background: transparent;
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
  padding: 6px 18px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.policy-card:hover .policy-card-btn {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 10px rgba(33,73,201,0.25);
}

@media (max-width: 900px) {
  .policies-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .policy-card {
    padding: 22px 20px;
  }
}

@media (max-width: 768px) {
  .visual-categories-title,
  .catalogos-title {
    font-size: 1.5rem;
  }
  .catalogo-card {
    flex-basis: calc((100% - 12px) / 2);
  }
  .catalogos-track { gap: 12px; }
}

/* ==========================================================================
   BARRA FLOTANTE DE REDES SOCIALES (Sticky Sidebar - Bottom Right)
   ========================================================================== */
.floating-social-bar {
  position: fixed;
  right: 25px;
  bottom: 145px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.floating-social-bar .social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #ffffff !important;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.floating-social-bar .social-btn:hover {
  transform: scale(1.18);
  filter: brightness(1.12);
}

/* Identidad Cromática Real de cada Aplicación (Por Defecto) */
.floating-social-bar .social-btn.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.35);
}
.floating-social-bar .social-btn.instagram:hover {
  box-shadow: 0 8px 22px rgba(220, 39, 67, 0.5);
}

.floating-social-bar .social-btn.facebook {
  background-color: #1877f2;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.35);
}
.floating-social-bar .social-btn.facebook:hover {
  box-shadow: 0 8px 22px rgba(24, 119, 242, 0.5);
}

.floating-social-bar .social-btn.linkedin {
  background-color: #0077b5;
  box-shadow: 0 4px 15px rgba(0, 119, 181, 0.35);
}
.floating-social-bar .social-btn.linkedin:hover {
  box-shadow: 0 8px 22px rgba(0, 119, 181, 0.5);
}

.floating-social-bar .social-btn.youtube {
  background-color: #ff0000;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.35);
}
.floating-social-bar .social-btn.youtube:hover {
  box-shadow: 0 8px 22px rgba(255, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .floating-social-bar {
    right: 15px;
    bottom: 135px;
    gap: 8px;
  }
  .floating-social-bar .social-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ==========================================================================
   DRAWER LATERAL DE CATEGORÍAS (Tienda Fralca)
   ========================================================================== */
.categories-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 110000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.categories-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.categories-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  max-width: 85vw;
  height: 100vh;
  background-color: var(--bg-card);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
  z-index: 110001;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.categories-drawer.active {
  transform: translateX(0);
}

.categories-drawer-header {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.categories-drawer-header h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.drawer-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.categories-drawer-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Caja de Promoción en Sidebar */
.sidebar-promo-box {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.sidebar-promo-box:hover {
  transform: scale(1.02);
}

.sidebar-promo-header {
  background: var(--success-color); /* Fralca Green */
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.sidebar-promo-body {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  padding: 16px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 150px;
  justify-content: center;
}

[data-theme="dark"] .sidebar-promo-body {
  background: linear-gradient(135deg, #0f2d1e 0%, #061f12 100%);
}

.sidebar-promo-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--primary-color);
}

[data-theme="dark"] .sidebar-promo-brand {
  color: #ffffff;
}

.sidebar-promo-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #1e293b;
}

[data-theme="dark"] .sidebar-promo-title {
  color: #ffffff;
}

.sidebar-promo-shipping {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-promo-pane-wrapper {
  position: absolute;
  right: 15px;
  bottom: 15px;
  width: 70px;
  height: 70px;
  opacity: 0.85;
}

.promo-glass-sheet {
  width: 100%;
  height: 100%;
  background: rgba(33, 73, 201, 0.15);
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  transform: rotate(-10deg) skewX(-10deg);
  box-shadow: 4px 4px 10px rgba(0,0,0,0.1);
  position: relative;
}

.promo-glass-sheet::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
}

.sidebar-categories-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-main);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
}

.sidebar-categories-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-cat-item span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.sidebar-cat-item i {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.sidebar-cat-item:hover {
  border-color: var(--primary-color);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.sidebar-cat-item:hover i {
  color: var(--primary-color);
  transform: translateX(4px);
}

/* Widget Moderno de Fecha y Hora */
.header-time-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 6px 14px;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  user-select: none;
  margin-left: 20px;
  flex-shrink: 0;
}

.header-time-widget:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.time-widget-icon {
  font-size: 1.2rem;
  color: #00CE7C;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.7; transform: scale(1); }
}

.time-widget-content {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: center;
  align-items: center;
}

.time-widget-time {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.time-widget-date {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.85;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .header-time-widget {
    display: none;
  }
}

/* Widget Moderno de Tasas BCV */
.header-rates-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 6px 14px;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  user-select: none;
  margin-left: 10px;
  flex-shrink: 0;
}

.header-rates-widget:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.rates-widget-icon {
  font-size: 1.2rem;
  color: #f1c40f; /* Color dorado/amarillo premium */
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-rates 2.5s infinite;
}

@keyframes pulse-rates {
  0% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.7; transform: scale(1); }
}

.rates-widget-content {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: center;
  align-items: center;
}

.rates-widget-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0.75;
  text-transform: uppercase;
}

.rates-widget-val {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .header-rates-widget {
    display: none;
  }
}

/* ===== LOGIN OVERLAY PORTAL FRALCA (Estilo Hub) ===== */
.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInModal 0.25s ease-out;
}

.login-modal-overlay.active {
  display: flex;
}

.login-modal-card {
  max-width: 440px;
  width: 100%;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: scaleUpModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.login-modal-close:hover {
  color: var(--text-main);
}

.login-logo {
  height: 55px;
  margin-bottom: 20px;
  object-fit: contain;
}

.login-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.login-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(33, 73, 201, 0.15);
}

.login-2fa-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
}

/* Botones de Formulario de Acceso */
.login-modal-card .btn-primary {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(33, 73, 201, 0.25);
  font-family: inherit;
  margin-top: 10px;
}

.login-modal-card .btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(33, 73, 201, 0.35);
}

.login-modal-card .btn-primary:active {
  transform: translateY(0);
}

.login-modal-card .btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  width: 100%;
  margin-top: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-family: inherit;
}

.login-modal-card .btn-secondary:hover {
  background: rgba(33, 73, 201, 0.05);
  color: var(--primary-color);
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUpModal {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}









/* ==========================================================================
   CATÁLOGO DINÁMICO (Fase 2: datos desde la API)
   ========================================================================== */

/* Precio antes del descuento */
.precio-anterior {
  font-size: 0.75em;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 6px;
}

/* Etiqueta de % de descuento en Ofertas del día */
.oferta-descuento {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--danger-color);
  color: #ffffff;
  font-size: 0.75em;
  font-weight: 700;
}

/* Iconos para herrajes y servicios (no tenían ilustración en estas tarjetas) */
.oferta-visual-icono {
  font-size: 4rem;
}

.destacado-visual-icono {
  font-size: 3.2rem;
  color: var(--primary-color);
}

/* Mensajes mientras carga o si falla la API */
.catalogo-cargando,
.catalogo-error {
  grid-column: 1 / -1;
  width: 100%;
  padding: 40px 16px;
  text-align: center;
  color: var(--text-muted);
}

.catalogo-error i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--warning-color);
}

/* Total aproximado en bolívares dentro del carrito */
.cart-summary-bs {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: -6px 0 12px;
}

/* Formulario de cotización (SweetAlert) */
.cotizacion-intro {
  margin: 0 0 6px;
  font-size: 0.95rem;
}
/* Antispam: fuera de la pantalla (no display:none, que algunos bots detectan) */
.campo-trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-whatsapp-pedido {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.btn-whatsapp-pedido:hover {
  background: #1ebe5b;
}

/* Los avisos de SweetAlert deben quedar por encima del carrito (z-index 150001) y del chat */
.swal2-container {
  z-index: 200000 !important;
}


/* ==========================================================================
   ADAPTACIÓN A MÓVIL (≤ 768px)
   Va al final del archivo para que tenga prioridad sobre las reglas de
   escritorio. Las @media antiguas de la cabecera usaban clases que ya no
   existen (.fralca-header, .header-right).
   ========================================================================== */
@media (max-width: 768px) {
  /* Cabecera: logo + tasa + iconos en una fila, buscador debajo a todo el ancho */
  .header-main-bar {
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 10px;
  }
  .header-brand-fx { order: 1; }
  .header-rates-widget {
    display: flex;           /* en escritorio se oculta por debajo de 1200px */
    order: 2;
    margin-left: 0;
    padding: 4px 10px;
    gap: 6px;
  }
  .header-actions-container {
    order: 3;
    margin-left: auto;
    gap: 10px;
  }
  .action-text-fx { display: none; }   /* solo iconos: Acceso / Cotización */
  .header-search-container {
    order: 4;
    flex-basis: 100%;
    max-width: none;
    margin-left: 0;
    height: 42px;
  }

  /* Tarjetas de categoría bajo el banner: 2 por fila */
  .categories-cards-grid-fx {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 12px;
  }

  /* Banner principal: una sola columna */
  .promo-banner-fx {
    grid-template-columns: 1fr;
    padding: 28px 20px 80px;
    text-align: center;
  }
}


@media (max-width: 768px) {
  /* Menú secundario: una sola fila que se desliza de lado (antes ocupaba 3 filas) */
  .header-sub-bar {
    padding: 8px 0;
    justify-content: flex-start;
  }
  .sub-bar-nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 18px;
    padding: 0 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sub-bar-nav::-webkit-scrollbar { display: none; }
  .sub-bar-nav a { flex-shrink: 0; white-space: nowrap; }

  /* Titular del banner: se adapta al ancho de la pantalla */
  .promo-banner-center h2 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
    letter-spacing: -0.5px;
  }

  /* Botones flotantes más pequeños y pegados al borde para no tapar el contenido */
  .floating-social-bar {
    right: 10px;
    bottom: 128px;
    gap: 8px;
  }
  .floating-social-bar .social-btn {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
  .chat-fab-fx {
    right: 10px;
    bottom: 70px;
    width: 44px;
    height: 44px;
  }
  .theme-toggle-btn-floating {
    right: 10px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
  .chat-prompt-bubble {
    right: 62px;
    bottom: 74px;
    max-width: calc(100vw - 80px);
    white-space: normal;
  }
}


@media (max-width: 768px) {
  /* Banners de promoción: espacio arriba para la etiqueta "Termina en..." (antes la pisaba) */
  .promo-fx-card {
    height: auto;
    min-height: 155px;
    padding: 42px 14px 18px;
  }
}


@media (max-width: 768px) {
  /* Carruseles: en pantalla táctil se deslizan con el dedo; las flechas tapaban la primera tarjeta */
  .destacado-slide-btn,
  .visual-cat-slide-btn,
  .catalogos-slide-btn {
    display: none;
  }

  /* Catálogo: 2 columnas con tarjetas compactas (antes 1 por pantalla, ~4600px de scroll) */
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product-card { border-radius: 12px; }
  .product-image-wrapper { height: 120px; }
  .product-tag { font-size: 0.65rem; padding: 3px 8px; }
  .product-info { padding: 10px 12px 12px; }
  .product-meta { font-size: 0.65rem; }
  .product-name {
    font-size: 0.9rem;
    height: 2.4rem;
    margin-bottom: 4px;
  }
  .product-price-row {
    margin-top: 8px;
    padding-top: 8px;
    gap: 6px;
  }
  .product-price-row .price-label { font-size: 0.6rem; }
  .product-price-row .price-amount { font-size: 1rem; }
  .product-price-row .price-unit { font-size: 0.7rem; }
  .card-action-btn {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }
}


@media (max-width: 768px) {
  /* Las ilustraciones CSS tienen tamaño fijo de escritorio: se reducen para el recuadro de 120px */
  .product-image-wrapper .product-visual { transform: scale(0.62); }
}


/* Tablets (769-1024px): misma cabecera en dos filas, pero conservando los textos de los botones.
   (En ≤768px el bloque de móvil de arriba añade además padding compacto y oculta esos textos.) */
@media (max-width: 1024px) {
  .header-main-bar { flex-wrap: wrap; }
  .header-brand-fx { order: 1; }
  .header-rates-widget { display: flex; order: 2; margin-left: 0; }
  .header-actions-container { order: 3; margin-left: auto; }
  .header-search-container {
    order: 4;
    flex-basis: 100%;
    max-width: none;
    margin-left: 0;
  }
}


@media (max-width: 1024px) {
  /* Menú secundario en una sola fila deslizable también en tablets */
  .header-sub-bar { justify-content: flex-start; }
  .sub-bar-nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sub-bar-nav::-webkit-scrollbar { display: none; }
  .sub-bar-nav a { flex-shrink: 0; white-space: nowrap; }
}

/* ==========================================================================
   CATÁLOGO REAL (miles de productos): resumen, paginación y filtros
   La web no muestra precios: cada tarjeta lleva su código y "Añadir a cotización".
   ========================================================================== */
.catalogo-principal {
  min-width: 0;                       /* evita que la grilla desborde la columna */
}

.catalogo-resumen {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  min-height: 1.4em;
  line-height: 1.6;
}
.catalogo-resumen strong { color: var(--text-main); }

.products-grid.cargando {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.catalogo-cargando,
.catalogo-vacio {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.catalogo-vacio i {
  font-size: 3rem;
  margin-bottom: 15px;
}

.btn-limpiar-filtros {
  margin-top: 14px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-weight: 600;
  cursor: pointer;
}
.btn-limpiar-filtros.btn-limpiar-mini {
  margin: 0 0 0 6px;
  padding: 3px 12px;
  font-size: 0.78rem;
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.catalogo-paginacion {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.catalogo-paginacion:empty,
.catalogo-paginacion[hidden] { display: none; }

.pagina-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 20px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pagina-btn:hover:not([disabled]) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.pagina-btn[disabled] {
  opacity: 0.4;
  cursor: default;
}
.pagina-actual {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Código y color del producto (sustituye al precio) */
.product-code,
.oferta-codigo,
.destacado-codigo {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'Consolas', 'Courier New', monospace;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oferta-codigo,
.destacado-codigo { margin: 4px 0 10px; }

.product-cotizar-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.product-cotizar-link:hover { text-decoration: underline; }

.modal-cotizar-nota {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 220px;
}

/* Filtros laterales: botones con el número de productos */
.filters-sidebar .filter-option {
  width: 100%;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 6px 8px;
  text-align: left;
  justify-content: space-between;
  gap: 10px;
  font-family: inherit;
}
.filters-sidebar .filter-option span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.filters-sidebar .filter-option small {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-body);
  border-radius: 10px;
  padding: 1px 8px;
}
.filters-sidebar .filter-option:hover { background: var(--bg-body); }
.filters-sidebar .filter-option.activa {
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
}
.filters-sidebar .filter-option.activa small {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.filters-sidebar .filter-options { gap: 2px; }
.filter-options-scroll {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.filtros-toggle { display: none; }

.sidebar-cat-total {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 4px;
}

/* Carrito sin totales */
.cart-summary-cantidad {
  font-weight: 700;
  color: var(--text-main);
}
.cart-summary-nota {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 6px 0 14px;
  line-height: 1.4;
}

/* Filtros de arriba (todas las pantallas): departamentos como píldoras, serie y total.
   Reemplazan a la barra lateral, oculta el 24-oct-2026. */
.catalogo-filtros {
  margin-bottom: 18px;
}
.filtro-departamentos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}
.filtro-pildora {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 20px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filtro-pildora small {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}
.filtro-pildora:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.filtro-pildora.activa {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.filtro-pildora.activa small { color: rgba(255, 255, 255, 0.85); }

/* «Más ▾»: los departamentos con menos productos, en un desplegable */
.filtro-mas { position: relative; }
.filtro-mas-boton i { font-size: 0.7rem; transition: transform 0.2s ease; }
.filtro-mas-boton[aria-expanded="true"] i { transform: rotate(180deg); }
.filtro-mas-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 240px;
  max-height: 320px;
  overflow-y: auto;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}
.filtro-mas-menu.abierto { display: flex; }
.filtro-mas-menu .filtro-pildora {
  justify-content: space-between;
  border-radius: 10px;
  border-color: transparent;
}

.filtro-fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 12px;
}
.filtro-fila .catalogo-resumen { margin-bottom: 0; }
.filtro-serie {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}
.filtro-serie[hidden] { display: none; }
.filtro-serie select {
  max-width: 260px;
  padding: 7px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.84rem;
}

/* «Ver más productos» y el texto final */
.catalogo-ver-mas {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.catalogo-ver-mas[hidden] { display: none; }
.catalogo-ver-mas .pagina-btn { padding: 11px 28px; }
.catalogo-fin {
  text-align: center;
  margin-top: 28px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Celular: la fila de departamentos se desliza de lado y «Más» no existe (todos van en la fila) */
@media (max-width: 768px) {
  .filtro-departamentos {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .filtro-departamentos::-webkit-scrollbar { display: none; }
  .filtro-pildora { flex-shrink: 0; }
  .filtro-mas,
  .filtro-mas-menu,
  .filtro-mas-menu.abierto {
    display: contents;
  }
  .filtro-mas-menu .filtro-pildora {
    justify-content: flex-start;
    border-radius: 20px;
    border-color: var(--border-color);
  }
  .filtro-mas-menu .filtro-pildora.activa { border-color: var(--primary-color); }
  .filtro-mas-boton { display: none; }
  .filtro-serie { width: 100%; white-space: nowrap; }
  /* min-width: 0 para que el select no se salga de la pantalla con nombres de serie largos */
  .filtro-serie select { flex: 1; min-width: 0; width: 100%; max-width: none; }
}

@media (max-width: 768px) {
  .product-code { font-size: 0.7rem; }
  .product-cotizar-link { font-size: 0.75rem; }
  .catalogo-resumen { font-size: 0.8rem; }
  .pagina-btn { padding: 8px 14px; font-size: 0.82rem; }
}

/* ==========================================================================
   FOTOS Y DIBUJOS DE LOS CATÁLOGOS PDF (public/img/catalogo)
   Los dibujos técnicos tienen fondo blanco: se muestran en una "ficha" clara
   ========================================================================== */
.producto-foto {
  max-width: 88%;
  max-height: 86%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}
.producto-foto.es-dibujo {
  background: #fff;
  padding: 6px;
}
.product-card:hover .producto-foto { transform: scale(1.04); }
.producto-foto-grande {
  max-width: 90%;
  max-height: 420px;
  padding: 10px;
}
.oferta-card-img .producto-foto,
.destacado-card-img .producto-foto {
  max-height: 100%;
  box-shadow: none;
}
.cart-item-visual { overflow: hidden; }
.cart-item-foto {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

@media (max-width: 768px) {
  .producto-foto { border-radius: 8px; }
  .producto-foto.es-dibujo { padding: 4px; }
}

/* ==========================================================================
   BANNERS DE LA PORTADA (imágenes subidas desde el panel)
   Computadora ≈ 3,8 : 1 (2600 × 680) · celular 4 : 5 (1080 × 1350)
   ========================================================================== */
.banners-portada {
  position: relative;
  aspect-ratio: 2600 / 680;
  border-radius: 20px;
  overflow: hidden;
  background: #0B3272;
  box-shadow: var(--shadow-md);
}
.banner-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.banner-slide.activo { opacity: 1; visibility: visible; }
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banners-puntos {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.banner-punto {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.banner-punto.activo { background: #00CE7C; border-color: #00CE7C; }
@media (max-width: 768px) {
  .banners-portada { border-radius: 16px; }
}
/* El formato vertical 4:5 solo en celulares de verdad: a 744 px de ancho medía ~930 px de alto y dejaba un hueco en blanco */
@media (max-width: 600px) {
  .banners-portada.con-celular { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) {
  .banner-slide { transition: none; }
}

/* Texto solo para Google y lectores de pantalla (no se ve, pero se lee) */
.visualmente-oculto {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   SERVICIOS (sección informativa: corte, canto, templado, laminado)
   Reemplaza filtros y grilla cuando se elige la categoría Servicios.
   ========================================================================== */
.catalog-section.modo-servicios .catalogo-principal { display: none; }
.servicios-panel[hidden] { display: none; }
.servicios-panel {
  grid-column: 1 / -1;
  padding: 24px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  scroll-margin-top: 140px;
}
.servicios-panel:focus { outline: none; }
.servicios-cabecera { margin-bottom: 20px; }
.servicios-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 71, 186, 0.08);
  border: 1px solid rgba(0, 71, 186, 0.25);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.servicios-titulo-seccion {
  margin: 10px 0 4px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text-main);
  line-height: 1.2;
}
.servicios-sub { color: var(--text-muted); margin: 0; }
.servicios-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.servicio-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: servicio-entrada 0.3s ease both;
}
.servicio-card:nth-child(2) { animation-delay: 60ms; }
.servicio-card:nth-child(3) { animation-delay: 120ms; }
.servicio-card:nth-child(4) { animation-delay: 180ms; }
@keyframes servicio-entrada {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.servicio-card:hover,
.servicio-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}
.servicio-icono {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 71, 186, 0.14), rgba(0, 206, 124, 0.14));
  color: var(--primary-color);
  font-size: 1.4rem;
  transition: transform 0.25s ease;
}
.servicio-card:hover .servicio-icono { transform: rotate(-6deg) scale(1.05); }
.servicio-titulo {
  margin: 12px 0 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-main);
}
.servicio-desc {
  flex: 1;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.servicio-cta {
  margin-top: 14px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #00CE7C;
  color: #151D29;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.servicio-cta:hover { background: var(--success-hover, #00b86e); box-shadow: 0 4px 12px rgba(0, 206, 124, 0.3); }
.servicio-cta:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 2px; }
.servicios-nota {
  margin: 18px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.servicios-nota i { color: var(--primary-color); margin-right: 4px; }
[data-theme="dark"] .servicio-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .servicio-icono,
[data-theme="dark"] .servicios-badge {
  color: #68A1FF;
  background: rgba(104, 161, 255, 0.12);
  border-color: rgba(104, 161, 255, 0.25);
}
[data-theme="dark"] .servicios-nota i { color: #68A1FF; }
@media (max-width: 1024px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .servicios-panel { padding: 18px 14px; }
  .servicios-titulo-seccion { font-size: 1.3rem; }
  .servicios-grid { grid-template-columns: 1fr; }
  .servicio-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 12px;
    align-items: center;
  }
  .servicio-icono { width: 44px; height: 44px; font-size: 1.2rem; }
  .servicio-titulo { margin: 0; }
  .servicio-desc, .servicio-cta { grid-column: 1 / -1; }
  .servicio-desc { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .servicio-card, .servicio-icono { animation: none; transition: none; }
}

/* Horario de las sedes oculto (oct. 2026): «hidden» debe ganarle a los estilos del recuadro */
.sedes-horario [hidden] { display: none !important; }

/* Tarjetas y recuadros que funcionan como botón: borde visible al llegar con el teclado */
[data-accion][role="button"]:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

/* Catálogos ocultos a pedido: «hidden» debe ganarle al display:flex de la tarjeta */
.catalogo-card[hidden] { display: none; }

/* Mapa de Google Maps en cada tarjeta de sede (se carga al llegar a la sección: loading="lazy") */
.sede-ficha-mapa-embed {
  display: block;
  width: 100%;
  height: 190px;
  border: 0;
  border-radius: 10px;
  background: #E8EEF7;
  margin-bottom: 4px;
}
@media (max-width: 480px) {
  .sede-ficha-mapa-embed { height: 170px; }
}

/* Catálogos: solo la portada, más grande (pedido de Gestión, 23-oct-2026).
   El texto de la tarjeta queda oculto a la vista, pero lo leen Google y los lectores de pantalla.
   Para volver a mostrarlo, borrar este bloque. */
.catalogo-card {
  flex-basis: calc((100% - 48px) / 4);
  padding: 6px;
  position: relative;   /* el texto oculto queda dentro de la tarjeta y no estira la página */
}
.catalogo-card .catalogo-titulo,
.catalogo-card .catalogo-detalle,
.catalogo-card .catalogo-meta,
.catalogo-card .catalogo-ver {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.catalogo-card .catalogo-portada { border-radius: 9px; }
@media (max-width: 1024px) {
  .catalogo-card { flex-basis: calc((100% - 32px) / 3); }
}
@media (max-width: 768px) {
  .catalogo-card { flex-basis: 44%; }   /* tablet: dos portadas y la siguiente asomando */
}
@media (max-width: 480px) {
  .catalogo-card { flex-basis: 72%; }   /* celular: una portada grande y la siguiente asomando */
}

/* Tarjetas de políticas ocultas a pedido (23-oct-2026): «hidden» debe ganarle al estilo de la sección */
.policies-info-section[hidden] { display: none; }

/* Pie de página: columna «Otros links» con flechita, como la referencia de Gestión */
.footer-otros-links .footer-col-links a::before {
  content: "›";
  margin-right: 8px;
  font-weight: 700;
}
.footer-otros-links .footer-col-links a[hidden] { display: none; }

/* ==========================================================================
   Catálogos y sedes: tarjetas del MISMO tamaño (ancho y alto), pedido del 23-oct-2026.
   Las dos filas son carruseles con las mismas reglas; la tarjeta es 4:5.
   ========================================================================== */
.sedes-wrapper { margin: 0 20px; }        /* mismo ancho de fila que la sección de catálogos */
.catalogo-card,
.sede-ficha {
  flex: 0 0 calc((100% - 48px) / 4);
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  min-width: 0;
}
.catalogo-card .catalogo-portada {         /* la portada llena la tarjeta (con el borde blanco de 6px) */
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}
.sede-ficha { padding: 10px; gap: 6px; }
.sede-ficha .sede-ficha-mapa-embed {        /* el mapa ocupa lo que deja el texto */
  flex: 1 1 0;
  min-height: 80px;
  height: auto;
  margin-bottom: 2px;
}
.sede-ficha .sede-ficha-nombre { font-size: 0.98rem; line-height: 1.25; }
.sede-ficha .sede-ficha-direccion { flex: 0 0 auto; font-size: 0.76rem; line-height: 1.4; }
.sede-ficha .sede-ficha-mapa { font-size: 0.8rem; }
@media (max-width: 1024px) {
  .catalogo-card, .sede-ficha { flex-basis: calc((100% - 32px) / 3); }
}
@media (max-width: 768px) {
  .catalogo-card, .sede-ficha { flex-basis: 44%; }
}
@media (max-width: 480px) {
  .catalogo-card, .sede-ficha { flex-basis: 84%; }   /* más ancha: la dirección más larga cabe sin estirar la tarjeta */
}

/* Tasa BCV oculta a pedido (23-oct-2026): «hidden» le gana a los display:flex de las media queries */
.header-rates-widget[hidden] { display: none !important; }

/* Identificador de la versión publicada, bajo el copyright: discreto */
.footer-version {
  margin: 4px 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* Ideas para tu proyecto: misma tarjeta que los catálogos, con título sobre la foto y la
   etiqueta «Imagen referencial» (son fotos de los catálogos de los proveedores, no obras de FRALCA) */
.ideas-section { margin-top: 10px; }
.idea-card { overflow: hidden; }
.idea-card .idea-etiqueta {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(21, 29, 41, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 999px;
}
.idea-card .idea-pie {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 36px 14px 12px;
  border-radius: 0 0 9px 9px;
  background: linear-gradient(to top, rgba(21, 29, 41, 0.88), rgba(21, 29, 41, 0));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.idea-card .idea-titulo { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.02rem; line-height: 1.2; }
.idea-card .idea-ver { font-size: 0.8rem; font-weight: 600; color: #7FE3B8; }

/* Ideas para tu proyecto: la tarjeta es un contenedor con dos acciones, «Ver catálogo» (botón que
   cubre la foto) y «Cotizar por WhatsApp» (enlace aparte: un enlace no puede ir dentro de un botón) */
.idea-card .idea-abrir {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 9px;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.idea-card .idea-abrir:focus-visible,
.idea-card .idea-cotizar:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 2px; }
.idea-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--primary-color);
}
.idea-card .idea-pie { padding-bottom: 52px; }   /* deja lugar al enlace de WhatsApp */
.idea-card .idea-cotizar {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #00CE7C;
  color: #151D29;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}
.idea-card .idea-cotizar:hover { background: var(--success-hover, #00b86e); }

/* Cómo cotizar en 4 pasos: 4 columnas en computadora, 2 × 2 en celular */
.como-cotizar {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}
.como-cotizar-titulo {
  margin: 0 0 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
}
.como-cotizar-pasos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.como-paso {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px 16px 18px;
  box-shadow: var(--shadow-sm);
}
.como-paso-icono {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 71, 186, 0.14), rgba(0, 206, 124, 0.14));
  color: var(--primary-color);
  font-size: 1.4rem;
}
.como-paso-icono b {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.8rem;
  line-height: 24px;
  text-align: center;
}
.como-paso-titulo {
  margin: 0 0 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}
.como-paso-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.como-cotizar-btn {
  margin-top: 22px;
  min-height: 48px;
  padding: 0 32px;
  border: 0;
  border-radius: 12px;
  background: var(--primary-color);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.como-cotizar-btn:hover { background: #0B3272; transform: translateY(-1px); }
.como-cotizar-btn:focus-visible { outline: 3px solid var(--success-color); outline-offset: 3px; }
@media (max-width: 768px) {
  .como-cotizar-pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .como-paso { padding: 18px 12px 14px; }
  .como-cotizar-titulo { font-size: 1.35rem; }
}

/* Lo más cotizado: usa las tarjetas y la grilla del catálogo */
.populares-section[hidden] { display: none; }

/* Vidrio a medida: bloque plegable del carrito, entre la lista y el botón de enviar */
.vidrio-medida {
  border-top: 1px solid var(--border-color);
  max-height: 55vh;
  overflow-y: auto;
}
.vidrio-medida summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  color: var(--text-main);
}
.vidrio-medida summary::-webkit-details-marker { display: none; }
.vidrio-medida summary i { color: var(--primary-color); }
.vidrio-medida summary::after {
  content: "›";
  margin-left: auto;
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}
.vidrio-medida[open] summary::after { transform: rotate(90deg); }
.vidrio-medida summary:focus-visible { outline: 3px solid var(--primary-color); outline-offset: -3px; }
.vm-cuenta {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.75rem;
  line-height: 22px;
  text-align: center;
}
.vm-cuenta[hidden], .vm-error[hidden] { display: none; }
.vm-cuerpo { padding: 0 24px 16px; display: flex; flex-direction: column; gap: 10px; }
.vm-fila { display: flex; gap: 10px; }
.vm-campo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.vm-campo-corto { flex: 0 0 76px; }
.vm-campo select,
.vm-campo input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: #fff;
  color: var(--text-main);
  font: inherit;
  font-size: 1rem;   /* 16 px: el celular no hace zoom al enfocar */
  font-weight: 400;
}
.vm-campo select:focus-visible,
.vm-campo input:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 1px; }
.vm-error { margin: 0; font-size: 0.85rem; color: #b91c1c; }
.vm-agregar {
  min-height: 44px;
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  background: #fff;
  color: var(--primary-color);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.vm-agregar:hover { background: var(--primary-color); color: #fff; }
.vm-agregar:focus-visible { outline: 3px solid var(--success-color); outline-offset: 2px; }
.vm-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vm-lista li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #edf3fc;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--text-main);
}
.vm-quitar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--danger-color, #dc2626);
  cursor: pointer;
}
.vm-quitar:hover { background: #fdecec; }
.vm-quitar:focus-visible { outline: 2px solid var(--primary-color); }

/* Sección «Cómo cotizar en 4 pasos» oculta a pedido (24-oct-2026) */
.como-cotizar[hidden] { display: none; }

/* ─── Conoce FRALCA (24-oct-2026): galería de fotos reales ──────────────── */
.conoce-section {
  margin: 10px 0 50px;
  scroll-margin-top: calc(var(--alto-encabezado, 140px) + 12px);   /* el título no queda bajo el encabezado fijo */
}
.conoce-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.conoce-foto {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 5;
  background: #e9eef6;
  box-shadow: 0 6px 18px -10px rgba(21, 29, 41, 0.35);
}
.conoce-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.conoce-foto:hover img { transform: scale(1.04); }
.conoce-foto figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 16px 14px;
  background: linear-gradient(180deg, rgba(10, 20, 40, 0) 0%, rgba(10, 20, 40, 0.82) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.conoce-foto figcaption strong { font-family: 'Outfit', sans-serif; font-size: 1.05rem; }
.conoce-foto figcaption span { font-size: 0.82rem; opacity: 0.9; }
@media (min-width: 1100px) {
  .conoce-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .conoce-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .conoce-foto figcaption { padding: 30px 10px 10px; }
  .conoce-foto figcaption strong { font-size: 0.9rem; }
  .conoce-foto figcaption span { font-size: 0.72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .conoce-foto img { transition: none; }
  .conoce-foto:hover img { transform: none; }
}

/* Enlaces del menú superior ocultos a pedido (p. ej. «FAQ», 24-oct-2026) */
.sub-nav-link[hidden] { display: none !important; }

/* Conoce FRALCA como carrusel (24-oct-2026): mismas medidas que catálogos, sedes e ideas.
   Estas reglas reemplazan a la grilla .conoce-grid de arriba, que ya no se usa. */
.conoce-section .conoce-foto {
  flex: 0 0 calc((100% - 48px) / 4);
  scroll-snap-align: start;
  min-width: 0;
}
@media (max-width: 1024px) { .conoce-section .conoce-foto { flex-basis: calc((100% - 32px) / 3); } }
@media (max-width: 768px)  { .conoce-section .conoce-foto { flex-basis: 44%; } }
@media (max-width: 480px)  { .conoce-section .conoce-foto { flex-basis: 84%; } }

/* Fotos de Conoce FRALCA ocultas porque ya salen en otra sección (25-oct-2026) */
.conoce-foto[hidden] { display: none !important; }
