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

:root {
  /* Variables de Luz (Default) - Colores Oficiales Hami: Celeste & Verde */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-accent-light: #E0F2FE;
  --color-primary: #3399FF; /* Celeste Hami */
  --color-primary-dark: #1D80E6;
  --color-accent-green: #10B981; /* Verde Hami */
  --color-accent-green-bright: #00E676;
  --color-text-main: #1E293B;
  --color-text-muted: #64748B;
  --color-border: #E2E8F0;

  /* Hami Brand Tokens (Inspirados en estructura Fudo con Celeste & Verde) */
  --fudo-coral: #3399FF; /* Celeste Hami */
  --fudo-coral-dark: #1D80E6;
  --fudo-blue: #0284C7;
  --fudo-teal: #0D9488;
  --fudo-emerald: #10B981; /* Verde Hami */
  --fudo-amber: #F59E0B;
  --fudo-dark: #0F172A;
  --fudo-card-shadow: 0 20px 45px -10px rgba(51, 153, 255, 0.12);
  --fudo-glow-coral: 0 10px 25px -4px rgba(51, 153, 255, 0.35);
  
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --shadow-sm: 0 2px 8px -1px rgba(51, 153, 255, 0.08);
  --shadow-md: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 32px -6px rgba(15, 23, 42, 0.12);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-theme: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  --border-radius-sm: 10px;
  --border-radius-md: 18px;
  --border-radius-lg: 24px;
}

/* Modificaciones para Modo Oscuro */
body.dark-theme {
  --bg-primary: #0F172A;
  --bg-secondary: #1E293B;
  --bg-accent-light: rgba(51, 153, 255, 0.15);
  --color-text-main: #F8FAFC;
  --color-text-muted: #94A3B8;
  --color-border: #334155;
  
  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 12px 24px -4px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 32px -6px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

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

/* PATRÓN GASTRONÓMICO DE FONDO (ESTILO BISTRO ILUSTRADO AMBIENTAL) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('gastronomic_pattern.png');
  background-repeat: repeat;
  background-size: 380px auto;
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

body.dark-theme::before {
  opacity: 0.045;
  filter: invert(0.92) hue-rotate(180deg);
}

main, section, footer {
  position: relative;
  z-index: 1;
}

/* ROTATING ILLUSTRATION SLIDER */
.rotating-illustration-wrapper .rotating-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.rotating-illustration-wrapper .rotating-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.rotating-indicators .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.rotating-indicators .dot.active {
  width: 24px;
  border-radius: 12px;
  background: var(--color-primary);
}

/* Transiciones de tema de color globales */
header, section, footer, div, h1, h2, h3, p, a, input, textarea, button, .service-card, .project-card, .contact-card {
  transition: var(--transition-theme);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(51, 153, 255, 0.15);
  transition: var(--transition-theme);
}

body.dark-theme header {
  background: rgba(15, 23, 42, 0.85);
  border-bottom-color: rgba(51, 153, 255, 0.2);
}

header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.96);
}

body.dark-theme header.scrolled {
  background: rgba(15, 23, 42, 0.96);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth) !important;
}

.logo span {
  background: linear-gradient(135deg, var(--color-primary), #00D2FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

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

.nav-link {
  text-decoration: none;
  color: var(--color-text-main);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}

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

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

/* Contact Button in Nav */
.nav-btn {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #FFFFFF !important;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(51, 153, 255, 0.3);
  font-weight: 600;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(51, 153, 255, 0.4);
}

.nav-btn::after {
  display: none;
}

/* Botón Ingresar a Local (Diseño Premium Elevado) */
.nav-btn-secondary.hami-login-btn,
.nav-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(51, 153, 255, 0.4);
  background: rgba(51, 153, 255, 0.06);
  color: var(--color-primary) !important;
  padding: 0.58rem 1.3rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 10px rgba(51, 153, 255, 0.08);
  white-space: nowrap;
  margin-left: 0.5rem;
}

body.dark-theme .nav-btn-secondary.hami-login-btn,
body.dark-theme .nav-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: #F4F6FA !important;
}

.nav-btn-secondary:hover,
.nav-btn-secondary.hami-login-btn:hover {
  background: rgba(51, 153, 255, 0.15) !important;
  border-color: var(--color-primary) !important;
  color: var(--color-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -4px rgba(51, 153, 255, 0.35);
}

body.dark-theme .nav-btn-secondary:hover,
body.dark-theme .nav-btn-secondary.hami-login-btn:hover {
  background: rgba(51, 153, 255, 0.2) !important;
  border-color: var(--color-primary) !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 25px -4px rgba(51, 153, 255, 0.4);
}

.nav-btn-secondary svg {
  transition: transform 0.3s ease;
}

.nav-btn-secondary:hover svg {
  transform: translateX(3px);
}

.nav-btn-secondary::after {
  display: none;
}

/* Nav Dropdown Menu */
.nav-dropdown-item {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
  list-style: none;
}

.nav-dropdown-item:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li {
  width: 100%;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.25rem;
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.nav-dropdown-menu a:hover {
  background: rgba(51, 153, 255, 0.08);
  color: var(--color-primary);
}

/* Selector de Modo Claro/Oscuro (Unificado Desktop & Móvil) */
.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1020;
}

.mobile-cta-sticky {
  display: none;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(51, 153, 255, 0.3);
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .mobile-cta-sticky {
    display: inline-flex;
    align-items: center;
  }
}

/* Ocultar selector de tema móvil en pantallas de escritorio */
@media (min-width: 1025px) {
  .mobile-only-toggle {
    display: none !important;
  }
}

/* Ocultar selector de tema de escritorio en pantallas móviles */
@media (max-width: 1024px) {
  .desktop-only-toggle {
    display: none !important;
  }
}

/* Selector de tema (Diseño Unificado Premium) */
.theme-toggle-icon {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  outline: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.theme-toggle-icon:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.theme-toggle-icon:active {
  transform: translateY(0) scale(0.95);
}

body.dark-theme .theme-toggle-icon {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .theme-toggle-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-primary);
}

/* Iconos de tema y posicionamiento */
.theme-toggle-icon svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

/* Modo Claro (default): Mostramos la luna */
.theme-toggle-icon .sun-icon {
  color: var(--color-primary);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(0.5);
  pointer-events: none;
}

.theme-toggle-icon .moon-icon {
  color: #00D2FF;
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

/* Modo Oscuro (dark-theme): Mostramos el sol */
body.dark-theme .theme-toggle-icon .sun-icon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

body.dark-theme .theme-toggle-icon .moon-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg) scale(0.5);
  pointer-events: none;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem 2rem;
  background: radial-gradient(circle at 90% 10%, var(--bg-accent-light) 0%, transparent 40%);
  overflow: hidden;
}

.hero-canvas-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-left: calc((100vw - 1200px) / 2);
}

@media (max-width: 1200px) {
  .hero-content {
    margin-left: 0;
  }
}

.hero h1 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 3.8rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--color-text-main);
}

.hero h1 span {
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary) 0%, #007FFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.cta-group {
  display: flex;
  gap: 1.25rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: 0 8px 24px rgba(51, 153, 255, 0.25);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth) !important;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(51, 153, 255, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-md);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-smooth) !important;
}

.btn-secondary:hover {
  background: rgba(51, 153, 255, 0.05);
  transform: translateY(-3px);
}

/* Sections Base */
section.py-section {
  padding: 8rem 2rem;
  position: relative;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-tag {
  color: var(--color-primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-text-main);
  line-height: 1.2;
}

.section-title span {
  color: var(--color-primary);
}

/* Servicios Section */
#servicios {
  background-color: var(--bg-secondary);
}

.servicios-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-primary);
  padding: 2.25rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 1.5rem;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--color-primary);
  transform: scaleY(0);
  transition: var(--transition-smooth);
  transform-origin: bottom;
}

.service-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(51, 153, 255, 0.2);
}

body.dark-theme .service-card:hover {
  border-color: rgba(51, 153, 255, 0.35);
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-icon {
  background: var(--bg-accent-light);
  color: var(--color-primary);
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: var(--transition-smooth) !important;
}

.service-card:hover .service-icon {
  background: var(--color-primary);
  color: #FFFFFF;
  transform: scale(1.05);
}

.service-card h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text-main);
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.babylon-container {
  height: 500px;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.babylon-canvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
}

.interactive-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  border: 1px solid rgba(51, 153, 255, 0.2);
  pointer-events: none;
  animation: pulse 2s infinite;
  z-index: 5;
}

body.dark-theme .interactive-hint {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(51, 153, 255, 0.3);
}

/* Portafolio Section */
.portafolio-layout {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.spline-showcase {
  width: 100%;
  height: 450px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(51, 153, 255, 0.3);
}

.project-thumbnail {
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  overflow: hidden;
  position: relative;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth) !important;
}

.project-card:hover .project-img {
  transform: scale(1.05);
  filter: brightness(1.03);
}

.project-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Badges de tecnología en tarjetas */
.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-badge {
  background: var(--bg-accent-light);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  letter-spacing: 0.2px;
}

body.dark-theme .tech-badge {
  background: rgba(51, 153, 255, 0.12);
  color: #5eb5ff;
}

.project-card h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text-main);
  transition: var(--transition-smooth) !important;
}

.project-card:hover h3 {
  color: var(--color-primary);
}

.project-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.project-link-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: auto;
}

.project-link-label svg {
  transition: var(--transition-smooth) !important;
}

.project-card:hover .project-link-label svg {
  transform: translateX(4px);
}

/* Contacto Section */
#contacto {
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info h3 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.contact-info p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-primary);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.contact-item-text h4 {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.contact-item-text p {
  font-weight: 600;
  color: var(--color-text-main);
  font-size: 1rem;
}

/* Contact Form with Material Floating Labels */
.contact-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  padding: 3.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-control {
  width: 100%;
  padding: 1.25rem 1rem 0.75rem 1rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
  background-color: var(--bg-secondary);
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}

/* Input Floating Label Logic */
.floating-label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), font-size 0.25s, color 0.25s;
  transform-origin: left top;
}

/* Focus and active states */
.form-control:focus {
  border-color: var(--color-primary);
  background-color: var(--bg-primary);
  box-shadow: 0 0 0 4px rgba(51, 153, 255, 0.15);
}

/* Mover label arriba si está enfocado o no vacío (Sin superposición de texto) */
.form-control:focus ~ .floating-label,
.form-control:not(:placeholder-shown) ~ .floating-label {
  transform: translateY(-1.35rem) scale(0.75);
  color: var(--color-primary);
  background: var(--bg-secondary);
  padding: 0 6px;
  border-radius: 4px;
}

/* =========================================================================
   NUEVO SISTEMA DE CAMPOS Y FORMULARIOS SAAS PROFESIONAL (0% SUPERPOSICIÓN)
   ========================================================================= */
.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
  width: 100%;
}

.form-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text-main);
  letter-spacing: 0.2px;
}

.required-asterisk {
  color: #FF3B30;
  font-weight: 800;
  margin-left: 2px;
}

.input-container {
  position: relative;
  width: 100%;
}

.saas-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  background: var(--bg-primary);
  color: var(--color-text-main);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.saas-input:focus {
  border-color: var(--color-primary);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 3.5px rgba(51, 153, 255, 0.2);
}

.saas-input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.65;
}

.toggle-pwd-btn {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s;
}

.toggle-pwd-btn:hover {
  color: var(--color-primary);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
  padding-top: 1.5rem;
}

.form-btn {
  width: 100%;
  justify-content: center;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  display: none;
  text-align: center;
}

.form-status.success {
  display: block;
  background-color: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

body.dark-theme .form-status.success {
  background-color: rgba(22, 163, 74, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

.form-status.error {
  display: block;
  background-color: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FCA5A5;
}

body.dark-theme .form-status.error {
  background-color: rgba(220, 38, 38, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

/* Footer */
footer {
  background-color: #0F172A;
  color: #FFFFFF;
  padding: 4rem 2rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-theme footer {
  background-color: #090D16;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.8rem;
  color: #FFFFFF;
  text-decoration: none;
}

.footer-logo span {
  color: var(--color-primary);
}

.footer-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(51, 153, 255, 0.35);
  border-radius: 50px;
  padding: 8px 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin: 1.25rem auto 0 auto;
  max-width: 95vw;
}

.footer-link,
.footer-link:link,
.footer-link:visited {
  text-decoration: none !important;
  color: #F8FAFC !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  transition: all 0.25s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

.footer-link:hover {
  color: var(--color-primary) !important;
  background: rgba(51, 153, 255, 0.18) !important;
  transform: translateY(-1px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

/* EFEECTO SCROLL REVEAL (Animaciones de entrada) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

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

/* Animations */
@keyframes pulse {
  0% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 2px 10px rgba(51, 153, 255, 0.1);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 4px 20px rgba(51, 153, 255, 0.25);
  }
  100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 2px 10px rgba(51, 153, 255, 0.1);
  }
}

/* Animación del indicador de escritura de chat Hami AI */
@keyframes chatDotBounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
}

/* Responsive Grid Adjustments */
@media (max-width: 968px) {
  html {
    font-size: 15px;
  }
  
  .nav-menu {
    gap: 1.2rem;
  }
  
  .hero {
    padding-top: 8rem;
    min-height: auto;
  }
  
  .hero .section-container {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100% !important;
    margin: 0 auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .cta-group {
    justify-content: center;
  }
  
  .servicios-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .babylon-container {
    height: 350px;
    order: -1;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Portal responsivo de dos columnas */
  .portal-container {
    grid-template-columns: 1fr !important;
    padding: 2rem 1.5rem !important;
    gap: 2.5rem !important;
  }

  #col-register, #col-success {
    border-right: none !important;
    border-bottom: 1px solid var(--color-border);
    padding-right: 0 !important;
    padding-bottom: 2.5rem !important;
  }

  #col-login {
    padding-left: 0 !important;
    padding-top: 1rem;
  }

  .modules-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Colapso de secciones Simulador, Dashboard y Calculadora */
  .simulador-layout, .dashboard-grid, .calc-layout {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
}

/* Custom styles for select option styling */
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2rem;
  padding-right: 2.5rem;
}

body.dark-theme select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Dashboard status updates */
#dash-project-status {
  transition: all 0.3s ease;
}

/* Checklist customization */
.tasks-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-main);
  transition: color 0.2s ease;
  user-select: none;
}

.tasks-checklist input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--color-border);
  background-color: var(--bg-secondary);
  cursor: pointer;
  appearance: none;
  display: grid;
  place-content: center;
  transition: all 0.2s ease;
  margin-top: 2px;
  flex-shrink: 0;
}

.tasks-checklist input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--bg-primary);
  background-color: CanvasText;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.tasks-checklist input[type="checkbox"]:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.tasks-checklist input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.tasks-checklist input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.tasks-checklist label:hover {
  color: var(--color-primary);
}

.tasks-checklist label.completed {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

/* Estilos para la Factura Simulada (factura001) */
.invoice-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, background-color 0.4s ease, border-color 0.4s ease !important;
}

body.dark-theme .invoice-card {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

.invoice-card table th {
  border-bottom: 2px solid var(--color-border);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.invoice-card table td {
  padding: 8px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 0.8rem;
}

.invoice-card table tr:last-child td {
  border-bottom: none;
}

/* Botones de Cantidad (+ / -) en el simulador */
.btn-qty {
  transition: var(--transition-smooth) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.btn-qty:hover {
  background-color: var(--color-primary) !important;
  color: #FFFFFF !important;
  border-color: var(--color-primary) !important;
  transform: scale(1.1);
}

.btn-qty:active {
  transform: scale(0.95);
}

.simulador-controls {
  transition: var(--transition-theme);
}

body.dark-theme .simulador-controls {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

/* Estilo para los ítems de la lista de productos */
#invoice-product-inputs > div {
  transition: border-color 0.3s ease;
}

body.dark-theme #invoice-product-inputs > div {
  border-bottom-color: #334155 !important;
}

/* Animación para la cinta de clientes */
@keyframes scroll-ribbon {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.33%);
  }
}

/* Estilos visuales de las tarjetas de módulos (Ecosistema Hami) */
.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(51, 153, 255, 0.3) !important;
}

body.dark-theme .module-card {
  background-color: var(--bg-secondary) !important;
  border-color: var(--color-border) !important;
}

body.dark-theme .module-card:hover {
  border-color: rgba(51, 153, 255, 0.4) !important;
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.5) !important;
}

/* =========================================================================
   ESTILOS DE MENÚ HAMBURGUESA PARA DISPOSITIVOS MÓVILES
   ========================================================================= */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1025;
  flex-shrink: 0;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--color-text-main);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left center;
}

/* Animación a X al abrir */
.mobile-menu-btn.open span:first-child {
  transform: rotate(45deg) translate(1px, -1px);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.open span:last-child {
  transform: rotate(-45deg) translate(1px, 1px);
}

@media (max-width: 1024px) {
/* =========================================================================
   MENÚ FLOTANTE MÓVIL PREMIUM CON GLASSMORPHISM Y TRANSICIONES SUAVES
   ========================================================================= */
.nav-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 14, 26, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Morph del Botón Hamburguesa a "X" */
.mobile-menu-btn span {
  width: 100%;
  height: 2.5px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease, background-color 0.3s ease;
  transform-origin: center;
}

.mobile-menu-btn.open {
  background: rgba(51, 153, 255, 0.2) !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 15px rgba(51, 153, 255, 0.4) !important;
}

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

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: flex !important;
    z-index: 100000 !important;
  }

  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: min(320px, 85vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-left: 1px solid rgba(51, 153, 255, 0.3) !important;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 1rem !important;
    padding: 5rem 1.25rem 2.25rem 1.25rem !important;
    z-index: 99999 !important;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow-y: auto !important;
    list-style: none !important;
  }

  .nav-menu.open {
    right: 0 !important;
  }

  .nav-menu li {
    width: 100% !important;
    text-align: left !important;
  }

  .nav-menu .nav-link {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0.8rem 1rem !important;
    border-radius: var(--border-radius-sm) !important;
    background: rgba(51, 153, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: var(--color-text-main) !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    min-height: 44px !important;
  }

  .nav-menu .nav-link:hover, .nav-menu .nav-link.active {
    background: rgba(51, 153, 255, 0.15) !important;
    border-color: rgba(51, 153, 255, 0.4) !important;
    color: var(--color-primary) !important;
    transform: translateX(4px);
  }

  .nav-menu .nav-link::after {
    display: none !important;
  }

  .nav-dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    padding: 0.4rem 0 0.4rem 0.85rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.4rem !important;
    min-width: 0 !important;
  }

  .nav-dropdown-menu a {
    font-size: 0.85rem !important;
    padding: 0.6rem 0.85rem !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 8px !important;
    color: var(--color-text-muted) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
  }

  .nav-dropdown-menu a:hover {
    color: var(--color-primary) !important;
    background: rgba(51, 153, 255, 0.1) !important;
  }
}

/* =========================================================================
   ESTILOS PREMIUM PARA INPUT RANGE (DESLIZADORES CALCULADORA)
   ========================================================================= */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--color-border);
  border-radius: 5px;
  outline: none;
  transition: background 0.3s;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  margin-top: -6px;
  box-shadow: 0 2px 6px rgba(51, 153, 255, 0.4);
  transition: transform 0.1s, background-color 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--color-primary-dark);
}

body.dark-theme input[type="range"]::-webkit-slider-thumb {
  background: #00D2FF;
  box-shadow: 0 2px 6px rgba(0, 210, 255, 0.4);
}

body.dark-theme input[type="range"]::-webkit-slider-thumb:hover {
  background: #00b4db;
}

/* Adaptabilidad móvil del widget de chat AI */
@media (max-width: 480px) {
  .hami-chat-widget {
    bottom: 1rem !important;
    right: 1rem !important;
  }
  
  #chat-box {
    width: calc(100vw - 2rem) !important;
    max-width: 360px !important;
    height: 420px !important;
    bottom: 70px !important;
  }
}

/* =========================================================================
   CARRUSEL HORIZONTAL DE MÓDULOS EN CELULARES (EFECTO SLIDER)
   ========================================================================= */
@media (max-width: 768px) {
  .modules-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    gap: 1.25rem !important;
    padding: 0.5rem 1rem 1.5rem 1rem !important;
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    margin-top: 2rem !important;
    scrollbar-width: none; /* Firefox */
  }

  .modules-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .module-card {
    flex: 0 0 85% !important;
    max-width: 85% !important;
    scroll-snap-align: center !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    padding: 1.75rem 1.5rem !important;
    text-align: left !important;
    display: flex !important;
    border-radius: var(--border-radius-md) !important;
    background: var(--bg-secondary) !important;
    box-shadow: var(--shadow-sm) !important;
  }

  .module-card .module-icon {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 0.25rem !important;
  }

  .swipe-indicator {
    display: flex !important;
    animation: swipePulse 2s infinite ease-in-out;
  }
}

@keyframes swipePulse {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.7;
  }
  50% {
    transform: translateX(6px);
    opacity: 1;
  }
}
}

/* =========================================================================
   ESTILOS DE MENÚ DESPLEGABLE (DROPDOWN) - EMPRESA E INDUSTRIAS
   ========================================================================= */
.nav-dropdown-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 320px;
  background: var(--bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1050;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  backdrop-filter: blur(10px);
}

.nav-dropdown-item:hover .dropdown-menu,
.nav-dropdown-item.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(5px);
}

.nav-dropdown-item:hover .dropdown-arrow,
.nav-dropdown-item.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  color: var(--color-text-main);
  transition: var(--transition-smooth);
}

.dropdown-link:hover {
  background: var(--bg-primary);
  color: var(--color-primary);
}

.dropdown-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.dropdown-link strong {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 2px;
}

.dropdown-link p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}

/* --- ESTILOS DE SUB-DESPLEGABLE (SUB-DROPDOWN) --- */
.nav-subdropdown-item {
  position: relative;
}

.subdropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  transform: translateX(10px);
  width: 210px;
  background: var(--bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1060;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  backdrop-filter: blur(10px);
}

.nav-subdropdown-item:hover .subdropdown-menu,
.nav-subdropdown-item.open .subdropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(5px);
}

.nav-subdropdown-item:hover .subdropdown-arrow,
.nav-subdropdown-item.open .subdropdown-arrow {
  transform: rotate(90deg);
}

.subdropdown-link {
  display: block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  color: var(--color-text-main);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.subdropdown-link:hover {
  background: var(--bg-primary);
  color: var(--color-primary);
}

/* --- ADAPTABILIDAD RESPONSIVA PARA CELULARES (DROPDOWN ACORDEÓN) --- */
@media (max-width: 1024px) {
  .dropdown-menu, .subdropdown-menu {
    position: static !important;
    width: 100% !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    display: none;
    padding: 0.5rem 1rem !important;
    background: transparent !important;
  }

  .nav-dropdown-item.open .dropdown-menu {
    display: flex !important;
  }

  .nav-subdropdown-item.open .subdropdown-menu {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* Dos columnas en móvil para ahorrar espacio */
    gap: 0.5rem !important;
  }

  .dropdown-link {
    padding: 0.5rem !important;
  }
  
  .subdropdown-link {
    padding: 0.4rem 0.5rem !important;
    font-size: 0.8rem !important;
    text-align: left !important;
  }

  .subdropdown-arrow {
    transform: rotate(90deg) !important;
  }

  .nav-dropdown-item.open .dropdown-arrow {
    transform: rotate(180deg) !important;
  }

  .nav-subdropdown-item.open .subdropdown-arrow {
    transform: rotate(270deg) !important;
  }
}

/* =========================================================================
   ESTILOS ADICIONALES PARA EL PANEL FULL-SCREEN DE EMPRESA
   ========================================================================= */
.segment-card:hover, .industry-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary) !important;
  box-shadow: var(--shadow-md) !important;
}

body.dark-theme .segment-card, body.dark-theme .industry-card {
  background-color: var(--bg-secondary) !important;
}

#close-empresa-panel-btn:hover {
  transform: rotate(90deg) scale(1.05);
  background: var(--bg-primary);
  color: var(--color-primary);
}

@media (max-width: 968px) {
  .empresa-panel-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
}

@media (max-width: 600px) {
  .industrias-panel-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  
  #empresa-page-panel {
    padding: 3rem 1rem !important;
  }
}

/* =========================================================================
   17. ESTILOS INTERACTIVOS ONBOARDING DASHBOARD
   ========================================================================= */
.onboarding-tab-btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}
.onboarding-tab-btn:hover {
  background: rgba(51, 153, 255, 0.05) !important;
  color: var(--color-primary) !important;
}
.onboarding-tab-btn.active {
  background: rgba(51, 153, 255, 0.1) !important;
  color: var(--color-primary) !important;
}

/* Switch Toggle */
.onboard-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}
.onboard-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.onboard-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-border);
  transition: .4s;
  border-radius: 34px;
}
.onboard-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .onboard-slider {
  background-color: var(--color-primary);
}
input:checked + .onboard-slider:before {
  transform: translateX(24px);
}

@media (max-width: 968px) {
  .onboarding-dashboard-layout {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* =========================================================================
   COOKIE CONSENT BANNER (PROFESSIONAL DESIGN)
   ========================================================================= */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

body.dark-theme .cookie-banner {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-banner.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cookie-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cookie-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
  animation: cookie-wiggle 3s ease infinite;
}

@keyframes cookie-wiggle {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(-8deg); }
  20%, 40% { transform: rotate(8deg); }
  50% { transform: rotate(0deg); }
}

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

body.dark-theme .cookie-text {
  color: #94a3b8;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.cookie-btn-primary {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(51, 153, 255, 0.2);
}

.cookie-btn-primary:hover {
  background: #1a88ff;
  border-color: #1a88ff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(51, 153, 255, 0.3);
}

.cookie-btn-primary:active {
  transform: translateY(0);
}

.cookie-btn-secondary {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
}

.cookie-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--color-text-muted);
}

body.dark-theme .cookie-btn-secondary {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--color-text-main);
}

body.dark-theme .cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #94a3b8;
}

/* BOTÓN TRIGGER FLOTANTE (REABRIR PREFERENCIAS) */
.cookie-trigger {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 9998;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme .cookie-trigger {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cookie-trigger:hover {
  background: rgba(255, 255, 255, 1);
  border-color: var(--color-primary);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

body.dark-theme .cookie-trigger:hover {
  background: rgba(15, 23, 42, 1);
}

.cookie-trigger.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

@media (max-width: 576px) {
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
    padding: 1.25rem;
    z-index: 10050; /* Por encima de todo en móvil */
  }

  .cookie-trigger {
    bottom: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    z-index: 10049;
  }
}

/* =========================================================================
   MULTI-DEVICE MOCKUP COMPONENT (MONITOR + SMARTPHONE + FLOATING DIALOGS)
   ========================================================================= */
.fudo-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 1.5rem;
}

.desktop-monitor-frame {
  position: relative;
  width: 90%;
  background: #0F172A;
  border-radius: 16px 16px 4px 4px;
  padding: 10px 10px 0 10px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.desktop-monitor-screen {
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  position: relative;
  background: #1E293B;
}

.desktop-monitor-screen img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.desktop-monitor-stand {
  width: 80px;
  height: 24px;
  background: linear-gradient(to bottom, #334155, #1E293B);
  margin: 0 auto;
}

.desktop-monitor-base {
  width: 160px;
  height: 8px;
  background: #334155;
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.smartphone-mockup-frame {
  position: absolute;
  right: 0%;
  bottom: 8%;
  width: 38%;
  max-width: 190px;
  background: #0F172A;
  border-radius: 28px;
  padding: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.15);
  z-index: 3;
}

.smartphone-notch {
  width: 50px;
  height: 10px;
  background: #0F172A;
  border-radius: 0 0 8px 8px;
  margin: 0 auto 4px auto;
}

.smartphone-screen {
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
}

.smartphone-screen img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.floating-product-dialog {
  position: absolute;
  left: 12%;
  bottom: 18%;
  width: 230px;
  background: var(--bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 12px 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
  z-index: 4;
  animation: floatSlow 4s ease-in-out infinite;
}

.delivery-integrations-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
  padding: 1.25rem 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  flex-wrap: wrap;
}

.delivery-brand-logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.5px;
  opacity: 0.85;
  transition: var(--transition-smooth);
}

.delivery-brand-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* =========================================================================
   ORDENAMIENTO Y ADAPTABILIDAD MÓVIL OPTIMIZADA
   ========================================================================= */
@media (max-width: 992px) {
  /* Hero 1 columna */
  .hero .section-container {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-content .cta-group {
    justify-content: center;
  }

  /* Salón & Mesas 1 columna */
  .simulador-layout {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  /* Ajustes de Mockups en Celular */
  .fudo-mockup-wrapper {
    max-width: 100%;
  }

  .smartphone-mockup-frame {
    width: 42%;
    max-width: 150px;
    right: -2%;
    bottom: 5%;
  }

  .floating-product-dialog {
    width: 200px;
    left: 4%;
    bottom: 12%;
    padding: 10px;
  }

  .delivery-integrations-bar {
    gap: 1.25rem;
    padding: 1rem;
  }
}

/* =========================================================================
   OVERHAUL COMPLETO DE UI MOBILE & AUDITORÍA DE SOBREFLUJO (OVERFLOW-X)
   ========================================================================= */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

/* Stacking de tarjetas de precios para evitar solapamientos (bug z-index) */
.fudo-feature-card {
  position: relative !important;
  z-index: 1 !important;
  margin-bottom: 0 !important;
}

.fudo-btn-primary, .fudo-btn-secondary {
  position: relative !important;
  z-index: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

/* Fix para visualización de imagen del Mockup */
.desktop-monitor-screen {
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  position: relative;
  background: #1E293B;
  width: 100%;
  min-height: 180px;
}

.desktop-monitor-screen img {
  width: 100% !important;
  height: auto !important;
  min-height: 180px !important;
  display: block !important;
  object-fit: cover !important;
}

.smartphone-screen {
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  width: 100%;
  min-height: 160px;
}

.smartphone-screen img {
  width: 100% !important;
  height: auto !important;
  min-height: 160px !important;
  display: block !important;
  object-fit: cover !important;
}

/* Botón Hamburguesa Móvil con alto contraste y visibilidad forzada */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 34px;
  height: 34px;
  background: rgba(51, 153, 255, 0.12);
  border: 1px solid rgba(51, 153, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  padding: 6px;
  z-index: 1050;
  flex-shrink: 0;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2.5px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: flex !important;
  }
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 1020;
}

.mobile-cta-sticky {
  display: none;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.45rem 0.8rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(51, 153, 255, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
.hero-floating-table-card {
  position: absolute;
  top: -15px;
  left: -10px;
  background: var(--bg-primary);
  border: 1px solid var(--color-border);
  padding: 8px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

@media (max-width: 1024px) {
  .mobile-cta-sticky {
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 768px) {
  /* Header Mobile Compact Layout */
  .nav-container {
    padding: 0.75rem 1rem !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .logo-chile-badge {
    display: none !important;
  }

  .logo {
    font-size: 1.35rem !important;
    gap: 6px !important;
  }

  .mobile-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    flex-shrink: 0 !important;
  }

  .mobile-cta-sticky {
    display: inline-flex !important;
    font-size: 0.75rem !important;
    padding: 0.4rem 0.75rem !important;
    flex-shrink: 0 !important;
  }

  .mobile-menu-btn {
    display: flex !important;
    flex-shrink: 0 !important;
    margin-left: 2px !important;
  }

  /* Contenedores Hero sin desborde */
  .hero {
    padding: 5.5rem 1rem 2.5rem 1rem !important;
    overflow: hidden !important;
  }

  .section-container, .hero-mockup-container {
    max-width: 100vw !important;
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .fudo-mockup-wrapper {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    padding-bottom: 1.5rem !important;
  }

  .desktop-monitor-frame {
    width: 95% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .smartphone-mockup-frame {
    position: absolute !important;
    right: 0 !important;
    bottom: 4% !important;
    width: 36% !important;
    max-width: 120px !important;
    z-index: 3 !important;
    padding: 4px !important;
    border-radius: 18px !important;
  }

  .hero-floating-table-card {
    position: absolute !important;
    top: 4px !important;
    left: 4px !important;
    padding: 5px 9px !important;
    font-size: 0.72rem !important;
    border-radius: 10px !important;
    max-width: calc(100% - 8px) !important;
    z-index: 5 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3) !important;
  }

  .hero-floating-table-card strong {
    font-size: 0.72rem !important;
  }

  .hero-floating-table-card span {
    font-size: 0.65rem !important;
  }

  .floating-product-dialog {
    position: absolute !important;
    left: 6px !important;
    bottom: 6px !important;
    width: calc(100% - 12px) !important;
    max-width: 175px !important;
    padding: 6px 8px !important;
    font-size: 0.72rem !important;
    border-radius: 10px !important;
    z-index: 4 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3) !important;
  }

  .floating-product-dialog strong {
    font-size: 0.75rem !important;
  }

  .floating-product-dialog button {
    padding: 4px 6px !important;
    font-size: 0.68rem !important;
    margin-top: 4px !important;
  }

  /* Tap targets de botones 44px de alto */
  .nav-menu li a, .nav-dropdown-menu a {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .btn-qty {
    min-width: 44px !important;
    min-height: 44px !important;
    font-size: 1.2rem !important;
  }

  /* Precios y Botón Principal Sin Solapamiento */
  #planes .fudo-btn-primary {
    margin-top: 2rem !important;
    width: 100% !important;
  }

  /* Tipografía Responsive */
  .fudo-hero-title, .hero h1 {
    font-size: clamp(1.8rem, 6vw, 3rem) !important;
    line-height: 1.2 !important;
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
    line-height: 1.25 !important;
  }
}

/* =========================================================================
   BARRA NAVEGACIÓN FLOTANTE HORIZONTAL INFERIOR (HAMI POS - PERMANENTE AL SCROLL)
   ========================================================================= */
.floating-bottom-dock {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translate(-50%, 0) !important;
  z-index: 10050 !important;
  max-width: 95vw !important;
  width: auto !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  animation: hamiDockFloat 3.6s ease-in-out infinite !important;
  transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease !important;
  will-change: transform;
}

.floating-bottom-dock.in-motion {
  animation-play-state: paused !important;
}

.floating-bottom-dock.in-motion .dock-container-pill {
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 210, 255, 0.5) !important;
  border-color: rgba(0, 210, 255, 0.65) !important;
}

@keyframes hamiDockFloat {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}

.floating-bottom-dock:hover {
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 210, 255, 0.4) !important;
}

.dock-container-pill {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  background: rgba(12, 16, 26, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(0, 210, 255, 0.35) !important;
  border-radius: 40px !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 210, 255, 0.25) !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}

.dock-container-pill::-webkit-scrollbar {
  display: none !important;
}

.dock-item-pill,
.dock-item-pill:link,
.dock-item-pill:visited {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 14px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 30px !important;
  color: #94a3b8 !important;
  font-family: var(--font-body, sans-serif) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.dock-item-pill:hover,
.dock-item-pill.active {
  background: rgba(0, 210, 255, 0.14) !important;
  border-color: rgba(0, 210, 255, 0.35) !important;
  color: #00D2FF !important;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.25) !important;
  text-decoration: none !important;
}

.dock-item-pill.btn-ws {
  background: rgba(37, 211, 102, 0.15) !important;
  border-color: rgba(37, 211, 102, 0.35) !important;
  color: #25D366 !important;
  font-weight: 700 !important;
}

.dock-item-pill.btn-ws:hover {
  background: rgba(37, 211, 102, 0.28) !important;
  box-shadow: 0 0 18px rgba(37, 211, 102, 0.4) !important;
}

.dock-logo-item {
  gap: 8px !important;
  padding: 6px 14px 6px 10px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-radius: 30px !important;
}

.dock-brand-icon {
  width: 24px !important;
  height: 24px !important;
  background: linear-gradient(135deg, #00D2FF, #0072FF) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #FFFFFF !important;
  font-size: 0.8rem !important;
}

.dock-brand-name {
  font-family: var(--font-title, sans-serif) !important;
  font-weight: 800 !important;
  font-size: 0.9rem !important;
  color: #FFFFFF !important;
  letter-spacing: -0.3px !important;
}

.dock-cta-pill,
.dock-cta-pill:link,
.dock-cta-pill:visited {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 18px !important;
  background: linear-gradient(135deg, #00D2FF, #0072FF) !important;
  color: #FFFFFF !important;
  font-family: var(--font-body, sans-serif) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  border-radius: 30px !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 14px rgba(0, 210, 255, 0.3) !important;
  white-space: nowrap !important;
}

.dock-cta-pill:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.55) !important;
  text-decoration: none !important;
}

@media (max-width: 768px) {
  .floating-bottom-dock {
    bottom: 12px !important;
    max-width: 94vw !important;
  }
  .dock-container-pill {
    padding: 4px 8px !important;
  }
  .dock-item-pill {
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
  }
}
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
  }

  .dock-container-pill {
    gap: 4px !important;
    padding: 5px 6px !important;
  }

  .dock-item-pill,
  .dock-item-pill:link,
  .dock-item-pill:visited {
    padding: 7px 12px !important;
    font-size: 0.82rem !important;
    border-radius: 10px !important;
  }

  .dock-item-pill.mobile-hide {
    display: none !important;
  }

  .dock-cta-pill,
  .dock-cta-pill:link,
  .dock-cta-pill:visited {
    padding: 7px 16px !important;
    font-size: 0.82rem !important;
    border-radius: 10px !important;
  }

  /* Chat Botón flotando limpiamente SOBRE el dock en mobile sin solapamiento */
  .hami-chat-widget {
    bottom: 4.8rem !important;
    right: 1rem !important;
    z-index: 10010 !important;
  }

  #chat-box {
    bottom: 125px !important;
    right: 1rem !important;
    width: calc(100vw - 2rem) !important;
    max-width: 360px !important;
  }
}

/* =========================================================================
   COMPONENTE: FEATURE TABS & ACCORDION DETAIL PANEL (ULTRA PREMIUM DESIGN)
   ========================================================================= */
.feature-tabs-wrapper {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  margin-bottom: 2.25rem;
  padding: 0.5rem 0;
}

.feature-tabs-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.feature-tabs-pills {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: max-content;
  margin: 0 auto;
  padding: 6px;
}

@media (max-width: 768px) {
  .feature-tabs-pills {
    margin: 0;
  }
}

.feature-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1.45rem;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--color-text-muted);
  background: var(--bg-primary);
  border: 1.5px solid var(--color-border);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.feature-tab-pill:hover {
  color: var(--color-primary);
  border-color: rgba(51, 153, 255, 0.45);
  background: rgba(51, 153, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(51, 153, 255, 0.2);
}

.feature-tab-pill.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 10px 28px -4px rgba(51, 153, 255, 0.45);
  transform: translateY(-2px) scale(1.02);
}

/* Contenedor del Accordion Vertical Elevado */
.feature-accordion-panel {
  position: relative;
  background: var(--bg-primary);
  border: 1.5px solid rgba(51, 153, 255, 0.25);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 25px 60px -15px rgba(51, 153, 255, 0.15);
  transition: all 0.35s ease;
  backdrop-filter: blur(16px);
}

body.dark-theme .feature-accordion-panel {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
}

.accordion-item-single {
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--bg-secondary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.accordion-item-single:hover {
  border-color: rgba(51, 153, 255, 0.45);
  transform: translateX(4px);
}

.accordion-item-single.is-open {
  border-color: var(--color-primary);
  background: var(--bg-primary);
  box-shadow: 0 10px 30px -6px rgba(51, 153, 255, 0.22);
}

.accordion-item-single.is-open::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-primary), var(--color-primary-dark));
}

.accordion-trigger-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.6rem;
  background: transparent;
  border: none;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text-main);
  cursor: pointer;
  text-align: left;
  transition: color 0.25s ease;
}

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

.accordion-chevron-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(51, 153, 255, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.accordion-item-single.is-open .accordion-chevron-icon {
  transform: rotate(180deg);
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(51, 153, 255, 0.4);
}

.accordion-content-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 1.6rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* =========================================================================
   ESTILOS VISTA CELULAR HAMI.CL (FUNNEL DE ALTA CONVERSIÓN RÁPIDA)
   ========================================================================= */
.mobile-funnel-landing {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only-landing {
    display: none !important;
  }

  .mobile-funnel-landing {
    display: block !important;
    padding: 1rem 0.75rem 4rem 0.75rem;
    background: var(--bg-primary);
  }

  .fudo-mob-hero-header {
    text-align: left;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }

  .fudo-mob-title {
    font-family: var(--font-title);
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--color-text-main);
    letter-spacing: -0.5px;
  }

  .fudo-mob-title .highlight-orange {
    color: #FF5A36;
    position: relative;
  }

  .fudo-mob-title .highlight-orange::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #FF5A36;
    border-radius: 2px;
  }

  /* Formulario Estilo Fudo Mobile */
  .fudo-mob-form-card {
    background: var(--bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.25rem 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
  }

  .fudo-mob-group {
    margin-bottom: 1rem;
  }

  .fudo-mob-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    color: #1f2937;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  body.dark-theme .fudo-mob-input {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
  }

  .fudo-mob-input:focus {
    border-color: #FF5A36;
    box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.15);
  }

  .fudo-mob-phone-wrapper {
    display: flex;
    gap: 8px;
  }

  .fudo-mob-flag-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 0.85rem;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1f2937;
    flex-shrink: 0;
  }

  body.dark-theme .fudo-mob-flag-btn {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
  }

  .fudo-mob-helper-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    display: block;
    line-height: 1.35;
  }

  .fudo-mob-password-container {
    position: relative;
  }

  .fudo-mob-eye-btn {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.7;
  }

  .fudo-mob-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 1.25rem 0;
    line-height: 1.4;
  }

  .fudo-mob-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #FF5A36;
  }

  .btn-fudo-orange {
    width: 100%;
    padding: 1.05rem;
    background: #FF5A36;
    color: #ffffff !important;
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 90, 54, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    display: block;
    text-decoration: none;
  }

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

  .fudo-mob-subtext {
    text-align: center;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 0.65rem;
  }

  .fudo-mob-login-link {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.95rem;
    color: var(--color-text-main);
  }

  .fudo-mob-login-link a {
    color: #FF5A36;
    font-weight: 800;
    text-decoration: underline;
  }

  /* Banner 90% OFF POS */
  .fudo-mob-promo-banner {
    background: linear-gradient(135deg, #FF5A36 0%, #E03E1A 100%);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
    box-shadow: 0 10px 25px rgba(255, 90, 54, 0.3);
  }

  .fudo-mob-promo-sticker {
    position: absolute;
    top: 0;
    left: 0;
    background: #ffffff;
    color: #FF5A36;
    font-weight: 900;
    font-size: 0.75rem;
    padding: 4px 12px 4px 16px;
    border-bottom-right-radius: 12px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  .fudo-mob-promo-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    padding-top: 0.75rem;
  }

  .fudo-mob-promo-title {
    font-family: var(--font-title);
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1.1;
  }

  .fudo-mob-promo-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    opacity: 0.95;
  }

  /* Lista de Funcionalidades Con Iconos */
  .fudo-mob-features-section {
    margin: 2.5rem 0;
  }

  .fudo-mob-features-title {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    line-height: 1.3;
  }

  .fudo-mob-feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .fudo-mob-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
  }

  .fudo-mob-feature-icon {
    font-size: 1.6rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 90, 54, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
  }

  .fudo-mob-feature-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-main);
  }

  /* Ayuda y Footer Mobile */
  .fudo-mob-help-box {
    background: var(--bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
  }

  .fudo-mob-help-arrow {
    font-size: 1.5rem;
    color: #FF5A36;
    margin-bottom: 0.5rem;
  }

  .fudo-mob-help-title {
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 0.35rem;
  }

  .fudo-mob-help-link {
    color: #FF5A36;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: underline;
  }

  .fudo-mob-footer {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .fudo-mob-footer-section {
    margin-bottom: 1.75rem;
  }

  .fudo-mob-footer-heading {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
  }

/* =========================================================================
   MENÚ DESPLEGABLE MÓVIL FULLSCREEN HAMI (WHITE THEME)
   ========================================================================= */
.fudo-mob-menu-overlay {
  display: none !important;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff !important;
  z-index: 200000;
  padding: 1.5rem 1.5rem 2.5rem 1.5rem;
  flex-direction: column;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(-10px);
}

body.dark-theme .fudo-mob-menu-overlay {
  display: none !important;
  background: #0f172a !important;
}

@media (max-width: 1024px) {
  .fudo-mob-menu-overlay.is-active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
}

.fudo-mob-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

body.dark-theme .fudo-mob-menu-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.fudo-mob-menu-logo {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 900;
  color: #3399FF;
}

.fudo-mob-menu-close {
  background: transparent;
  border: none;
  color: #1e293b;
  font-size: 1.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
}

body.dark-theme .fudo-mob-menu-close {
  color: #ffffff;
}

.fudo-mob-menu-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

.fudo-mob-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fudo-mob-menu-list a {
  color: #1e293b !important;
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease, opacity 0.2s ease;
}

body.dark-theme .fudo-mob-menu-list a {
  color: #f8fafc !important;
}

.fudo-mob-menu-list a:hover,
.fudo-mob-menu-list a:active {
  color: #3399FF !important;
}

.fudo-mob-menu-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 0.5rem 0;
}

body.dark-theme .fudo-mob-menu-divider {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.fudo-mob-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.btn-fudo-menu-primary {
  width: 100%;
  padding: 1.05rem;
  background: linear-gradient(135deg, #3399FF, #0077ff) !important;
  color: #ffffff !important;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 900;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(51, 153, 255, 0.35);
  letter-spacing: 0.5px;
  display: block;
}

.btn-fudo-menu-outline-blue {
  width: 100%;
  padding: 1.05rem;
  background: transparent !important;
  color: #3399FF !important;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 900;
  border: 2.5px solid #3399FF !important;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.5px;
  display: block;
}

body.dark-theme .btn-fudo-menu-outline-blue {
  color: #ffffff !important;
  border-color: #ffffff !important;
}


/* HIDE DROPDOWN MENUS ON DESKTOP - ONLY VISIBLE ON MOBILE */
@media (min-width: 1025px) {
  .nav-dropdown-menu,
  .dropdown-menu,
  .subdropdown-menu,
  .nav-dropdown-item .dropdown-arrow,
  .nav-dropdown-item svg {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}


/* =========================================================================
   DESKTOP OVERRIDE: STRICT HIDE MOBILE MENU OVERLAY & DESKTOP DROPDOWNS
   ========================================================================= */
@media (min-width: 1025px) {
  .fudo-mob-menu-overlay,
  .fudo-mob-menu-overlay.is-active,
  .mobile-menu-btn,
  .mobile-header-actions,
  .mobile-funnel-landing,
  .nav-dropdown-menu,
  .dropdown-menu,
  .subdropdown-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
  }

  .desktop-only-landing {
    display: block !important;
  }

  .nav-menu {
    display: flex !important;
  }
}


/* DESKTOP STRICT OVERRIDE FOR MOBILE OVERLAY & DROPDOWNS */
@media (min-width: 1025px) {
  .fudo-mob-menu-overlay,
  .fudo-mob-menu-overlay.is-active,
  .mobile-menu-btn,
  .mobile-header-actions,
  .mobile-funnel-landing,
  .nav-dropdown-menu,
  .dropdown-menu,
  .subdropdown-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
  }
}


/* =========================================================================
   BULLETPROOF HIDE FOR MOBILE OVERLAY ON DESKTOP SCREENS
   ========================================================================= */
#fudo-mob-menu-overlay {
  display: none !important;
}

@media (max-width: 1024px) {
  #fudo-mob-menu-overlay.is-active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
}

@media (min-width: 1025px) {
  #fudo-mob-menu-overlay,
  .fudo-mob-menu-overlay,
  .fudo-mob-menu-overlay.is-active,
  .mobile-menu-btn,
  .mobile-header-actions,
  .mobile-funnel-landing,
  .nav-dropdown-menu,
  .dropdown-menu,
  .subdropdown-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;

/* =========================================================================
   BARRA FLOTANTE DE NAVEGACIÓN (FLOATING NAVBAR GLASSMORPHISM) HAMI.CL
   ========================================================================= */
header,
header.hami-floating-header {
  position: fixed !important;
  top: 16px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 32px) !important;
  max-width: 1280px !important;
  z-index: 99999 !important;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  border-radius: 50px !important;
  padding: 0.65rem 1.6rem !important;
  box-shadow: 0 12px 35px -8px rgba(15, 23, 42, 0.12), 0 4px 14px -2px rgba(51, 153, 255, 0.12) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.dark-theme header,
body.dark-theme header.hami-floating-header,
body.dark-page header,
body.dark-page header.hami-floating-header {
  background: rgba(15, 23, 42, 0.94) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 12px 35px -8px rgba(0, 0, 0, 0.8), 0 4px 14px -2px rgba(51, 153, 255, 0.25) !important;
}

body.dark-theme header .nav-link,
body.dark-page header .nav-link {
  color: #CBD5E1 !important;
}

body.dark-theme header .nav-link:hover,
body.dark-page header .nav-link:hover,
body.dark-theme header .nav-link.active,
body.dark-page header .nav-link.active {
  color: #3399FF !important;
  font-weight: 700 !important;
}

body.dark-theme header .logo-link span,
body.dark-page header .logo-link span {
  color: #FFF !important;
}

/* Compensación de margen superior para evitar que la barra tape el contenido */
body {
  padding-top: 140px !important;
}

@media (max-width: 768px) {
  header,
  header.hami-floating-header {
    top: 10px !important;
    width: calc(100% - 20px) !important;
    padding: 0.5rem 1.1rem !important;
    border-radius: 24px !important;
  }
  body {
    padding-top: 110px !important;
  }
}

/* BOTÓN FLOTANTE WIDGET DE CONTACTO EN ESQUINA INFERIOR DERECHA */
.hami-floating-contact-btn {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 99998 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: linear-gradient(135deg, #10B981, #059669) !important;
  color: #FFFFFF !important;
  padding: 12px 22px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  font-family: var(--font-title) !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
}

.hami-floating-contact-btn:hover {
  transform: translateY(-4px) scale(1.03) !important;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.55), 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

/* =========================================================================
   BARRA FLOTANTE INFERIOR DOCK (FOOTER QUICK NAV FLOTANTE EN SCROLL)
   ========================================================================= */
.hami-bottom-floating-dock {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 2147483647 !important;
  width: auto !important;
  max-width: 95vw !important;
  pointer-events: auto !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease !important;
}

.hami-bottom-floating-dock.dock-scrolled {
  transform: translateX(-50%) translateY(-4px) !important;
}

.dock-container {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(15, 23, 42, 0.94) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border: 1px solid rgba(51, 153, 255, 0.35) !important;
  padding: 8px 16px !important;
  border-radius: 50px !important;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.65), 0 0 25px rgba(51, 153, 255, 0.3) !important;
}

.dock-item {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #E2E8F0 !important;
  text-decoration: none !important;
  font-family: var(--font-body) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  padding: 7px 14px !important;
  border-radius: 30px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
}

.dock-item:hover {
  color: #FFFFFF !important;
  background: rgba(51, 153, 255, 0.2) !important;
  transform: translateY(-2px) !important;
}

.dock-item.dock-highlight {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 15px rgba(51, 153, 255, 0.45) !important;
}

.dock-item.dock-highlight:hover {
  transform: translateY(-2px) scale(1.04) !important;
  box-shadow: 0 6px 20px rgba(51, 153, 255, 0.65) !important;
}

@media (max-width: 768px) {
  .hami-bottom-floating-dock {
    bottom: 14px !important;
  }
  .dock-container {
    gap: 3px !important;
    padding: 5px 10px !important;
    overflow-x: auto !important;
    max-width: 94vw !important;
  }
  .dock-item {
    font-size: 0.76rem !important;
    padding: 6px 9px !important;
  }
  .dock-label {
    display: none !important;
  }
  .dock-item.dock-highlight .dock-label {
    display: inline !important;
  }
}



