/* ==========================================================================
   TECNOSERVICEL — HOJA DE ESTILOS CORPORATIVA MODERNA
   Tema: Dark Tech / Glassmorphism / Cyber-Precision
   ========================================================================== */

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

:root {
  /* Paleta Principal */
  --bg-dark: #070a12;
  --bg-surface: #0e1424;
  --bg-card: rgba(17, 24, 43, 0.75);
  --bg-card-hover: rgba(26, 36, 64, 0.85);
  --bg-glass: rgba(14, 20, 36, 0.65);
  
  /* Acentos de Marca */
  --primary: #00d2ff;
  --primary-glow: rgba(0, 210, 255, 0.35);
  --secondary: #7928ca;
  --secondary-glow: rgba(121, 40, 202, 0.35);
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  
  /* Textos */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Bordes y Sombras */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 210, 255, 0.5);
  --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px -10px var(--primary-glow);
  --shadow-glass: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);

  /* Tipografías */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Transiciones */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Fondo Ambiental Dinámico */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
}

.glow-orb-1 {
  top: -10%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  animation: floatOrb 20s infinite alternate ease-in-out;
}

.glow-orb-2 {
  top: 40%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--secondary), transparent 70%);
  animation: floatOrb 25s infinite alternate-reverse ease-in-out;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.1); }
}

/* Tipografía y Contenedores */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 2.75rem 0;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.2);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

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

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

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 10, 18, 0.82);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-normal);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.brand-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--primary-glow));
  flex-shrink: 0;
}

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

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  transition: var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Redes Sociales Oficiales en Barra Superior (Header) */
.header-social-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.header-social-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  line-height: 1;
}

.header-social-icons {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.header-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.header-social-btn svg {
  transition: transform var(--transition-fast);
}

.header-social-btn:hover {
  transform: translateY(-2px) scale(1.06);
}

.header-social-btn:hover svg {
  transform: scale(1.1);
}

.header-social-btn.tiktok:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.8);
  border-color: #fe2c55;
  box-shadow: 0 4px 14px rgba(254, 44, 85, 0.4), 0 0 8px rgba(0, 242, 234, 0.25);
}

.header-social-btn.facebook:hover {
  color: #fff;
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.45);
}

.header-social-btn.instagram:hover {
  color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: #e1306c;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.45);
}

.header-social-btn.youtube:hover {
  color: #fff;
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.45);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #00d2ff, #0077fe);
  color: #050b14;
  font-weight: 700;
  box-shadow: 0 4px 20px -2px rgba(0, 210, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(0, 210, 255, 0.6);
  color: #000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-glass);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-saas {
  background: linear-gradient(135deg, #7928ca, #4338ca);
  color: #fff;
  box-shadow: 0 4px 20px -2px rgba(121, 40, 202, 0.4);
}

.btn-saas:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(121, 40, 202, 0.6);
  color: #fff;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 3.5rem 0 2.5rem 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #34d399;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: linear-gradient(135deg, #00d2ff 0%, #7928ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

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

.stat-item h4 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.stat-item h4 span {
  color: var(--primary);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Tarjeta Interactiva Hero (Widget de Consulta Rápida) */
.hero-widget-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
}

.hero-widget-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.widget-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.widget-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
}

.consulta-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-group {
  position: relative;
}

.input-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.input-control {
  width: 100%;
  background: rgba(7, 10, 18, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.input-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
}

.consulta-result {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border-radius: 12px;
  background: rgba(0, 210, 255, 0.05);
  border: 1px solid rgba(0, 210, 255, 0.2);
  display: none;
}

.consulta-result.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SERVICIOS ESPECIALIZADOS
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2.2rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 210, 255, 0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.2);
  color: var(--primary);
}

.service-card:nth-child(even) .service-icon-box {
  background: rgba(121, 40, 202, 0.08);
  border-color: rgba(121, 40, 202, 0.2);
  color: #a855f7;
}

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

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.2rem;
  margin-top: auto;
}

.service-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features li::before {
  content: '✓';
  color: var(--accent-emerald);
  font-weight: 700;
}

/* ==========================================================================
   SAAS SHOWCASE — TECNOSERVICEL CLOUD
   ========================================================================== */
.saas-section {
  background: linear-gradient(180deg, transparent 0%, rgba(121, 40, 202, 0.05) 50%, transparent 100%);
  position: relative;
}

.saas-box {
  position: relative;
  overflow: hidden;
  background: #080c18;
  border: 1px solid rgba(121, 40, 202, 0.4);
  border-radius: 28px;
  padding: 2.75rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: 0 25px 60px -15px rgba(121, 40, 202, 0.25), 0 0 35px rgba(121, 40, 202, 0.1);
  isolation: isolate;
}

/* Fondo Dinámico con Imágenes del Sistema (1, 2, 4, 13) */
.saas-bg-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.saas-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 6s ease;
  filter: blur(2px) saturate(1.2);
}

.saas-bg-slide.active {
  opacity: 0.35;
  transform: scale(1);
}

.saas-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(7, 10, 18, 0.97) 0%, rgba(7, 10, 18, 0.90) 48%, rgba(10, 14, 26, 0.72) 80%, rgba(121, 40, 202, 0.32) 100%);
  z-index: 1;
  pointer-events: none;
}

.saas-content {
  position: relative;
  z-index: 2;
}

.saas-content h2 {
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  margin-bottom: 1.2rem;
}

.saas-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.saas-pill-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.saas-pill {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.saas-pill:hover {
  border-color: rgba(121, 40, 202, 0.5);
  transform: translateY(-2px);
  background: rgba(121, 40, 202, 0.1);
}

.saas-pill span {
  font-size: 1.2rem;
}

/* Mockup Visual con Pantallas Reales */
.saas-visual-card {
  position: relative;
  z-index: 2;
  background: rgba(14, 20, 36, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(121, 40, 202, 0.4);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 30px rgba(121, 40, 202, 0.2);
  display: flex;
  flex-direction: column;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(7, 10, 18, 0.85);
}

.mockup-circle {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

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

.mockup-url {
  font-size: 0.75rem;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem 0.8rem;
  background: rgba(10, 14, 26, 0.85);
  border-bottom: 1px solid var(--border-glass);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(121, 40, 202, 0.35) transparent;
}

.mockup-tabs::-webkit-scrollbar {
  height: 4px;
}

.mockup-tabs::-webkit-scrollbar-track {
  background: transparent;
}

.mockup-tabs::-webkit-scrollbar-thumb {
  background: rgba(121, 40, 202, 0.35);
  border-radius: 4px;
}

.mockup-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mockup-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.mockup-tab-btn.active {
  background: rgba(121, 40, 202, 0.28);
  border-color: rgba(121, 40, 202, 0.55);
  color: #d8b4fe;
  box-shadow: 0 0 10px rgba(121, 40, 202, 0.35);
}

.mockup-screens-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #050811;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-screen-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  box-sizing: border-box;
}

.mockup-screen-item.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.mockup-screen-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* Barra de Descripción de Módulo debajo de la pantalla (no tapa la imagen) */
.mockup-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 1rem;
  background: rgba(7, 10, 18, 0.95);
  border-top: 1px solid var(--border-glass);
}

.caption-text-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.caption-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.caption-desc {
  font-size: 0.76rem;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
}

.caption-counter {
  font-size: 0.72rem;
  font-weight: 700;
  color: #c084fc;
  background: rgba(121, 40, 202, 0.2);
  border: 1px solid rgba(121, 40, 202, 0.4);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.mockup-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.mockup-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7928ca, #00d2ff);
  transition: width 0.1s linear;
}

/* ==========================================================================
   PROCESO DE 4 PASOS
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: var(--transition-normal);
}

.process-step:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--primary-glow);
}

.step-icon {
  font-size: 2.2rem;
  margin: 0.8rem 0 1rem 0;
}

.process-step h4 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ==========================================================================
   CONTACTO & CORREOS CORPORATIVOS
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  align-items: stretch;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  transition: var(--transition-fast);
}

.info-card:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 210, 255, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.info-details h4 {
  font-size: 0.96rem;
  margin-bottom: 0.25rem;
}

.info-details p, .info-details a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.email-tag {
  display: inline-block;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--primary);
  margin-top: 0.25rem;
}

.contact-right-column {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 1.6rem;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 1.4rem 1.8rem;
  box-shadow: var(--shadow-glass);
  flex-shrink: 0;
}

/* Tarjeta de Historia & Trayectoria (Alineada perfectamente con la base de la columna izquierda) */
.contact-story-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 1.3rem 1.6rem;
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 0.8rem;
  transition: var(--transition-fast);
}

.contact-story-card:hover {
  border-color: rgba(0, 210, 255, 0.4);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 30px rgba(0, 210, 255, 0.12);
}

.contact-story-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.story-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.story-header-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.story-header-title h3 {
  font-size: 1.05rem;
  color: #fff;
  margin: 0;
}

.story-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.story-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.story-text {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
  text-align: center;
}

.story-text strong {
  color: #fff;
  font-weight: 600;
}

.story-timeline-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 0.1rem;
}

.story-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: all var(--transition-fast);
}

.story-pill:hover {
  background: rgba(0, 210, 255, 0.06);
  border-color: rgba(0, 210, 255, 0.3);
  transform: translateY(-2px);
}

.story-pill-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
}

.story-pill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.story-pill-text strong {
  font-size: 0.78rem;
  color: #fff;
}

.story-pill-text span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

@media (max-width: 576px) {
  .story-timeline-pills {
    grid-template-columns: 1fr;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

textarea.input-control {
  resize: vertical;
  min-height: 75px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #04060a;
  border-top: 1px solid var(--border-glass);
  padding: 3rem 0 2rem 0;
}

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

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem 0;
  max-width: 300px;
}

.footer-column h4 {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  color: #fff;
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

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

/* ==========================================================================
   REDES SOCIALES (FOOTER & CONTACTO)
   ========================================================================== */
.footer-social-wrapper {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

.footer-social-btn svg {
  transition: transform var(--transition-fast);
}

.footer-social-btn:hover {
  transform: translateY(-3px) scale(1.06);
}

.footer-social-btn:hover svg {
  transform: scale(1.1);
}

/* Hover específico por red en el footer */
.footer-social-btn.tiktok:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  border-color: #fe2c55;
  box-shadow: 0 4px 16px rgba(254, 44, 85, 0.4), 0 0 10px rgba(0, 242, 234, 0.25);
}

.footer-social-btn.facebook:hover {
  color: #fff;
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.45);
}

.footer-social-btn.instagram:hover {
  color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: #e1306c;
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.45);
}

.footer-social-btn.youtube:hover {
  color: #fff;
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.45);
}

/* Tarjeta de Redes Sociales en Sección Contacto */
.social-info-card {
  align-items: flex-start;
}

.contact-social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.contact-social-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.contact-social-btn .social-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.contact-social-btn .social-data {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  overflow: hidden;
}

.contact-social-btn .social-platform {
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
}

.contact-social-btn .social-handle {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-fast);
}

.contact-social-btn:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.contact-social-btn:hover .social-handle {
  color: var(--text-secondary);
}

.contact-social-btn.tiktok:hover {
  border-color: rgba(254, 44, 85, 0.6);
  box-shadow: 0 4px 15px rgba(254, 44, 85, 0.25);
}
.contact-social-btn.tiktok:hover .social-icon-box {
  background: #fe2c55;
  color: #fff;
}

.contact-social-btn.facebook:hover {
  border-color: rgba(24, 119, 242, 0.6);
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.25);
}
.contact-social-btn.facebook:hover .social-icon-box {
  background: #1877f2;
  color: #fff;
}

.contact-social-btn.instagram:hover {
  border-color: rgba(225, 48, 108, 0.6);
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.25);
}
.contact-social-btn.instagram:hover .social-icon-box {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
}

.contact-social-btn.youtube:hover {
  border-color: rgba(255, 0, 0, 0.6);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.25);
}
.contact-social-btn.youtube:hover .social-icon-box {
  background: #ff0000;
  color: #fff;
}

@media (max-width: 576px) {
  .contact-social-grid {
    grid-template-columns: 1fr;
  }
}

/* Botón Flotante de WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-normal);
}

.floating-whatsapp:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid, .saas-box, .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-cards,
  .contact-right-column {
    height: auto;
    justify-content: flex-start;
    gap: 1.2rem;
  }

  .contact-story-card {
    flex: none;
    height: auto;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1200px) {
  .nav-menu {
    gap: 1.1rem;
  }
  .nav-link {
    font-size: 0.86rem;
  }
  .btn-saas {
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: 78px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 78px);
    background: rgba(7, 10, 18, 0.98);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transition: var(--transition-normal);
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-actions .btn-saas {
    display: none;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 2rem 0;
  }
  .hero-section {
    padding: 2.5rem 0 1.8rem 0;
  }
  .section-header {
    margin: 0 auto 1.6rem auto;
  }
  .saas-box {
    padding: 1.8rem 1.2rem;
    gap: 1.8rem;
  }
  .header-social-heading {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-social-wrapper {
    display: none;
  }
}

/* ==========================================================================
   GALERÍA DE INSTALACIONES Y LABORATORIO (CARRUSEL INTERACTIVO CENTER-MODE)
   ========================================================================== */
.gallery-carousel-container {
  position: relative;
  width: 100%;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
}

.gallery-carousel-viewport {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1.8rem 0 1.8rem 0;
  margin-top: -0.8rem;
  margin-bottom: -0.8rem;
}

.gallery-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.gallery-carousel-track {
  display: flex;
  gap: 1.5rem;
  padding: 0;
  align-items: center;
}

/* Fotos laterales: más compactas, atenuadas para dar profundidad */
.gallery-card {
  flex: 0 0 360px;
  min-width: 360px;
  height: 250px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transform: scale(0.88);
  opacity: 0.58;
  filter: brightness(0.78);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.45s ease,
              filter 0.45s ease,
              border-color 0.45s ease,
              box-shadow 0.45s ease;
  user-select: none;
  cursor: pointer;
}

/* Foto del medio: MÁS GRANDE, destacada, nítida y con resplandor cian */
.gallery-card.is-center {
  transform: scale(1.1);
  opacity: 1;
  filter: brightness(1);
  z-index: 3;
  border-color: rgba(0, 210, 255, 0.65);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 28px rgba(0, 210, 255, 0.28);
}

.gallery-card.is-center:hover {
  transform: scale(1.13);
  border-color: rgba(0, 210, 255, 0.9);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.65), 0 0 34px rgba(0, 210, 255, 0.4);
}

.gallery-card:not(.is-center):hover {
  opacity: 0.85;
  filter: brightness(0.95);
  transform: scale(0.92);
}

.gallery-img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(0deg, rgba(7, 10, 18, 0.96) 0%, rgba(7, 10, 18, 0.68) 65%, transparent 100%);
  padding: 1.1rem 1rem 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  pointer-events: none;
}

.gallery-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.gallery-title {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
}

.gallery-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Botones de navegación en vidrio con brillo de neón */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 21, 38, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.carousel-nav-btn.prev {
  left: -20px;
}

.carousel-nav-btn.next {
  right: -20px;
}

.carousel-nav-btn:hover {
  background: rgba(0, 210, 255, 0.22);
  border-color: rgba(0, 210, 255, 0.7);
  color: #00d2ff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 0 22px rgba(0, 210, 255, 0.4);
}

.carousel-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Controles inferiores: Indicadores de puntos y aviso de pausa */
.carousel-controls-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 0.85rem;
  min-height: 26px;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-dot:hover {
  background: rgba(0, 210, 255, 0.6);
}

.carousel-dot.active {
  width: 26px;
  border-radius: 6px;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.55);
}

/* Badge de congelado / pausa al pasar el cursor */
.carousel-pause-badge {
  position: absolute;
  right: 0;
  font-size: 0.78rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  background: rgba(14, 21, 38, 0.6);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pause-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulseDot 1.4s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* ==========================================================================
   TÉRMINOS, CONDICIONES Y POLÍTICAS DE GARANTÍA
   ========================================================================== */
.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.terms-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
}

.terms-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.terms-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  width: fit-content;
}

.badge-guarantee {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-caution {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-alert {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.terms-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: #fff;
}

.terms-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

.terms-alert-banner {
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.15), rgba(7, 10, 18, 0.9) 70%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.terms-alert-content h4 {
  font-size: 1.25rem;
  color: #fbbf24;
  margin-bottom: 0.4rem;
}

.terms-alert-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 680px;
}

/* ==========================================================================
   MODAL DIALOG — DOCUMENTO COMPLETO DE TÉRMINOS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 5, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  width: 100%;
  max-width: 820px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

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

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

.modal-header h3 {
  font-size: 1.35rem;
  color: #fff;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.modal-body ol {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.modal-body li {
  padding-left: 0.5rem;
}

.modal-body strong {
  color: var(--text-primary);
}

.modal-footer {
  padding: 1.2rem 2rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: flex-end;
  background: rgba(7, 10, 18, 0.6);
}

@media (max-width: 992px) {
  .gallery-carousel-track {
    gap: 1.2rem;
    padding: 0;
  }
  .gallery-card {
    flex: 0 0 300px;
    min-width: 300px;
    height: 235px;
    transform: scale(0.88);
  }
  .gallery-card.is-center {
    transform: scale(1.08);
  }
  .carousel-nav-btn.prev {
    left: -12px;
  }
  .carousel-nav-btn.next {
    right: -12px;
  }
}

@media (max-width: 640px) {
  .gallery-carousel-track {
    gap: 1rem;
    padding: 0;
  }
  .gallery-card {
    flex: 0 0 270px;
    min-width: 270px;
    height: 220px;
    transform: scale(0.9);
  }
  .gallery-card.is-center {
    transform: scale(1.05);
  }
  .carousel-nav-btn {
    display: none;
  }
  .carousel-controls-bottom {
    flex-direction: column;
    gap: 0.5rem;
  }
  .carousel-pause-badge {
    position: static;
    justify-content: center;
  }
  .terms-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   WIDGET DE CONSULTA INTERACTIVA Y VERIFICACIÓN DE PRIVACIDAD
   ========================================================================== */
.consulta-privacy-card {
  text-align: center;
  padding: 0.5rem 0;
  animation: fadeIn 0.3s ease;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #38bdf8;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.privacy-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
}

.privacy-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.privacy-error-banner {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #fca5a5;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.privacy-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.consulta-stepper-wrap {
  margin: 1.2rem 0;
  padding: 1rem 0.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.consulta-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.stepper-item {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.stepper-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid #334155;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  transition: all 0.3s ease;
}

.stepper-item.active .stepper-circle {
  background: #0ea5e9;
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
}

.stepper-item.completed .stepper-circle {
  background: #10b981;
  border-color: #34d399;
  color: #fff;
}

.stepper-item.danger .stepper-circle {
  background: #ef4444;
  border-color: #f87171;
  color: #fff;
}

.stepper-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  display: block;
}

.stepper-item.active .stepper-label {
  color: #38bdf8;
}

.stepper-item.completed .stepper-label {
  color: #34d399;
}

.stepper-item.danger .stepper-label {
  color: #f87171;
}

.consulta-card-box {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: left;
}

.consulta-field-row {
  margin-bottom: 0.6rem;
}

.consulta-field-row:last-child {
  margin-bottom: 0;
}

.consulta-field-label {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0.2rem;
}

.consulta-field-value {
  font-size: 0.92rem;
  color: #f1f5f9;
  font-weight: 500;
  line-height: 1.4;
}

.consulta-balance-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.consulta-balance-banner.pending {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.consulta-balance-banner.paid {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
}


