/**
 * PIURASOFT SOLUTIONS - Corporate Premium Design System
 * Arquitectura CSS3 Moderna, Limpia y Responsive
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Paleta Corporativa */
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-dark: #075985;
  --primary-deep: #0f172a; /* Azul oscuro para títulos */
  --primary-light: #e0f2fe;
  --primary-subtle: #f0f9ff;
  
  --secondary: #1e40af;
  --accent: #2563eb;
  --accent-cyan: #0891b2;
  --accent-emerald: #059669;

  /* Superficies Claras */
  --bg-body: #ffffff;
  --bg-surface: #f8fafc;
  --bg-surface-elevated: #ffffff;
  --bg-surface-muted: #f1f5f9;

  /* Tipografía y Textos */
  --text-title: #0f172a;   /* Azul muy oscuro */
  --text-body: #334155;    /* Gris azulado de alta legibilidad */
  --text-muted: #64748b;   /* Texto secundario */
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Bordes */
  --border-light: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-focus: #0284c7;

  /* Sombras Suaves & Corporativas */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 12px -2px rgba(15, 23, 42, 0.06), 0 3px 6px -3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 24px -4px rgba(15, 23, 42, 0.07), 0 6px 12px -6px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 24px 38px -6px rgba(15, 23, 42, 0.09), 0 10px 16px -8px rgba(15, 23, 42, 0.05);
  --shadow-card-hover: 0 20px 30px -10px rgba(2, 132, 199, 0.12), 0 6px 12px -4px rgba(15, 23, 42, 0.04);

  /* Radios */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* WhatsApp Oficial */
  --whatsapp: #25d366;
  --whatsapp-hover: #20ba5a;
  --whatsapp-shadow: rgba(37, 211, 102, 0.35);

  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1240px;
  --header-height: 68px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-body);
  background-color: var(--bg-body);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

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

a:hover {
  color: var(--primary-hover);
}

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

ul {
  list-style: none;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Tipografía Corporativa */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-title);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 600; }

p {
  color: var(--text-body);
  font-size: 1.025rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Contenedores y Estructura */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  position: relative;
}

.section-alt {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Botones Corporativos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}

.btn-secondary {
  background-color: var(--surface-elevated);
  color: var(--text-title);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-muted);
  border-color: var(--border-hover);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-subtle);
  color: var(--primary-hover);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--whatsapp-shadow);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   TOP BAR & HEADER CORPORATIVO
   ========================================================================== */
.top-bar {
  background-color: var(--primary-deep);
  color: #94a3b8;
  font-size: 0.825rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
}

.top-bar-item svg {
  color: var(--primary);
  width: 14px;
  height: 14px;
}

.top-bar-badge {
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
}

/* Header Principal */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  height: 64px;
}

.header-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  height: 44px;
  width: auto;
}

/* Navegación */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-body);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* Carrito de Cotización en Header */
.quote-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary-light);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.quote-cart-btn:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
}

.quote-badge {
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

/* Botón Hamburguesa Móvil */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--text-title);
  cursor: pointer;
}

/* ==========================================================================
   HERO PRINCIPAL
   ========================================================================== */
.hero {
  position: relative;
  padding: 2.75rem 0 3rem 0;
  background: radial-gradient(circle at 85% 15%, rgba(2, 132, 199, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
              #ffffff;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-content {
  max-width: 580px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-subtle);
  border: 1px solid var(--primary-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-hover);
  margin-bottom: 1rem;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

.hero-title {
  font-size: clamp(1.85rem, 2.5vw, 2.45rem);
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero-description {
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  color: #475569;
  margin-bottom: 1.5rem;
  line-height: 1.55;
  max-width: 530px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.metric-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.metric-label {
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Gráfico / Mock Visual del Hero */
.hero-visual {
  position: relative;
}

.mockup-card {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  padding: 1.75rem;
  position: relative;
  z-index: 2;
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

.mockup-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0369a1;
  background: var(--primary-light);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.mockup-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.mockup-stat-box {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid var(--border-light);
}

.mockup-stat-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.mockup-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-title);
}

.mockup-invoice-preview {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
}

.invoice-preview-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 0.25rem 0;
  color: var(--text-muted);
}

.invoice-preview-row.bold {
  font-weight: 700;
  color: var(--text-title);
  border-top: 1px solid var(--border-light);
  margin-top: 0.4rem;
  padding-top: 0.4rem;
}

/* Floating Badges en Hero */
.floating-badge {
  position: absolute;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
}

.floating-badge-1 {
  top: -20px;
  right: -15px;
}

.floating-badge-2 {
  bottom: -25px;
  left: -20px;
}

.badge-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
}

/* ==========================================================================
   CATÁLOGO DE SISTEMAS (7 SISTEMAS)
   ========================================================================== */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.system-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.system-card:hover {
  transform: translateY(-6px);
  border-color: #bae6fd;
  box-shadow: var(--shadow-card-hover);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary-light);
}

.card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-muted);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.card-category {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.card-features {
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.card-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-body);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.feature-check-icon {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.card-btn-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

/* ==========================================================================
   BENEFICIOS DE TRABAJAR CON PIURASOFT
   ========================================================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.benefit-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-xs);
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: #7dd3fc;
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.benefit-title {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

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

/* ==========================================================================
   PRODUCTOS Y EQUIPOS POS
   ========================================================================== */
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.hardware-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-xs);
}

.hardware-card:hover {
  transform: translateY(-4px);
  border-color: #bae6fd;
  box-shadow: var(--shadow-md);
}

.hw-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.hw-category {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.hw-badge {
  background-color: var(--primary-subtle);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.hw-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.hw-specs {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-body);
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
}

.hw-benefits {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* ==========================================================================
   SERVICIOS DE VIDEOVIGILANCIA Y SOPORTE TÉCNICO
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-xs);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #7dd3fc;
  box-shadow: var(--shadow-card-hover);
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

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

.service-items {
  margin-bottom: 2rem;
  flex-grow: 1;
}

.service-item-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-body);
  margin-bottom: 0.6rem;
}

/* ==========================================================================
   SECCIÓN DE CONTACTO COMERCIAL & COTIZADOR
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-card {
  background: linear-gradient(135deg, var(--primary-deep) 0%, #1e293b 100%);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.25rem;
  color: #ffffff;
  box-shadow: var(--shadow-xl);
}

.contact-info-card h3 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.contact-info-card p {
  color: #94a3b8;
  margin-bottom: 2rem;
}

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

.contact-channel-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-label {
  font-size: 0.775rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.channel-val {
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
}

.channel-val a {
  color: #ffffff;
}

.channel-val a:hover {
  color: #38bdf8;
}

/* Formulario Comercial */
.contact-form-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

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

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

.form-group.full {
  grid-column: span 2;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-title);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background-color: #ffffff;
  color: var(--text-title);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-error {
  font-size: 0.775rem;
  color: #dc2626;
  margin-top: 0.2rem;
  display: none;
}

.form-alert {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  display: none;
  font-size: 0.925rem;
}
.form-alert.success {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.form-alert.error {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.faq-container {
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: #7dd3fc;
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-title);
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition-fast);
}

.faq-trigger:hover {
  color: var(--primary);
}

.faq-icon-chevron {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item.active .faq-icon-chevron {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth), padding var(--transition-smooth);
}

.faq-item.active .faq-content {
  max-height: 400px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

.faq-content p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER CORPORATIVO
   ========================================================================== */
.footer {
  background-color: var(--primary-deep);
  color: #94a3b8;
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-brand p {
  color: #94a3b8;
  font-size: 0.925rem;
  margin: 1.25rem 0 1.5rem 0;
  line-height: 1.6;
}

.footer-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* Contador de Visitas Estético */
.footer-visit-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.footer-visit-counter:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(56, 189, 248, 0.35);
  color: #f8fafc;
}

.footer-visit-counter .visit-count-val {
  color: #38bdf8;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   BOTÓN FLOTANTE LATERAL DERECHO DEL COTIZADOR
   ========================================================================== */
.floating-quote-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #0284c7 0%, #1e40af 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-right: none;
  border-radius: 16px 0 0 16px;
  padding: 12px 14px 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: -4px 8px 24px rgba(2, 132, 199, 0.45);
  z-index: 1001;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.2s ease;
  font-family: inherit;
}

.floating-quote-btn:hover {
  transform: translateY(-50%) translateX(-5px);
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
  box-shadow: -6px 12px 30px rgba(2, 132, 199, 0.6);
}

.floating-quote-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-quote-btn .floating-quote-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 9999px;
  padding: 2px 6px;
  line-height: 1;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  animation: quoteBadgePop 0.3s ease;
}

.floating-quote-text {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: #ffffff;
  white-space: nowrap;
}

@keyframes quoteBadgePop {
  0% { transform: scale(0.5); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}



/* ==========================================================================
   BOTÓN FLOTANTE CIRCULAR DE WHATSAPP CON TOOLTIP
   ========================================================================== */
#whatsapp-floating,
.floating-whatsapp-circle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--whatsapp);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--whatsapp-shadow);
  z-index: 999;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-fast);
  text-decoration: none;
}

#whatsapp-floating:hover,
.floating-whatsapp-circle:hover {
  background-color: var(--whatsapp-hover);
  color: #ffffff;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
}

.floating-whatsapp-circle .floating-whatsapp-icon {
  width: 32px;
  height: 32px;
}

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background-color: #0f172a;
  color: #ffffff;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent #0f172a;
}

#whatsapp-floating:hover .whatsapp-tooltip,
#whatsapp-floating:focus-visible .whatsapp-tooltip,
.floating-whatsapp-circle:hover .whatsapp-tooltip,
.floating-whatsapp-circle:focus-visible .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-4px);
}

/* ==========================================================================
   BOTÓN FLOTANTE VOLVER ARRIBA (SCROLL TO TOP)
   ========================================================================== */
.floating-scroll-top {
  position: fixed;
  bottom: 6.4rem;
  right: 2.15rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  z-index: 990;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.9);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease,
              box-shadow 0.2s ease;
}

.floating-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.floating-scroll-top:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.6);
  color: #ffffff;
}

.floating-scroll-top:active {
  transform: translateY(0) scale(0.96);
}

/* ==========================================================================
   MODAL DE COTIZACIÓN RÁPIDA (CARRITO DE COTIZACIÓN)
   ========================================================================== */
.quote-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.quote-modal-overlay.open {
  display: flex;
}

.quote-modal {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.quote-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quote-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
}

.quote-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.quote-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.quote-item-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-title);
}

.quote-item-del {
  color: #dc2626;
  padding: 0.25rem;
  cursor: pointer;
  background: none;
  border: none;
}

.quote-modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-surface);
}

/* ==========================================================================
   VISTA DE DETALLE INDIVIDUAL (FASE 2 PREVIEW / PLACEHOLDER)
   ========================================================================== */
.detail-hero {
  padding: 4.5rem 0 3.5rem 0;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.45;
  word-break: break-word;
}

.breadcrumb a {
  color: var(--primary);
}

.phase-notice-box {
  background-color: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.925rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero-pill {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-metrics {
    justify-content: center;
  }
  .benefits-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  .top-bar {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-link {
    font-size: 1.05rem;
    width: 100%;
    text-align: center;
  }
  .systems-grid,
  .hardware-grid,
  .benefits-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  #whatsapp-floating,
  .floating-whatsapp-circle {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }
  .floating-scroll-top {
    bottom: 5.2rem;
    right: 1.35rem;
    width: 42px;
    height: 42px;
  }
  .floating-scroll-top svg {
    width: 18px;
    height: 18px;
  }
  .floating-whatsapp-circle .floating-whatsapp-icon {
    width: 28px;
    height: 28px;
  }
  .whatsapp-tooltip {
    display: none;
  }
  .card-btn-row {
    grid-template-columns: 1fr;
  }
  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Animaciones sutiles */
@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}


/* ==========================================================================
   FASE 2: ESTILOS DE MINIATURAS, PORTADAS, GALERÍAS Y ACCESOS A DEMOS
   ========================================================================== */

/* 1. MINIATURAS EN TARJETAS DEL CATÁLOGO */
.system-card {
  overflow: hidden; /* Asegura bordes redondeados con la miniatura */
}

.system-card-thumb-wrapper {
  width: calc(100% + 4rem);
  margin: -2rem -2rem 1.5rem -2rem;
  height: 195px;
  overflow: hidden;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

.system-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform var(--transition-normal);
}

.system-card:hover .system-card-thumb-img {
  transform: scale(1.04);
}

.system-card-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f9ff 0%, #e2e8f0 100%);
  color: var(--text-muted);
  gap: 0.5rem;
}

.fallback-icon {
  color: var(--primary);
  opacity: 0.8;
}

.fallback-text {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* 2. PORTADAS DE PÁGINAS INDIVIDUALES */
.system-cover-wrapper {
  padding-top: 2rem;
  padding-bottom: 1rem;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb-current {
  color: var(--text-title);
  font-weight: 600;
}

.system-cover-banner {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  max-height: 380px;
  background-color: #0f172a;
}

.cover-banner-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 480;
  object-fit: cover;
  object-position: center;
  display: block;
}

.system-cover-gradient {
  background: linear-gradient(135deg, var(--primary-deep) 0%, #0369a1 50%, var(--primary) 100%);
  padding: 4rem 3rem;
  display: flex;
  align-items: center;
}

.cover-gradient-content {
  max-width: 750px;
  color: #ffffff;
}

.cover-title {
  color: #ffffff;
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  margin: 0.75rem 0;
  font-weight: 800;
  line-height: 1.15;
}

.cover-tagline {
  color: #e0f2fe;
  font-size: 1.2rem;
  line-height: 1.5;
}

/* 3. LAYOUT DE DETALLE Y SECCIONES */
.system-detail-section {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.detail-layout-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3.5rem;
  align-items: start;
}

.detail-header-block {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-light);
}

.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.detail-category-badge {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}

.detail-status-pill {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-surface-muted);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.detail-heading {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.detail-lead-tagline {
  font-size: 1.2rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.detail-subheading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 1rem;
}

.detail-description-box {
  margin-bottom: 2.5rem;
}

.detail-text-paragraph {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 1.5rem;
}

.detail-target-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.target-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-title);
  font-size: 0.95rem;
}

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

/* 4. MÓDULOS Y CARACTERÍSTICAS */
.detail-modules-box {
  margin-bottom: 3rem;
}

.modules-grid-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.module-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.module-feature-card:hover {
  border-color: #7dd3fc;
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.module-feature-icon {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

.module-feature-title {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text-title);
  line-height: 1.45;
}

/* 5. GALERÍAS DE CAPTURAS REALES */
.detail-gallery-box {
  margin-bottom: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
}

.gallery-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.gallery-counter {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: #7dd3fc;
  box-shadow: var(--shadow-md);
}

.gallery-thumb-container {
  position: relative;
  height: 180px;
  overflow: hidden;
  background-color: #0f172a;
}

.gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-thumb-img {
  transform: scale(1.05);
}

.gallery-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: #ffffff;
}

.gallery-item:hover .gallery-hover-overlay {
  opacity: 1;
}

.gallery-zoom-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-zoom-text {
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gallery-caption {
  padding: 1rem 1.15rem;
  background: #ffffff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.gallery-caption strong {
  font-size: 0.925rem;
  color: var(--text-title);
}

.gallery-caption p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.gallery-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--border-light);
}

.empty-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
}

.empty-title {
  font-size: 1.15rem;
  color: var(--text-title);
  margin-bottom: 0.5rem;
}

.empty-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
}

/* 6. BOTONES DE DEMOSTRACIÓN Y ESTADOS EN SIDEBAR */
.sidebar-action-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 95px;
}

.sidebar-demo-block {
  margin-bottom: 1.5rem;
}

.demo-badge-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.status-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-indicator-dot.online {
  background-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulseDot 2s infinite;
}

.status-indicator-dot.agenda {
  background-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.status-indicator-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-title);
}

/* Botón Probar Demo (Exclusivo para demos activas) */
.btn-demo {
  background-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.btn-demo:hover {
  background-color: #1e293b;
  color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
}

/* Botón Solicitar Demostración (WhatsApp) */
.btn-demo-request {
  background-color: var(--primary-subtle);
  color: var(--primary-dark);
  border: 1.5px solid var(--primary-light);
  box-shadow: var(--shadow-xs);
}

.btn-demo-request:hover {
  background-color: var(--primary-light);
  color: var(--primary-hover);
  transform: translateY(-2px);
}

.sidebar-divider {
  height: 1px;
  background-color: var(--border-light);
  margin: 1.5rem 0;
}

.sidebar-quote-heading {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--text-title);
}

.sidebar-quote-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.sidebar-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sidebar-guarantee-note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.775rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* 7. SISTEMAS RELACIONADOS */
.related-systems-section {
  margin-top: 5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--border-light);
}

.related-heading {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-title);
}

.related-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.related-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: #7dd3fc;
  box-shadow: var(--shadow-md);
}

.related-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.related-title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text-title);
}

.related-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.5;
}

/* 8. LIGHTBOX MODAL PARA CAPTURAS */
.lightbox-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-modal-overlay.active {
  display: flex;
}

.lightbox-modal-content {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 960px;
  width: 100%;
  max-height: 94vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: #ef4444;
  transform: scale(1.08);
}

.lightbox-image-wrapper {
  background: #090f1d;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 65vh;
  max-height: 560px;
  overflow: hidden;
  position: relative;
}

.lightbox-full-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  z-index: 20;
  transition: all 0.2s ease;
}

.lightbox-nav-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev {
  left: 16px;
}

.lightbox-nav-btn.next {
  right: 16px;
}

.lightbox-counter-badge {
  position: absolute;
  top: 14px;
  left: 16px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 20;
}

.lightbox-info-box {
  padding: 1rem 1.5rem;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
}

.lightbox-title {
  font-size: 1.12rem;
  margin-bottom: 0.2rem;
  font-weight: 700;
  color: var(--text-title);
}

.lightbox-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.lightbox-thumbs-strip {
  display: flex;
  gap: 8px;
  padding: 0.6rem 1.25rem 0.8rem;
  background: #090f1d;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-thumb-btn {
  width: 56px;
  height: 38px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: #0f172a;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.lightbox-thumb-btn.active,
.lightbox-thumb-btn:hover {
  opacity: 1;
  border-color: #0284c7;
  transform: scale(1.05);
}

.lightbox-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 9. MEDIA QUERIES PARA FASE 2 (Ver sección 10 para consolidación responsive) */
@media (max-width: 1024px) {
  .detail-layout-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
  .sidebar-action-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .system-card-thumb-wrapper {
    height: 160px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .lightbox-modal-overlay {
    padding: 0.5rem;
  }
  .lightbox-modal-content {
    max-height: 96vh;
    border-radius: var(--radius-lg);
  }
  .lightbox-image-wrapper {
    height: 48vh;
    max-height: 48vh;
  }
  .lightbox-nav-btn {
    width: 36px;
    height: 36px;
  }
  .lightbox-nav-btn.prev {
    left: 8px;
  }
  .lightbox-nav-btn.next {
    right: 8px;
  }
  .lightbox-info-box {
    padding: 0.75rem 1rem;
  }
  .lightbox-title {
    font-size: 0.98rem;
  }
  .lightbox-caption {
    font-size: 0.8rem;
  }
  .lightbox-thumbs-strip {
    padding: 0.4rem 0.75rem 0.6rem;
    justify-content: flex-start;
  }
  .lightbox-thumb-btn {
    width: 48px;
    height: 32px;
  }
}


/* ==========================================================================
   FASE 2.1: ESTILOS DEL CATÁLOGO COMPLETO Y FILTROS POR CATEGORÍA
   ========================================================================== */
.catalog-hero-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

.catalog-hero-content {
  max-width: 820px;
  margin-bottom: 2.25rem;
}

.catalog-hero-title {
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  margin: 0.5rem 0 1rem 0;
  color: var(--text-title);
  line-height: 1.2;
}

.catalog-hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.catalog-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.catalog-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.25rem;
  background-color: #ffffff;
  color: var(--text-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.925rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.catalog-filter-btn:hover {
  background-color: var(--primary-subtle);
  border-color: #bae6fd;
  color: var(--primary);
  transform: translateY(-1px);
}

.catalog-filter-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.filter-count-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-muted);
  color: var(--text-muted);
}

.catalog-filter-btn.active .filter-count-badge {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.catalog-grid-section {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.catalog-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.results-count {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.results-count strong {
  color: var(--text-title);
  font-weight: 700;
}

.active-category-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clear-filter-link {
  color: var(--primary);
  font-weight: 600;
  margin-left: 0.5rem;
}

.clear-filter-link:hover {
  text-decoration: underline;
}

.catalog-cta-section {
  border-top: 1px solid var(--border-light);
  background: linear-gradient(180deg, var(--bg-surface) 0%, #ffffff 100%);
}


/* ==========================================================================
   PIURASOFT SOLUTIONS - FASE 3A: NUEVO DISEÑO CORPORATIVO Y COMPONENTES
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO: COMPOSICIÓN DUAL (LAPTOP + SMARTPHONE)
   -------------------------------------------------------------------------- */
.hero-device-composition {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Mockup Laptop */
.laptop-device {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #0f172a;
  border-radius: 10px 10px 0 0;
  padding: 8px 8px 0 8px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.laptop-screen {
  background: #f8fafc;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
  border: 1px solid #334155;
  display: flex;
  flex-direction: column;
}

.laptop-screen-header {
  background: #0f172a;
  color: #ffffff;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #1e293b;
}

.laptop-logo-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.laptop-search-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #1e293b;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.62rem;
  color: #94a3b8;
  flex: 1;
  max-width: 200px;
}

.laptop-user-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3b82f6;
  border: 1px solid #93c5fd;
}

.laptop-screen-body {
  display: grid;
  grid-template-columns: 80px 1fr;
  min-height: 190px;
  background: #f1f5f9;
}

.laptop-sidebar {
  background: #0f172a;
  padding: 6px 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.side-item {
  font-size: 0.62rem;
  color: #94a3b8;
  padding: 3px 5px;
  border-radius: 4px;
  cursor: default;
  white-space: nowrap;
}

.side-item.active {
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
}

.laptop-main {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f8fafc;
}

.laptop-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.laptop-kpi {
  background: #ffffff;
  border-radius: 5px;
  padding: 5px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.kpi-lbl {
  font-size: 0.52rem;
  color: #64748b;
  font-weight: 600;
}

.kpi-val {
  font-size: 0.68rem;
  color: #0f172a;
  font-weight: 800;
  margin-top: 1px;
}

.laptop-kpi.blue .kpi-val { color: #0284c7; }
.laptop-kpi.indigo .kpi-val { color: #4f46e5; }
.laptop-kpi.green .kpi-val { color: #16a34a; }
.laptop-kpi.purple .kpi-val { color: #9333ea; }

.laptop-chart-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.58rem;
  font-weight: 700;
  color: #1e293b;
}

.chart-legend {
  font-size: 0.52rem;
  color: #10b981;
  font-weight: 500;
}

.chart-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.laptop-base {
  height: 10px;
  background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
  border-radius: 0 0 12px 12px;
  position: relative;
  box-shadow: 0 5px 10px rgba(15, 23, 42, 0.18);
}

.laptop-notch {
  width: 50px;
  height: 3px;
  background: #334155;
  margin: 0 auto;
  border-radius: 0 0 3px 3px;
}

/* Smartphone Mockup (Rediseño Flagship Premium) */
.phone-device {
  position: absolute;
  right: -10px;
  bottom: -15px;
  width: 148px;
  height: 275px;
  background: #090d16;
  border-radius: 26px;
  padding: 5px;
  border: 2px solid #334155;
  box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.phone-screen {
  background: #f8fafc;
  border-radius: 21px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Dynamic Island */
.phone-dynamic-island {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 9px;
  background: #000000;
  border-radius: 6px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
}

.dynamic-island-camera {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #1e293b;
}

/* Phone Status Bar */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px 2px 10px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Phone App Top Bar */
.phone-app-bar {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-brand-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.phone-brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
}

.phone-avatar-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 800;
}

/* Phone Screen Body */
.phone-screen-body {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  overflow: hidden;
}

/* Sales Balance Widget */
.phone-balance-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 7px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.phone-balance-label {
  font-size: 0.45rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-balance-val {
  font-size: 0.78rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin-top: 2px;
}

.phone-balance-pill {
  font-size: 0.42rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(52, 211, 153, 0.15);
  padding: 1px 4px;
  border-radius: 4px;
}

/* Action Tiles Grid */
.phone-tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.phone-action-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 5px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.phone-tile-icon-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-tile-icon-box.blue { background: #e0f2fe; color: #0284c7; }
.phone-tile-icon-box.indigo { background: #e0e7ff; color: #4f46e5; }
.phone-tile-icon-box.green { background: #dcfce7; color: #16a34a; }
.phone-tile-icon-box.amber { background: #fef3c7; color: #d97706; }

.phone-tile-title {
  font-size: 0.48rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
}

/* Live Activity Strip */
.phone-recent-strip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-recent-doc {
  font-size: 0.5rem;
  font-weight: 800;
  color: #0f172a;
}

.phone-recent-sub {
  font-size: 0.42rem;
  color: #16a34a;
  font-weight: 700;
}

.phone-recent-amount {
  font-size: 0.58rem;
  font-weight: 800;
  color: #0284c7;
}

/* Bottom Tab Bar */
.phone-tab-bar {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 3px 6px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.phone-tab-item {
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-tab-item.active {
  color: #0284c7;
}

/* --------------------------------------------------------------------------
   2. SLIDER: NUESTROS TRABAJOS (Restauración exacta wireframe)
   -------------------------------------------------------------------------- */
.section-works-slider {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  background-color: var(--bg-surface);
}

.works-slider-wrap {
  position: relative;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 40%, #0c4a6e 100%);
  border-radius: 20px;
  padding: 2.2rem 3rem 1.8rem 3rem;
  box-shadow: 0 15px 35px -5px rgba(2, 132, 199, 0.3);
  overflow: hidden;
  color: #ffffff;
}

.works-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.works-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.work-slide {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
}

.work-info-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  overflow: hidden;
}

.work-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-title {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.work-bullets-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}

.work-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #f0fdf4;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.work-bullet-item span:last-child {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.bullet-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #22c55e;
  border-radius: 50%;
  color: #ffffff;
  flex-shrink: 0;
  margin-top: 2px;
}

.work-display-col {
  position: relative;
  display: flex;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
}

.work-display-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.15);
  background: #0f172a;
  max-width: 440px;
  width: 100%;
  box-sizing: border-box;
}

.work-screen-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

/* Flechas de navegación circulares */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: #0369a1;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 20;
  transition: all 0.2s ease;
}

.slider-nav-btn:hover {
  background: #f8fafc;
  transform: translateY(-50%) scale(1.08);
}

.slider-nav-btn.prev {
  left: 14px;
}

.slider-nav-btn.next {
  right: 14px;
}

/* Indicadores / Dots */
.works-dots, .clients-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 1.1rem;
}

.works-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.works-dots .dot.active {
  background: #ffffff;
  width: 22px;
  border-radius: 10px;
}

.clients-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clients-dots .dot.active {
  background: #2563eb;
  width: 22px;
  border-radius: 10px;
}

/* --------------------------------------------------------------------------
   3. SISTEMAS DESTACADOS (PORTAFOLIO - 3 COLUMNAS X 2 FILAS)
   -------------------------------------------------------------------------- */
.section-systems-featured {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
  background-color: var(--bg-surface);
}

.featured-pill-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #0284c7;
  background: #e0f2fe;
  padding: 0.25rem 0.8rem;
  border-radius: 9999px;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.systems-grid-approved {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 2.25rem;
}

.system-card-approved {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 185px;
}

.system-card-approved:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.12);
}

.card-approved-body {
  display: grid;
  grid-template-columns: 1fr 135px;
  gap: 0.85rem;
  align-items: center;
  height: 100%;
}

.card-approved-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 0.85rem;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.system-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  flex-shrink: 0;
}

.system-heading-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.system-approved-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.system-approved-tagline {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.3;
  margin: 0;
}

.system-approved-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.btn-card-details {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-card-details:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0284c7;
}

.btn-card-quote {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-card-quote:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.card-approved-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.system-badge-approved {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.system-badge-approved.badge-gold { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.system-badge-approved.badge-amber { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.system-badge-approved.badge-yellow { background: #fef9c3; color: #854d0e; border: 1px solid #fef08a; }
.system-badge-approved.badge-orange { background: #ffedd5; color: #9a3412; border: 1px solid #fed7aa; }
.system-badge-approved.badge-orange-light { background: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }
.system-badge-approved.badge-amber-alt { background: #fef3c7; color: #78350f; border: 1px solid #fde68a; }
.system-badge-approved.badge-blue { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }

.card-laptop-frame {
  width: 100%;
  max-width: 135px;
  background: #0f172a;
  border-radius: 6px 6px 0 0;
  padding: 3px 3px 0 3px;
  box-shadow: 0 3px 6px rgba(15, 23, 42, 0.15);
}

.card-laptop-screen {
  background: #ffffff;
  border-radius: 3px 3px 0 0;
  overflow: hidden;
  height: 72px;
  position: relative;
}

.card-laptop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-laptop-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-align: center;
  padding: 4px;
}

.card-laptop-base {
  height: 4px;
  background: #94a3b8;
  border-radius: 0 0 4px 4px;
}

.card-laptop-notch {
  width: 24px;
  height: 2px;
  background: #334155;
  margin: 0 auto;
  border-radius: 0 0 2px 2px;
}

/* Botón Ver Todos Nuestros Sistemas */
.btn-view-all-systems {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: #0284c7;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 0.75rem 2.2rem;
  border-radius: 9999px;
  box-shadow: 0 6px 16px -2px rgba(2, 132, 199, 0.35);
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-view-all-systems:hover {
  background: #0369a1;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -2px rgba(2, 132, 199, 0.45);
}

.section-header .systems-more-cta {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   4. BANNER PROGRAMA DE REFERIDOS (IMPACTO CORPORATIVO ALTO)
   -------------------------------------------------------------------------- */
.section-referrals-banner {
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
}

.referrals-banner-card {
  background: linear-gradient(135deg, #091e42 0%, #1e3a8a 52%, #1d4ed8 100%);
  border-radius: 28px;
  padding: 2.8rem 3.8rem;
  min-height: 290px;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 3rem;
  align-items: center;
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.45), 0 0 45px rgba(37, 99, 235, 0.28);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.referrals-banner-card::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(30, 58, 138, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.referrals-banner-card::after {
  content: "";
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.15) 0%, rgba(29, 78, 216, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.referrals-left-group {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  position: relative;
  z-index: 1;
}

.referrals-avatar-wrap {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.referrals-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.referrals-banner-card:hover .referrals-avatar-img {
  transform: scale(1.03);
}

.referrals-copy {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.referrals-pill-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.megaphone-icon {
  font-size: 1.9rem;
}

.referrals-headline {
  font-size: 2.1rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.referrals-reward-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.referrals-subtext {
  font-size: 1.15rem;
  color: #e2e8f0;
  font-weight: 500;
  line-height: 1.45;
}

.referrals-cash-badge {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: #091e42;
  padding: 0.45rem 1.25rem;
  border-radius: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  box-shadow: 0 6px 18px rgba(250, 204, 21, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.cash-currency {
  font-size: 1.85rem;
  letter-spacing: -0.5px;
}

.cash-label {
  font-size: 1.15rem;
  text-transform: uppercase;
  font-weight: 900;
}

.referrals-right-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.referrals-cta-box {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: center;
}

.referrals-invite-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.invite-icon {
  font-size: 1.4rem;
}

.btn-referral-cta {
  background: #ffffff;
  color: #1e3a8a;
  font-weight: 800;
  font-size: 1.12rem;
  padding: 1.05rem 2.4rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-referral-cta:hover {
  background: #f8fafc;
  color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 15px 32px rgba(0, 0, 0, 0.32);
}

.referrals-gift-wrap {
  flex-shrink: 0;
  width: 155px;
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.referrals-gift-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
  animation: floatReward 4s ease-in-out infinite;
}

.referrals-gift-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

/* --------------------------------------------------------------------------
   5. CONFÍAN EN NOSOTROS & STATS STRIP
   -------------------------------------------------------------------------- */
.section-clients {
  padding-top: 3rem;
  padding-bottom: 0;
  background-color: var(--bg-surface);
}

.clients-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.clients-pill-icon {
  font-size: 1.35rem;
}

.clients-pill-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-title);
}

.clients-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin: 1.5rem 0 1rem 0;
}

.clients-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-title);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  flex-shrink: 0;
  z-index: 10;
}

.clients-nav-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--primary);
}

.clients-viewport {
  overflow: hidden;
  width: 100%;
  margin: 0 1rem;
}

.clients-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.4s ease;
}

.client-card {
  min-width: calc(16.666% - 1.05rem);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.client-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.client-card img {
  max-width: 100%;
  height: 44px;
  object-fit: contain;
}

/* Franja de Estadísticas (Stats Strip) */
.stats-strip {
  background: #091e42;
  color: #ffffff;
  padding: 2.2rem 0;
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  justify-content: center;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.88rem;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   6. FOOTER BLOCKS & ENLACES OBLIGATORIOS
   -------------------------------------------------------------------------- */
.badge-footer {
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  color: #38bdf8;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-schedule-box {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.5rem;
}

.footer-reclamaciones-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.footer-reclamaciones-link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: #38bdf8;
}

.reclamaciones-icon {
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   7. PÁGINA PROGRAMA DE REFERIDOS (DESIGN SYSTEM CORPORATIVO PIURASOFT)
   -------------------------------------------------------------------------- */
.referrals-page {
  padding-bottom: 5rem;
  background-color: var(--bg-surface);
}

.referrals-hero-section {
  padding: 4.5rem 0 4rem 0;
  background: linear-gradient(135deg, #091e42 0%, #1e3a8a 52%, #1d4ed8 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.referrals-hero-section::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(30, 58, 138, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.referrals-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.referrals-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  padding: 0.45rem 1.15rem;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #fde047;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.referrals-hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.18;
  color: #ffffff;
  margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
}

.referrals-hero-title span {
  background: linear-gradient(135deg, #fde047 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.referrals-hero-lead {
  font-size: 1.12rem;
  line-height: 1.65;
  color: #e2e8f0;
  margin-bottom: 2rem;
  max-width: 620px;
}

.referrals-hero-lead strong {
  color: #ffffff;
}

.referrals-hero-badge-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.referrals-hero-cash-pill {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: #091e42;
  font-weight: 900;
  font-size: 1.65rem;
  padding: 0.65rem 1.6rem;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(250, 204, 21, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.5px;
}

.referrals-hero-badge-text {
  display: flex;
  flex-direction: column;
}

.referrals-hero-badge-text .hero-badge-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.referrals-hero-badge-text .hero-badge-desc {
  font-size: 0.88rem;
  color: #94a3b8;
}

.referrals-hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-hero-cta {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  color: #091e42;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.95rem 2.2rem;
  border-radius: 50px;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  color: #0284c7;
}

.btn-hero-wa {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1.5px solid rgba(74, 222, 128, 0.4);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 1.6rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-hero-wa:hover {
  background: #22c55e;
  color: #ffffff;
  border-color: #22c55e;
  transform: translateY(-2px);
}

/* Hero Visual Showcase */
.referrals-hero-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.referrals-hero-card-frame {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border-radius: 28px;
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  position: relative;
  max-width: 380px;
  width: 100%;
}

.referrals-hero-avatar {
  width: 185px;
  height: 185px;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
}

.referrals-hero-gift-float {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 82px;
  height: 82px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
  animation: floatReward 3.5s ease-in-out infinite;
}

@keyframes floatReward {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

.referrals-hero-tag {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Steps Section */
.steps-section {
  padding: 4.5rem 0;
  background-color: #f8fafc;
}

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

.step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2.5rem 1.8rem 2rem 1.8rem;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  border-color: #93c5fd;
}

.step-number-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #0284c7 0%, #1e40af 100%);
  color: #ffffff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.35);
  border: 3px solid #ffffff;
}

.step-icon-wrap {
  width: 72px;
  height: 72px;
  background: #eff6ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem auto 1.25rem auto;
  font-size: 2.2rem;
  color: #0284c7;
  border: 1px solid #dbeafe;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Form Section */
.referral-form-section {
  padding: 4.5rem 0;
  background-color: #ffffff;
}

.referral-form-container {
  max-width: 840px;
  margin: 0 auto;
}

.referral-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 3rem 2.8rem;
  box-shadow: 0 20px 45px -15px rgba(15, 23, 42, 0.09);
  position: relative;
  overflow: hidden;
}

.referral-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #0284c7 0%, #2563eb 50%, #facc15 100%);
}

.referral-form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.referral-form-header .form-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.35rem 0.95rem;
  border-radius: 50px;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.referral-form-header .form-title {
  font-size: 2rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 0.6rem;
}

.referral-form-header .form-subtitle {
  font-size: 1.02rem;
  color: #64748b;
  margin: 0 auto;
  max-width: 580px;
  line-height: 1.5;
}

.referral-form-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-size: 0.86rem;
  color: #475569;
  margin-top: 1.2rem;
}

/* Form Grid & Elements */
.rf-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}

.rf-col-full {
  grid-column: 1 / -1;
}

.rf-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rf-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.rf-label .req {
  color: #ef4444;
  font-weight: 800;
}

.rf-input,
.rf-select {
  width: 100%;
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.rf-input:focus,
.rf-select:focus {
  background-color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.rf-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.rf-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.15rem center;
  background-size: 1.15rem;
  padding-right: 2.8rem;
  cursor: pointer;
}

.rf-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  cursor: pointer;
}

.rf-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 6px;
  border: 2px solid #94a3b8;
  cursor: pointer;
  accent-color: #0284c7;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.rf-checkbox-text {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.45;
}

.btn-rf-submit {
  width: 100%;
  background: linear-gradient(135deg, #0284c7 0%, #1e40af 100%);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 1.05rem 2rem;
  border-radius: 14px;
  border: none;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.btn-rf-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(2, 132, 199, 0.45);
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
}

.rf-success-box {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 16px;
  padding: 1.8rem;
  text-align: center;
  margin-top: 1.5rem;
  animation: fadeIn 0.3s ease-in-out;
}

.rf-success-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #166534;
  margin-bottom: 0.5rem;
}

.rf-success-text {
  font-size: 0.95rem;
  color: #15803d;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.btn-rf-wa {
  background: #22c55e;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.95rem 1.8rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
  transition: all 0.25s ease;
  width: 100%;
  box-sizing: border-box;
}

.btn-rf-wa:hover {
  background: #16a34a;
  transform: translateY(-2px);
  color: #ffffff;
}

/* Terms Card */
.terms-section {
  padding: 3rem 0 4.5rem 0;
  background-color: #f8fafc;
}

.terms-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.terms-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.terms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.terms-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

.terms-check {
  color: #16a34a;
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.3;
}

.terms-item-text {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.5;
}

.terms-item-text strong {
  color: #0f172a;
}

/* Modal de Condiciones Comerciales del Programa de Referidos */
.terms-modal-link {
  color: #0284c7;
  text-decoration: underline;
  font-weight: 700;
  transition: color 0.2s ease;
}

.terms-modal-link:hover {
  color: #1e40af;
}

.terms-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.terms-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.terms-modal-dialog {
  background: #ffffff;
  border-radius: 24px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
  transform: translateY(20px) scale(0.97);
  transition: all 0.25s ease;
  overflow: hidden;
}

.terms-modal-overlay.active .terms-modal-dialog {
  transform: translateY(0) scale(1);
}

.terms-modal-header {
  padding: 1.4rem 1.8rem;
  background: linear-gradient(135deg, #091e42 0%, #1e3a8a 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terms-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terms-modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.terms-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.terms-modal-body {
  padding: 1.8rem;
  overflow-y: auto;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
}

.terms-schema-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}

.terms-schema-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.terms-modal-footer {
  padding: 1.1rem 1.8rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.btn-terms-accept {
  background: #0284c7;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.65rem 1.5rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-terms-accept:hover {
  background: #0369a1;
}

.code-display-box {
  background: #fef08a;
  border: 2px dashed #ca8a04;
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
  display: inline-block;
  margin: 1rem 0;
  text-align: center;
}

.code-display-value {
  font-size: 1.7rem;
  font-weight: 900;
  color: #713f12;
  letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   8. LIBRO DE RECLAMACIONES VIRTUAL (Diseño Oficial de Alta Calidad)
   -------------------------------------------------------------------------- */
.claims-page {
  background-color: #f8fafc;
  min-height: 85vh;
  padding: 3rem 0;
}

.claims-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1rem;
}

.claims-hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  border-radius: 16px;
  padding: 2.25rem 2.5rem;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15);
  margin-bottom: 2rem;
}

.claims-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.claims-hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.claims-hero-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}

.claims-fiscal-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  margin-top: 1.5rem;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}

.claims-fiscal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  font-size: 0.88rem;
}

.claims-card-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.claims-card-header {
  background: #f8fafc;
  padding: 1.2rem 1.75rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.claims-step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.claims-card-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.claims-card-body {
  padding: 1.75rem;
}

.claims-form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.claims-col-12 { grid-column: span 12; }
.claims-col-8 { grid-column: span 8; }
.claims-col-6 { grid-column: span 6; }
.claims-col-4 { grid-column: span 4; }

.claims-form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.45rem;
}

.claims-form-input,
.claims-form-select,
.claims-form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  font-family: inherit;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.claims-form-input:focus,
.claims-form-select:focus,
.claims-form-textarea:focus {
  border-color: #0284c7;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.claims-selection-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.claims-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.claims-radio-card:hover {
  background: #f0f9ff;
  border-color: #7dd3fc;
}

.claims-radio-card.active,
.claims-radio-card:has(input:checked) {
  background: #f0f9ff;
  border-color: #0284c7;
}

.claims-badge-tipo {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.claims-legal-callout {
  background: #f1f5f9;
  border-left: 4px solid #0284c7;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
  margin-top: 1rem;
}

.claims-btn-submit {
  background: linear-gradient(135deg, #0284c7 0%, #1e40af 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 1rem 3rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.claims-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.5);
}

@media (max-width: 768px) {
  .claims-fiscal-grid {
    grid-template-columns: 1fr;
  }
  .claims-col-8,
  .claims-col-6,
  .claims-col-4 {
    grid-column: span 12;
  }
  .claims-selection-cards {
    grid-template-columns: 1fr;
  }
  .claims-hero-banner {
    padding: 1.75rem 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   9. SLIDER DE GALERÍA EN FICHA DE SISTEMA
   -------------------------------------------------------------------------- */
.system-gallery-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-slider-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 14px;
  background: #0f172a;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.gallery-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.4s ease;
  will-change: transform;
}

.gallery-slide-item {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gallery-slide-img-box {
  position: relative;
  width: 100%;
  height: 380px;
  background: #0f172a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gallery-slide-counter-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  z-index: 5;
}

.gallery-slide-info {
  background: #ffffff;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  width: 100%;
  box-sizing: border-box;
}

.gallery-slide-info strong {
  display: block;
  font-size: 1rem;
  color: var(--text-title);
  margin-bottom: 0.25rem;
}

.gallery-slide-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.gallery-slider-arrow {
  position: absolute;
  top: calc(50% - 25px);
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 10;
  transition: all 0.2s ease;
}

.gallery-slider-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.gallery-slider-arrow.prev { left: 12px; }
.gallery-slider-arrow.next { right: 12px; }

.gallery-thumbs-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.thumb-strip-btn {
  width: 90px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  background: #0f172a;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.thumb-strip-btn.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.thumb-strip-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   10. ARQUITECTURA RESPONSIVE Y VISTA MOBILE DEDICADA
   Adaptabilidad precisa para Tablets (1024px), Smartphones (768px) y Móviles (480px/360px)
   -------------------------------------------------------------------------- */

/* Reglas Globales de Contención Móvil */
.detail-mobile-quick-actions {
  display: none;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-content {
    margin: 0 auto;
    max-width: 100%;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-device-composition {
    max-width: 440px;
    margin: 0 auto;
  }
  .systems-grid-approved {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
  .work-slide {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    text-align: center;
  }
  .work-info-col {
    align-items: center;
  }
  .work-bullets-list {
    align-items: flex-start;
  }
  .works-slider-wrap {
    padding: 2rem 2.5rem;
  }
  .detail-layout-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .sidebar-action-card {
    position: static;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .referrals-banner-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.8rem;
    text-align: center;
  }
  .referrals-left-group {
    flex-direction: column;
    text-align: center;
  }
  .referrals-pill-badge {
    justify-content: center;
  }
  .referrals-reward-row {
    justify-content: center;
  }
  .referrals-right-group {
    justify-content: center;
    gap: 2rem;
  }
  .client-card {
    min-width: calc(33.333% - 1rem);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .referrals-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .referrals-hero-lead {
    margin: 0 auto 2rem auto;
  }
  .referrals-hero-badge-box {
    justify-content: center;
  }
  .referrals-hero-actions {
    justify-content: center;
  }
  .terms-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Contenedores y Estructura */
  :root {
    --header-height: 68px;
  }
  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .section-header {
    margin-bottom: 2rem;
  }
  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.1rem);
  }
  .section-description {
    font-size: 0.95rem;
  }

  /* Cabecera y Menú Móvil */
  .top-bar {
    display: none;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-md);
    background-color: var(--primary-subtle);
    color: var(--primary);
  }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: #ffffff;
    flex-direction: column;
    padding: 1.5rem 1.25rem 2.5rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1050;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-link {
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background-color: var(--bg-surface);
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .nav-link:hover,
  .nav-link.active {
    background-color: var(--primary-subtle);
    color: var(--primary);
  }
  .nav-link.active::after {
    display: none;
  }

  /* Hero Principal en Móvil */
  .hero {
    padding: 2rem 0 2.5rem 0;
  }
  .hero-pill {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
  .hero-title {
    font-size: clamp(1.65rem, 5.5vw, 2.1rem);
  }
  .hero-description {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
  }
  .hero-device-composition {
    max-width: 320px;
    margin: 0 auto;
  }
  .laptop-device {
    max-width: 320px;
  }
  .phone-device {
    width: 110px;
    height: 195px;
    right: -5px;
    bottom: -8px;
  }

  /* Catálogo y Tarjetas de Sistemas en Móvil */
  .systems-grid,
  .systems-grid-approved {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .system-card-approved {
    padding: 1.15rem;
    min-height: auto;
  }
  .card-approved-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .card-approved-left {
    gap: 0.75rem;
  }
  .card-approved-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    order: 2;
  }
  .card-laptop-frame {
    max-width: 130px;
  }
  .system-approved-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    order: 3;
    margin-top: 0.5rem;
  }
  .btn-card-details,
  .btn-card-demo-link {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  .catalog-filter-bar {
    gap: 0.5rem;
    padding-top: 0.75rem;
  }
  .catalog-filter-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }

  /* Detalle Individual del Sistema (Vista Móvil Optimizada) */
  .system-cover-wrapper {
    padding-top: 1rem;
    padding-bottom: 0.75rem;
  }
  .system-cover-banner {
    border-radius: var(--radius-md);
    overflow: hidden;
    max-height: 180px;
    background: #07152b;
    border: 1px solid var(--border-light);
  }
  .cover-banner-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  .system-cover-gradient {
    padding: 1.75rem 1.15rem;
  }
  .cover-title {
    font-size: clamp(1.35rem, 5vw, 1.85rem);
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .cover-tagline {
    font-size: 0.92rem;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .system-detail-section {
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
    overflow: hidden;
  }
  .detail-layout-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .detail-main-col,
  .detail-sidebar-col {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden;
  }
  .detail-header-block {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .detail-heading {
    font-size: clamp(1.35rem, 5vw, 1.8rem) !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto;
    max-width: 100% !important;
  }
  .detail-lead-tagline {
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    margin-top: 0.4rem;
  }
  .detail-meta-row {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
  }
  .detail-mobile-quick-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
    width: 100% !important;
    margin: 1.15rem 0 0 0 !important;
    box-sizing: border-box !important;
  }
  .detail-mobile-quick-actions .btn {
    width: 100% !important;
    min-width: 100% !important;
    justify-content: center !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    border-radius: var(--radius-md) !important;
    box-sizing: border-box !important;
    text-align: center;
  }
  .detail-description-box {
    margin-bottom: 1.75rem;
    width: 100% !important;
    max-width: 100% !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .detail-text-paragraph {
    font-size: 0.96rem !important;
    line-height: 1.6 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .detail-target-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 1rem 1.15rem !important;
    word-break: break-word;
    overflow-wrap: break-word;
    margin-top: 1rem;
  }
  .detail-modules-box,
  .detail-gallery-box {
    margin-bottom: 2rem;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }
  .detail-subheading {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .module-feature-card {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .module-feature-title {
    font-size: 0.88rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .gallery-header-row {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .gallery-slide-img-box {
    height: 220px;
  }
  .gallery-slider-arrow {
    width: 34px;
    height: 34px;
  }
  .gallery-slider-arrow.prev { left: 8px; }
  .gallery-slider-arrow.next { right: 8px; }
  .gallery-thumbs-strip {
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
  }
  .thumb-strip-btn {
    width: 70px;
    height: 48px;
  }
  .sidebar-action-card {
    padding: 1.5rem 1.15rem;
    border-radius: var(--radius-lg);
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .related-systems-section {
    margin-top: 3rem;
    padding-top: 2rem;
  }
  .related-cards-grid {
    grid-template-columns: 1fr;
  }

  /* Formulario de Contacto y Canales Directos */
  .contact-info-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }
  .contact-form-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  .form-group.full {
    grid-column: span 1;
  }
  .form-input, .form-select, .form-textarea {
    font-size: 16px !important; /* CRITICAL: Evita zoom involuntario en iPhone Safari */
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-md);
  }
  .channel-val {
    word-break: break-word;
    font-size: 0.95rem;
  }
  .channel-val a {
    word-break: break-word;
  }

  /* Slider de Trabajos Realizados */
  .works-slider-wrap {
    padding: 1.5rem 2.4rem 2.25rem 2.4rem;
  }
  .slider-nav-btn {
    width: 32px;
    height: 32px;
  }
  .slider-nav-btn.prev { left: 4px; }
  .slider-nav-btn.next { right: 4px; }
  .work-screen-img {
    height: 150px;
  }
  .client-card {
    min-width: calc(50% - 0.75rem);
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .stat-item {
    justify-content: flex-start;
    padding: 0 1.5rem;
  }

  /* Footer y Enlaces */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-col {
    text-align: center;
  }
  .footer-social-links {
    justify-content: center;
  }
  .footer-contact-item {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Botones Flotantes Coordinados en Móvil (WhatsApp + Flecha Arriba + Cotizador) */
  #whatsapp-floating,
  .floating-whatsapp-circle {
    bottom: 1.25rem !important;
    right: 1.25rem !important;
    width: 50px !important;
    height: 50px !important;
    z-index: 998 !important;
  }
  .floating-scroll-top {
    bottom: 5rem !important;
    right: 1.35rem !important;
    width: 40px !important;
    height: 40px !important;
    z-index: 997 !important;
  }
  /* Cotizador Express Flotante en Móvil: Se desacopla del centro (top:50%) y se apila abajo a la derecha */
  .floating-quote-btn {
    top: auto !important;
    bottom: 8.4rem !important;
    right: 1.25rem !important;
    transform: none !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.45) !important;
    z-index: 999 !important;
  }
  .floating-quote-btn .floating-quote-text {
    display: none !important;
  }
  .floating-quote-btn svg {
    width: 20px !important;
    height: 20px !important;
  }
  .floating-quote-btn .floating-quote-badge {
    top: -3px !important;
    right: -3px !important;
    padding: 2px 5px !important;
    font-size: 0.68rem !important;
  }
  .whatsapp-tooltip {
    display: none !important;
  }

  /* Programa de Referidos en Móvil */
  .referrals-hero-title {
    font-size: 2.1rem;
  }
  .rf-form-grid {
    grid-template-columns: 1fr;
  }
  .referral-form-card {
    padding: 2rem 1.25rem;
  }
  .referrals-hero-cash-pill {
    font-size: 1.35rem;
  }
}

/* Teléfonos Medianos y Pequeños (<= 640px) */
@media (max-width: 640px) {
  .quote-modal {
    max-width: calc(100vw - 1.5rem);
    margin: 0 auto;
    border-radius: var(--radius-lg);
  }
  .quote-modal-header,
  .quote-modal-body,
  .quote-modal-footer {
    padding: 1.15rem 1rem;
  }
  .lightbox-modal-content {
    max-width: 96vw;
    border-radius: var(--radius-md);
  }
}

/* Teléfonos Estándar y Compactos (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .hero-device-composition {
    max-width: 270px;
  }
  .laptop-device {
    max-width: 270px;
  }
  .phone-device {
    display: none; /* En pantallas ultra-pequeñas se oculta para no saturar el viewport */
  }
  .gallery-slide-img-box {
    height: 190px;
  }
  .gallery-slide-info {
    padding: 0.85rem 1rem;
  }
  .gallery-slide-info strong {
    font-size: 0.92rem;
  }
  .gallery-slide-info p {
    font-size: 0.8rem;
  }
  .client-card {
    min-width: 100%;
  }
  .works-slider-wrap {
    padding: 1.25rem 2.2rem 2rem 2.2rem;
  }
  .slider-nav-btn {
    width: 30px;
    height: 30px;
  }
  .slider-nav-btn.prev { left: 3px; }
  .slider-nav-btn.next { right: 3px; }
  .work-title {
    font-size: 1.15rem;
  }
  .work-bullet-item {
    font-size: 0.85rem;
  }
  .work-screen-img {
    height: 140px;
  }
  .referrals-headline {
    font-size: 1.15rem;
  }
  .referrals-avatar-wrap {
    width: 90px;
    height: 90px;
  }
  .contact-info-card {
    padding: 1.35rem 1rem;
  }
  .contact-form-card {
    padding: 1.35rem 1rem;
  }
  .contact-channel-item {
    gap: 0.75rem;
  }
  .channel-icon {
    width: 38px;
    height: 38px;
  }
  .claims-card-body {
    padding: 1.25rem 1rem;
  }
  .claims-form-input,
  .claims-form-select,
  .claims-form-textarea {
    font-size: 16px !important;
  }
}

/* ==========================================================================
   FLYER PUBLICITARIO AUTOMÁTICO: REFIERE Y GANA US$50
   Modal emergente accesible con fondo corporativo azul profundo
   ========================================================================== */
.referral-flyer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 16, 29, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1.5rem 1rem;
  overflow-y: auto;
  box-sizing: border-box;
}

.referral-flyer-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.referral-flyer-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: auto;
  box-sizing: border-box;
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.referral-flyer-overlay.active .referral-flyer-dialog {
  transform: scale(1);
}

.referral-flyer-card {
  position: relative;
  background: linear-gradient(155deg, #07152b 0%, #0d2244 50%, #081a35 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 20px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.7), 0 0 40px rgba(2, 132, 199, 0.2);
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.referral-flyer-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  outline: none;
}

.referral-flyer-close:hover,
.referral-flyer-close:focus-visible {
  background: #ef4444;
  border-color: transparent;
  color: #ffffff;
  transform: rotate(90deg);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

.referral-flyer-header {
  display: flex;
  justify-content: center;
  margin-bottom: 0.6rem;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

.referral-flyer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 9999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.referral-flyer-visual {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.referral-flyer-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.35) 0%, rgba(14, 165, 233, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.referral-flyer-gift {
  position: relative;
  z-index: 2;
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
  animation: flyerGiftFloat 3.5s ease-in-out infinite;
}

@keyframes flyerGiftFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.referral-flyer-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin: 0 0 0.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  word-wrap: break-word;
}

.referral-flyer-title .highlight-text {
  color: #38bdf8;
}

.referral-flyer-reward {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(217, 119, 6, 0.22) 100%);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  margin: 0.75rem 0;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
}

.reward-pill-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #fde047;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.reward-amount-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.reward-prefix {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.reward-sum {
  font-size: 2.15rem;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 2px 14px rgba(245, 158, 11, 0.5);
  letter-spacing: -0.02em;
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1;
}

.reward-suffix {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.referral-flyer-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0 0 1.1rem;
}

.referral-flyer-actions {
  margin: 0.4rem 0;
}

.btn-referral-flyer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.9rem 1.4rem;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.42);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.btn-referral-flyer-cta:hover,
.btn-referral-flyer-cta:focus-visible {
  background: linear-gradient(135deg, #0ea5e9 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(2, 132, 199, 0.58);
  outline: none;
}

.btn-referral-flyer-cta .cta-form-icon {
  flex-shrink: 0;
}

.btn-referral-flyer-cta .cta-arrow-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-referral-flyer-cta:hover .cta-arrow-icon {
  transform: translateX(4px);
}

.referral-flyer-terms {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 0.75rem 0 0;
  line-height: 1.35;
}

/* Bloqueo del scroll del body cuando el flyer está activo */
body.flyer-modal-open {
  overflow: hidden !important;
}

/* Responsividad móvil */
@media (max-width: 576px) {
  .referral-flyer-overlay {
    padding: 1rem 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .referral-flyer-dialog {
    width: 100%;
    max-width: 360px;
    margin: auto;
  }
  .referral-flyer-card {
    padding: 1.25rem 1rem 1rem;
    border-radius: 16px;
  }
  .referral-flyer-header {
    margin-bottom: 0.4rem;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }
  .referral-flyer-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.65rem;
  }
  .referral-flyer-visual {
    width: 70px;
    height: 70px;
    margin-bottom: 0.25rem;
  }
  .referral-flyer-gift {
    width: 60px;
    height: 60px;
  }
  .referral-flyer-title {
    font-size: 1.12rem;
    line-height: 1.25;
    margin-bottom: 0.45rem;
  }
  .referral-flyer-reward {
    padding: 0.5rem 0.75rem;
    margin: 0.55rem 0;
  }
  .reward-pill-label {
    font-size: 0.65rem;
    margin-bottom: 0.1rem;
  }
  .reward-prefix, .reward-suffix {
    font-size: 0.78rem;
  }
  .reward-sum {
    font-size: 1.75rem;
  }
  .referral-flyer-desc {
    font-size: 0.8rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
  }
  .btn-referral-flyer-cta {
    padding: 0.75rem 1.1rem;
    font-size: 0.94rem;
  }
  .referral-flyer-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
  }
  .referral-flyer-terms {
    font-size: 0.68rem;
    margin-top: 0.55rem;
  }
}

/* Respeto a usuarios con preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .referral-flyer-overlay,
  .referral-flyer-dialog,
  .referral-flyer-gift,
  .btn-referral-flyer-cta {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

