/* ============================================
   MODERN EFFECTS - GLASSMORPHISM, GLOW, GRADIENTS
   ============================================ */

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

:root {
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(12px);
  --glow-blue: rgba(10, 203, 255, 0.4);
  --glow-cian: rgba(6, 182, 212, 0.4);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

body {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
.h1,
.h2,
.grad {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Header Glassmorphism Refinement */
.header {
  background: rgba(7, 9, 12, 0.45) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid var(--glass-border) !important;
}

/* Animated Gradient for .grad */
.grad {
  background: linear-gradient(90deg,
      var(--accent),
      #fff,
      var(--accent2),
      var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-flow 4s linear infinite;
}

@keyframes grad-flow {
  to {
    background-position: 200% center;
  }
}

/* Glow Blobs Decorativos */
.glow-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  animation: float-slow 20s infinite alternate ease-in-out;
}

.glow-blob--blue {
  background: var(--glow-blue);
  top: -100px;
  left: -100px;
}

.glow-blob--cian {
  background: var(--glow-cian);
  bottom: -150px;
  right: -100px;
  animation-delay: -5s;
}

@keyframes float-slow {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* Card Modernization (Glassmorphism + Hover) */
.card {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border: 1px solid var(--glass-border) !important;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(10, 203, 255, 0.15) 0%, transparent 80%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

.card:hover {
  transform: translateY(-10px) !important;
  border-color: rgba(10, 203, 255, 0.4) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(10, 203, 255, 0.1) !important;
}

/* CTAs with Glow */
.btn:hover {
  box-shadow: 0 0 20px rgba(245, 196, 0, 0.3) !important;
}

/* STATS INLINE - UNA LÍNEA, COLOR DEL TEMA, PEQUEÑO */

.stats-inline {
  padding: 30px 0;
  background: transparent;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.95rem;
  color: var(--text-primary, #e2e8f0);
}

.stat-icon {
  color: #3b82f6;
  font-weight: 700;
  font-size: 1rem;
}

.stat-number {
  color: #3b82f6;
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 20px;
}

.stat-label {
  color: var(--text-secondary, #94a3b8);
  font-weight: 400;
}

.stat-divider {
  color: #3b82f6;
  opacity: 0.5;
  font-size: 0.8rem;
}

/* BOTÓN VER MÁS DEBAJO DEL CONTENIDO */
.card {
  display: flex;
  flex-direction: column;
}

.card p {
  flex-grow: 1;
}

.card ul {
  margin-bottom: 15px;
}

.card__more {
  margin-top: auto;
  align-self: flex-start;
}

/* MODAL MÁS COMPACTO Y UNIFORME */
.modal__panel {
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal__content {
  padding: 30px;
}

.modal__content h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.modal__content h3 {
  font-size: 1.1rem;
  margin: 20px 0 10px;
  font-weight: 600;
}

.modal__content p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.modal__content ul {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal__content li {
  margin-bottom: 8px;
}

.hero__particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Modal Smooth Transitions */
.modal {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__panel {
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.is-open .modal__panel {
  transform: scale(1);
}

/* Refined Card Interaction */
.card:hover .card__more {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: translateX(5px);
  transition: all 0.3s ease;
}

.card__more {
  transition: all 0.3s ease;
}

/* FOOTER MEJORADO */
.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
  height: 35px;
  margin-bottom: 10px;
}

.footer__brand p {
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer__links h4,
.footer__contact h4 {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: white;
  font-weight: 600;
}

.footer__links a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: #3b82f6;
}

.footer__contact p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* ============================================
   ESTILOS DEL MENSAJE DE ÉXITO - DISEÑO NUEVO
   ============================================ */

.success-message {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-card {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  border: 2px solid #22c55e;
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(34, 197, 94, 0.1);
}

.success-icon-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
  animation: scaleIn 0.5s ease-out 0.2s both;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.success-icon-circle svg {
  color: white;
  stroke-width: 3;
}

.success-title {
  color: #22c55e;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: 'Inter', sans-serif;
}

.success-text {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 35px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.success-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn--whatsapp-success {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn--whatsapp-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn--ghost-success {
  background: transparent;
  color: #e2e8f0;
  padding: 14px 28px;
  border-radius: 12px;
  border: 2px solid #334155;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn--ghost-success:hover {
  border-color: #22c55e;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.05);
}

/* Estado de carga del botón */
.btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn--loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .stats-row {
    gap: 15px;
    flex-direction: column;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    font-size: 0.9rem;
  }

  .footer__content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .success-card {
    padding: 35px 25px;
  }

  .success-title {
    font-size: 1.4rem;
  }

  .success-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn--whatsapp-success,
  .btn--ghost-success {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .success-card {
    padding: 30px 20px;
  }
}

/* UI Enhancements */

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Focus Accessibility */
:focus-visible {
  outline: 2px solid var(--accent, #f5c400);
  outline-offset: 2px;
}

/* Pulse Animation for CTAs */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 196, 0, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(245, 196, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 196, 0, 0);
  }
}

.pulse {
  animation: pulse-glow 2s infinite;
}

/* Enhancing Card Hover */
.card {
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* =========================================
   ASISTENTE VIRTUAL (CHAT "BOOK") ESTILOS MODERNOS
   ========================================= */

/* Botón Flotante Modernizado */
.chatbot-toggle {
  position: fixed;
  right: 30px;
  bottom: 30px;
  /* Bajado un poco para mejor estética */
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, var(--accent, #f5c400) 0%, #ffdf4d 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(245, 196, 0, 0.4);
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: visible;
  /* Para que el aura sea visible */
}

/* Aura / Pulso Moderno */
.chatbot-toggle::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent, #f5c400);
  opacity: 0.6;
  z-index: -1;
  animation: chatbot-aura 2.5s infinite;
}

@keyframes chatbot-aura {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.chatbot-toggle:hover {
  transform: scale(1.1) rotate(12deg);
  box-shadow: 0 15px 40px rgba(245, 196, 0, 0.6);
  background: linear-gradient(135deg, #ffdf4d 0%, var(--accent, #f5c400) 100%);
}

.chatbot-toggle svg {
  color: #0f172a;
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.chatbot-toggle:hover svg {
  transform: scale(1.1);
}

.chatbot-notification {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 14px;
  height: 14px;
  background: #ff3b30;
  border: 2px solid white;
  border-radius: 50%;
  z-index: 10;
  animation: notification-pulse 1.5s infinite;
}

@keyframes notification-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(255, 59, 48, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
  }
}

/* Widget del Chat - Glassmorphism */
.chatbot-widget {
  position: fixed;
  right: 30px;
  bottom: 160px;
  width: 380px;
  height: 550px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

.chatbot-widget.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header */
.chatbot-header {
  background: linear-gradient(135deg, rgba(245, 196, 0, 0.9), rgba(255, 223, 77, 0.9));
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: #0f172a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.chatbot-avatar {
  width: 42px;
  height: 42px;
  background: #0f172a;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5c400;
}

.chatbot-info {
  flex-grow: 1;
}

.chatbot-info h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.chatbot-info p {
  margin: 2px 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chatbot-info p::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.chatbot-close {
  background: rgba(0, 0, 0, 0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  color: #0f172a;
  transition: background 0.2s;
}

.chatbot-close:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* Body */
.chatbot-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.5), transparent);
}

/* Mensajes */
.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  word-wrap: break-word;
  animation: slideUp 0.3s ease-out both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-msg.bot {
  background: rgba(51, 65, 85, 0.8);
  color: #f8fafc;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-msg.user {
  background: var(--accent, #f5c400);
  color: #0f172a;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(245, 196, 0, 0.2);
}

/* Opciones / Botones */
.chat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
  align-self: flex-start;
  width: 100%;
}

.chat-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeIn 0.4s ease-out both;
  text-decoration: none;
  /* Para links */
}

.chat-btn:hover {
  background: rgba(245, 196, 0, 0.1);
  border-color: var(--accent, #f5c400);
  color: var(--accent, #f5c400);
  transform: translateX(5px);
}

.chat-btn::after {
  content: '→';
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.2s;
}

.chat-btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Links especiales (WhatsApp/Externos) */
.wa-link {
  background: rgba(34, 197, 94, 0.1) !important;
  border-color: rgba(34, 197, 94, 0.4) !important;
  color: #4ade80 !important;
  font-weight: 600;
}

.wa-link:hover {
  background: rgba(34, 197, 94, 0.2) !important;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.1);
}

/* Typing Indicator */
.chat-msg.typing {
  background: rgba(51, 65, 85, 0.5);
  padding: 12px 20px;
  width: fit-content;
  display: flex;
  gap: 4px;
  align-items: center;
  min-height: 44px;
}

.chat-msg.typing span {
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  animation: typing 1s infinite ease-in-out;
}

.chat-msg.typing span:nth-child(1) {
  animation-delay: 0s;
}

.chat-msg.typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-msg.typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }

  50% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

/* Scrollbar */
.chatbot-body::-webkit-scrollbar {
  width: 6px;
}

.chatbot-body::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

/* Mobile */
@media (max-width: 480px) {
  .chatbot-widget {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 85vh;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
  }

  .chatbot-widget.active {
    transform: translateY(0);
  }

  .chatbot-toggle {
    bottom: 20px;
    right: 20px;
  }
}

/* Burger icon transformation and mobile menu fixes */
.burger {
  position: relative;
  z-index: 100 !important;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 44px;
  /* Area de contacto mínima Apple/Google */
  min-height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
}

.burger span {
  transition: all 0.3s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Force visibility on mobile with class */
@media (max-width: 640px) {
  .burger {
    display: flex !important;
  }

  .nav {
    display: none !important;
    /* Default hidden */
  }

  .nav.is-visible {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 99 !important;
    position: fixed;
    top: 70px;
    left: 20px;
    right: 20px;
    background: rgba(10, 15, 25, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 30px !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDownFade 0.3s ease-out;
    border-radius: 20px;
  }
}

/* ============================================================
   RESPONSIVE FIXES - PREVENT HORIZONTAL OVERFLOW
   ============================================================ */

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  touch-action: pan-y;
}

.section, 
.hero, 
.footer, 
#main {
  overflow-x: clip !important; /* Evita scroll horizontal SIN crear un contenedor de scroll vertical */
  width: 100%;
  position: relative;
}

/* Ensure the container actually fits the mobile screen */
@media (max-width: 768px) {
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  
  /* Force grid columns to stack */
  .grid--pricing,
  .grid--special,
  .pillars,
  .grid--cards,
  .split,
  .stats-row,
  .contact-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .chatbot-widget {
    width: calc(100% - 30px) !important;
    right: 15px !important;
    left: 15px !important;
    bottom: 90px !important;
  }
  
  /* Decorative layers that might be causing overflow */
  .parallax-layer,
  .glow-blob,
  .hero__particles {
    max-width: 100vw !important;
    overflow: hidden !important;
  }
  
  /* Ensure images in boxes don't overflow */
  img {
    max-width: 100%;
    height: auto;
  }
}

/* ============================================================
   FIX: FINAL SCROLL FLUIDITY & LAYERING
   ============================================================ */

/* Eliminar el efecto de "freno" y superposición entre secciones */
.section {
  position: relative;
  overflow: visible !important; /* CRITICAL: Evita que la sección 'atrape' el scroll del usuario */
  scroll-margin-top: 80px;
  background-color: var(--body-bg, #07090c); /* Asegurar fondo sólido para evitar ver la sección de abajo */
}

/* Jerarquía de capas incremental para evitar que se metan unas debajo de otras */
.hero          { z-index: 10; }
#servicios     { z-index: 20; }
#porque        { z-index: 30; }
#planes        { z-index: 40; }
#stats         { z-index: 50; }
#contacto      { z-index: 60; }
.footer        { z-index: 70; }

/* Contenedores de contenido siempre al frente */
.container, 
.section__head, 
.header {
  position: relative;
  z-index: 100 !important;
}

/* Background decorations always at the bottom */
.parallax-layer, 
.glow-blob, 
.hero__particles, 
.hero__bg {
  z-index: -1 !important;
  pointer-events: none;
}

/* Remove old transition masks that cause clipping */
.section::before,
.section::after {
  content: none !important;
  display: none !important;
}

/* Prevent layout shift during reveal */
[data-reveal] {
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Fix for mobile scroll stutter */
@media (max-width: 768px) {
  .section {
    will-change: auto; /* Evitar que el navegador intente optimizar demasiado y cause saltos */
  }
  
  /* Reducir el movimiento del parallax en móvil para mayor fluidez */
  .parallax-layer {
    opacity: 0.3 !important;
    transform: none !important; /* Desactivar movimiento manual en móvil si causa tirones */
  }
}
