/* ── RESPONSIVE COMPLETO ── */

/* Ocultar botón hamburguesa en desktop */
.nav-toggle {
  display: none;
}

/* TABLET (768px - 1023px) */
@media (max-width: 1023px) {
  nav { padding: 20px 32px; }
  section { padding: 100px 32px; }
  .hero { padding: 0 32px 80px; }
  
  .hero-headline {
    font-size: clamp(48px, 10vw, 80px);
  }
  
  .hero-sub {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  
  .hero-actions {
    align-items: flex-start;
    width: 100%;
  }
  
  .problem-grid,
  .demo-inner,
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .stat-number { font-size: 48px; }
  
  .chat-wrap {
    max-width: 100%;
  }
}

/* MOBILE (< 768px) */
@media (max-width: 767px) {
  /* Reset cursor */
  body { cursor: auto; }
  .cursor { display: none; }
  
  /* NAV - Menú hamburguesa */
  nav {
    padding: 16px 20px;
    flex-wrap: wrap;
  }
  
  /* Menú full screen - Estilo Acunmedya */
  .nav-links {
    display: flex;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    background: rgba(8, 8, 16, 0.98);
    backdrop-filter: blur(20px);
    margin: 0;
    padding: 80px 40px;
    border: none;
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 200;
  }
  
  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links li {
    width: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  
  .nav-links.active li:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
  .nav-links.active li:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
  .nav-links.active li:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
  
  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 32px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    border-bottom: none;
    position: relative;
    transition: color 0.3s ease;
  }
  
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--violet), var(--cyan));
    transition: width 0.3s ease;
  }
  
  .nav-links a:hover {
    color: var(--violet-l);
  }
  
  .nav-links a:hover::after {
    width: 100%;
  }
  
  .nav-cta {
    margin-top: 24px;
    font-size: 14px !important;
    padding: 16px 32px !important;
    background: linear-gradient(135deg, var(--violet), var(--violet-l)) !important;
    border-radius: 2px !important;
  }
  
  .nav-cta::after {
    display: none !important;
  }
  
  /* Botón hamburguesa - Estilo Acunmedya */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px;
    min-width: 48px;
    min-height: 48px;
    z-index: 201;
    position: relative;
  }
  
  .nav-toggle span {
    width: 28px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* HERO */
  .hero {
    padding: 80px 20px 40px;
    min-height: auto;
  }
  
  .hero-content {
    padding-top: 60px;
  }
  
  .hero-headline {
    font-size: clamp(36px, 12vw, 56px);
    line-height: 0.95;
    margin-bottom: 24px;
  }
  
  .hero-badge {
    font-size: 10px;
    padding: 6px 12px;
    margin-bottom: 20px;
  }
  
  .hero-desc {
    font-size: 15px;
    max-width: 100%;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 12px;
  }
  
  .scroll-hint {
    display: none;
  }
  
  /* MARQUEE */
  .marquee-item {
    font-size: 11px;
  }
  
  /* SECCIONES */
  section {
    padding: 60px 20px;
  }
  
  .section-label {
    font-size: 10px;
    margin-bottom: 16px;
  }
  
  .section-label::before {
    width: 20px;
  }
  
  /* PROBLEMAS */
  .problem-headline {
    font-size: clamp(28px, 8vw, 40px);
  }
  
  .stat {
    padding: 24px 0;
  }
  
  .stat-number {
    font-size: 36px;
  }
  
  .stat-label {
    font-size: 13px;
  }
  
  /* DEMO */
  .demo-text h2 {
    font-size: clamp(28px, 8vw, 40px);
  }
  
  .chat-wrap {
    margin: 0 -20px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .chat-messages {
    min-height: 200px;
    max-height: 250px;
  }
  
  /* PRICING */
  .pricing-headline {
    font-size: clamp(28px, 8vw, 40px);
  }
  
  .price-card {
    padding: 32px 24px;
  }
  
  .price-amount {
    font-size: 48px;
  }
  
  .price-currency {
    font-size: 20px;
    margin-top: 8px;
  }
  
  .price-features li {
    font-size: 13px;
  }
  
  /* CTA */
  .cta-section {
    padding: 60px 20px;
    text-align: center;
  }
  
  .cta-headline {
    font-size: clamp(28px, 8vw, 40px);
    text-align: center;
  }
  
  .cta-sub {
    text-align: center;
    font-size: 15px;
    max-width: 100%;
  }
  
  .cta-actions {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
  }
  
  .cta-actions .btn-primary,
  .cta-actions .btn-ghost {
    width: 100%;
    max-width: 300px;
    text-align: center;
    justify-content: center;
  }
  
  /* FOOTER */
  footer {
    padding: 32px 20px;
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }
  
  .footer-links a {
    padding: 8px 4px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* COOKIE BANNER */
  #cookie-banner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 16px;
  }
  
  /* TABLA COMPARATIVA - Apilada en móvil */
  #comparativa > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  #comparativa > div[style*="grid-template-columns: 1fr 1fr"] > div {
    padding: 24px !important;
  }
  
  #comparativa > div[style*="grid-template-columns: 1fr 1fr"] ul li {
    font-size: 14px !important;
  }
  
  /* FAQ - Mejor espaciado */
  .faq-layout {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  
  .faq-sticky {
    position: relative !important;
    top: 0 !important;
    font-size: clamp(28px, 8vw, 40px) !important;
  }
  
  .faq-q {
    font-size: 15px !important;
    padding: 20px 0 !important;
  }
  
  .faq-a {
    font-size: 14px !important;
  }
  
  /* SERVICIOS - Grid apilado */
  .services-list {
    grid-template-columns: 1fr !important;
  }
  
  .service-item {
    padding: 28px 24px !important;
  }
  
  /* CONTACTO - Layout apilado */
  section.problem > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  
  section.problem > div[style*="padding: 0 56px"] {
    padding: 0 20px !important;
  }
  
  /* DEMO - Iconos y botones */
  .demo-features {
    grid-template-columns: 1fr !important;
  }
  
  .suggestion-btn {
    font-size: 13px !important;
    padding: 12px 16px !important;
  }
  
  /* DEMO MOCKUP - Mobile */
  .phone-frame {
    max-width: 280px;
  }
  
  .chat-preview-messages {
    min-height: 160px;
    padding: 16px;
  }
  
  .chat-preview-bubble {
    font-size: 12px;
    padding: 10px 14px;
  }
  
  /* Back to top - Mobile */
  .back-to-top {
    bottom: 100px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

/* PEQUEÑO MOBILE (< 375px) */
@media (max-width: 374px) {
  .hero-headline {
    font-size: 32px;
  }
  
  .btn-primary,
  .btn-ghost {
    font-size: 11px;
    padding: 12px 16px;
  }
  
  .price-amount {
    font-size: 40px;
  }
}

/* TOUCH DEVICES - Desactivar cursor personalizado */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
  .cursor { display: none; }
}

/* ── ICONOS MINIMALISTAS ── */
.stat-icon {
  color: var(--violet);
  margin-bottom: 16px;
}

.stat-icon svg {
  stroke: url(#violet-gradient);
}

/* Aumentar tamaño de texto de párrafo */
.hero-desc,
.stat-label,
.demo-text p,
.service-desc,
.price-features li,
.faq-a,
.cta-sub,
footer {
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .hero-desc,
  .stat-label,
  .demo-text p,
  .service-desc,
  .price-features li,
  .faq-a,
  .cta-sub,
  footer {
    font-size: 15px;
  }
}

/* ── COMPONENTES QUE NO AFECTAN DESKTOP ── */
/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  font-size: 20px;
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--violet);
  border-color: var(--violet);
  transform: translateY(-2px);
}

/* Demo mockup - No afecta desktop porque usa clases nuevas */
.demo-mockup {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-frame {
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 25px 80px rgba(123,97,255,0.15), 0 0 0 1px rgba(123,97,255,0.1);
  max-width: 320px;
}

.phone-notch {
  width: 80px;
  height: 20px;
  background: var(--bg);
  border-radius: 0 0 12px 12px;
  margin: 0 auto 8px;
}

.chat-preview {
  background: var(--bg3);
  border-radius: 24px;
  overflow: hidden;
}

.chat-preview-header {
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-preview-avatar {
  width: 40px;
  height: 40px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.chat-preview-name {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.chat-preview-status {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}

.chat-preview-messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
}

.chat-preview-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-preview-bubble.bot {
  background: var(--bg);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  color: var(--text);
}

.chat-preview-bubble.user {
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  color: white;
}

.chat-preview-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.chat-preview-input span {
  color: var(--muted);
  font-size: 13px;
}

.chat-preview-send {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
}

.demo-badge {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--muted);
}
