/* ==========================================================================
   PUBLIPATÍA — SISTEMA DE DISEÑO DE ALTA GAMA (AGENCY GRADE)
   Paleta de Marca: Charcoal/Obsidian, Blanco Puro, Azul Cobalto & Cian Eléctrico
   Soporte Completo: Modo Claro & Modo Oscuro con Transición Fluida
   ========================================================================== */

/* Fuentes Tipográficas Premium */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  /* Tipografía */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Paleta de Color de Marca */
  --brand-blue: #2563eb;
  --brand-blue-hover: #1d4ed8;
  --brand-blue-light: #60a5fa;
  --brand-cyan: #06b6d4;
  --brand-emerald: #10b981;
  --brand-emerald-soft: rgba(16, 185, 129, 0.12);
  --brand-amber: #f59e0b;

  /* Variables de Modo Claro (Default) */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --bg-subtle: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --bg-glass-card: rgba(255, 255, 255, 0.7);

  --text-primary: #0a0f1d;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.14);
  --border-hover: rgba(37, 99, 235, 0.35);

  --accent-glow: rgba(37, 99, 235, 0.1);
  --accent-soft: rgba(37, 99, 235, 0.06);

  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px -4px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.08), 0 8px 16px -4px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 28px 56px -12px rgba(37, 99, 235, 0.15), 0 12px 24px -6px rgba(15, 23, 42, 0.04);

  --badge-bg: rgba(37, 99, 235, 0.08);
  --badge-text: #2563eb;
  --badge-border: rgba(37, 99, 235, 0.2);

  --header-bg: rgba(248, 250, 252, 0.82);
  --header-border: rgba(15, 23, 42, 0.06);

  /* Curvas y Transiciones */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s var(--ease-spring);
  --transition-smooth: 0.5s var(--ease-spring);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --container-max: 1260px;
}

/* Variables de Modo Oscuro */
[data-theme="dark"] {
  --bg-body: #070a12;
  --bg-surface: #0e1422;
  --bg-surface-elevated: #131b2e;
  --bg-surface-hover: #182239;
  --bg-subtle: #111827;
  --bg-glass: rgba(14, 20, 34, 0.85);
  --bg-glass-card: rgba(19, 27, 46, 0.65);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-light: #475569;
  --text-inverse: #0a0f1d;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-hover: rgba(96, 165, 250, 0.4);

  --accent-glow: rgba(37, 99, 235, 0.25);
  --accent-soft: rgba(37, 99, 235, 0.12);

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 14px 34px -4px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 26px 54px -12px rgba(0, 0, 0, 0.75);
  --shadow-hover: 0 30px 60px -12px rgba(37, 99, 235, 0.3), 0 12px 24px rgba(0, 0, 0, 0.5);

  --badge-bg: rgba(56, 189, 248, 0.1);
  --badge-text: #38bdf8;
  --badge-border: rgba(56, 189, 248, 0.25);

  --header-bg: rgba(7, 10, 18, 0.85);
  --header-border: rgba(255, 255, 255, 0.07);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Fondo dinámico y sutil con rejilla geométrica */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--border-subtle) 1.2px, transparent 1.2px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.65;
}

/* Resplandor ambiental de cabecera */
.ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, 1200px);
  height: 550px;
  background: radial-gradient(circle at 50% 10%, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(50px);
}

/* Enlaces y Botones */
a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ==========================================================================
   TIPOGRAFÍA Y TITULARES
   ========================================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--brand-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

[data-theme="dark"] .text-gradient {
  background: linear-gradient(135deg, #ffffff 40%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   BOTONES Y COMPONENTES CTA
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--brand-blue-hover);
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-xs);
}

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

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}

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

.btn-dark {
  background: var(--text-primary);
  color: var(--bg-body);
}

.btn-dark:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
}

/* Badges / Píldoras de Garantía */
.badge-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--brand-emerald-soft);
  color: var(--brand-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
  letter-spacing: 0.01em;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   HEADER / NAVEGACIÓN
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  transition: all var(--transition-base);
  background: transparent;
}

.site-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--header-border);
  height: 72px;
  box-shadow: var(--shadow-sm);
}

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

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

.brand-logo img,
.brand-logo svg {
  height: 38px;
  width: auto;
  transition: transform var(--transition-fast);
}

.brand-logo:hover img,
.brand-logo:hover svg {
  transform: scale(1.02);
}

/* Nav Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--brand-blue);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

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

.nav-link:hover::after {
  width: 100%;
}

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

/* Switch de Tema (Claro / Oscuro) */
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.theme-toggle-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
  transform: rotate(15deg);
}

.theme-icon-sun {
  display: none;
}

[data-theme="dark"] .theme-icon-sun {
  display: block;
}

[data-theme="dark"] .theme-icon-moon {
  display: none;
}

/* Botón Menú Móvil */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

/* Cajón Móvil */
.mobile-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-surface);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateY(-110%);
  transition: transform 0.4s var(--ease-spring);
  z-index: 999;
  border-bottom: 1px solid var(--border-subtle);
  overflow-y: auto;
}

.mobile-drawer.active {
  transform: translateY(0);
}

.mobile-drawer .nav-link {
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   HERO SECTION (AGENCY GRADE)
   ========================================================================== */
.hero-section {
  padding-top: clamp(7.5rem, 14vw, 11rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero-title {
  font-size: clamp(2.35rem, 5vw, 3.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
}

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

.hero-trust-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

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

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

/* Visual Mockup & Reserved Video Showcase */
.hero-visual-card {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hero-visual-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Browser Header Mockup */
.mockup-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.15rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

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

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-url-bar {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.mockup-status-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand-emerald);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Contenedor del Mockup / Video Slot */
.mockup-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #000;
  overflow: hidden;
}

.mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-spring);
}

.hero-visual-card:hover .mockup-img {
  transform: scale(1.03);
}

/* Hueco Reservado para Video de Cabecera */
.video-reserved-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 29, 0.2) 0%, rgba(10, 15, 29, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #ffffff;
  pointer-events: none;
}

.video-slot-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  pointer-events: auto;
}

.video-slot-content {
  pointer-events: auto;
}

.video-slot-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.video-slot-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 90%;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0a0f1d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-fast);
  pointer-events: auto;
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: #ffffff;
  color: var(--brand-blue);
}

/* ==========================================================================
   SECCIÓN DE ESPECIALIZACIÓN (SECTORES DE ALTO VALOR)
   ========================================================================== */
.section-spacious {
  padding-block: clamp(5rem, 9vw, 8rem);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
}

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

.sector-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sector-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-blue), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.sector-card:hover::before {
  opacity: 1;
}

.sector-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.sector-tagline {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  margin-bottom: 0.35rem;
}

.sector-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

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

.sector-preview-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-top: 0.5rem;
}

.sector-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.sector-card:hover .sector-preview-thumb img {
  transform: scale(1.06);
}

.sector-action-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.sector-action-link:hover {
  gap: 0.6rem;
}

/* ==========================================================================
   SERVICIOS / BENTO GRID
   ========================================================================== */
.services-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.75rem;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

/* Bento Principal: Desarrollo Web (8 columnas) */
.bento-col-8 {
  grid-column: span 8;
}

/* Bento Secundario: Redes Sociales (4 columnas) */
.bento-col-4 {
  grid-column: span 4;
}

/* Bento Secundario: Imprenta (12 columnas) */
.bento-col-12 {
  grid-column: span 12;
}

.bento-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.bento-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-blue);
  letter-spacing: 0.1em;
}

.bento-icon-lg {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin-block: 0.65rem 0.85rem;
}

.bento-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 650px;
}

.bento-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.feature-check {
  color: var(--brand-emerald);
  flex-shrink: 0;
}

.bento-imprenta-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.imprenta-thumb-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}

.imprenta-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.imprenta-thumb-item:hover img {
  transform: scale(1.08);
}

.imprenta-thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(10, 15, 29, 0.85) 0%, transparent 100%);
  color: #ffffff;
  padding: 0.75rem 0.6rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==========================================================================
   METODOLOGÍA / PROCESO 0% RIESGO
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xs);
}

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

.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--border-medium);
  line-height: 1;
  transition: color var(--transition-fast);
}

.process-card:hover .step-number {
  color: var(--brand-blue);
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.step-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-highlight {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-emerald);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   MÉTRICAS Y CONTADORES NUMÉRICOS
   ========================================================================== */
.stats-strip {
  background: var(--bg-surface);
  border-block: 1px solid var(--border-subtle);
  padding-block: 3.5rem;
  box-shadow: var(--shadow-xs);
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-num-wrap {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
}

.stat-accent {
  color: var(--brand-blue);
  font-size: 0.8em;
  margin-left: 2px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 220px;
}

/* ==========================================================================
   PORTAFOLIO Y CATÁLOGO INTERACTIVO
   ========================================================================== */
.portfolio-section {
  padding-block: clamp(5rem, 9vw, 8rem);
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.65rem 1.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

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

.portfolio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
}

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

.portfolio-img-box {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--bg-subtle);
}

.portfolio-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.portfolio-card:hover .portfolio-img-box img {
  transform: scale(1.05);
}

.portfolio-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(10, 15, 29, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portfolio-zoom-hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #0a0f1d;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-fast);
}

.portfolio-card:hover .portfolio-zoom-hint {
  opacity: 1;
  transform: scale(1);
}

.portfolio-content {
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.portfolio-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portfolio-title {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
}

.portfolio-desc {
  font-size: 0.885rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   COTIZADOR EXPRÉS INTERACTIVO
   ========================================================================== */
.calc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.calc-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

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

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

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--bg-body);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-surface);
}

.form-textarea {
  resize: vertical;
  min-height: 95px;
}

/* ==========================================================================
   TESTIMONIOS
   ========================================================================== */
.testimonials-section {
  padding-block: clamp(5rem, 8vw, 7.5rem);
  background: var(--bg-surface);
  border-block: 1px solid var(--border-subtle);
}

.testimonials-slider-wrap {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-block: 1rem 2rem;
  scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 clamp(320px, 38vw, 420px);
  scroll-snap-align: start;
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.testimonial-stars {
  color: var(--brand-amber);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testimonial-quote {
  font-size: 1.025rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQ ACCORDION)
   ========================================================================== */
.faq-wrap {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--brand-blue);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-spring), padding 0.3s ease;
  padding-inline: 1.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 280px;
  padding-bottom: 1.5rem;
}

/* ==========================================================================
   FOOTER Y CIERRE
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: 2.5rem;
}

.footer-cta-card {
  background: linear-gradient(135deg, #0a0f1d 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.footer-cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.footer-cta-title {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 1rem;
}

.footer-cta-lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.25fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  margin-top: 1rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.925rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--brand-blue);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.whatsapp-floating {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.whatsapp-bubble {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-medium);
  white-space: nowrap;
  animation: float-bubble 3s ease-in-out infinite;
}

@keyframes float-bubble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.whatsapp-circle-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: all var(--transition-base);
  cursor: pointer;
}

.whatsapp-circle-btn:hover {
  transform: scale(1.1) rotate(8deg);
  background: #20bd5a;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   MODAL LIGHTBOX (ZOOM DE PORTAFOLIO)
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 18, 0.92);
  backdrop-filter: blur(14px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.35s var(--ease-spring);
}

.lightbox-modal.active .lightbox-dialog {
  transform: scale(1);
}

.lightbox-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  border: none;
  transition: background var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: rgba(0, 0, 0, 0.85);
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 60vh;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
}

.lightbox-body {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ==========================================================================
   ANIMACIONES DE SCROLL (REVEAL / FADE-IN)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-spring), transform 0.75s var(--ease-spring);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES ULTRA-OPTIMIZADAS PARA MÓVILES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .bento-col-8,
  .bento-col-4 {
    grid-column: span 12;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 66px;
  }
  .site-header.scrolled {
    height: 60px;
  }
  .brand-logo img,
  .brand-logo svg {
    height: 32px;
  }
  .nav-menu,
  .nav-actions .btn {
    display: none;
  }
  .mobile-toggle {
    display: flex;
    width: 40px;
    height: 40px;
  }
  .mobile-drawer {
    top: 66px;
  }
  .hero-section {
    padding-top: 5.5rem;
    padding-bottom: 2.5rem;
  }
  .hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.5rem);
    line-height: 1.14;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .trust-pills {
    gap: 0.4rem;
  }
  .trust-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
  }
  .stat-num-wrap {
    font-size: 2.4rem;
  }
  .stat-label {
    font-size: 0.8rem;
  }
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .bento-card {
    padding: 1.35rem 1.15rem;
    gap: 1.25rem;
  }
  .bento-imprenta-showcase {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .portfolio-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-inline: 0.25rem;
    padding-bottom: 0.65rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.5rem 1rem;
    font-size: 0.825rem;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .whatsapp-bubble {
    display: none;
  }
  .whatsapp-floating {
    bottom: 1.25rem;
    right: 1.25rem;
  }
  .whatsapp-circle-btn {
    width: 52px;
    height: 52px;
  }
  .whatsapp-circle-btn svg {
    width: 28px;
    height: 28px;
  }
  /* Prevenir zoom no deseado en iOS Safari */
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px !important;
  }
  .calc-card {
    padding: 1.5rem 1.15rem;
  }
  .lightbox-dialog {
    max-width: 95%;
    max-height: 88vh;
    border-radius: var(--radius-lg);
  }
  .lightbox-img-wrap {
    max-height: 45vh;
  }
  .lightbox-img-wrap img {
    max-height: 45vh;
  }
  .lightbox-body {
    padding: 1.15rem;
  }
}

@media (max-width: 480px) {
  .hero-eyebrow {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .badge-guarantee, .badge-pill {
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
  }
  .testimonial-card {
    flex: 0 0 88vw;
    padding: 1.5rem 1.15rem;
  }
}

