/* ===== RESPONSIVE ===== */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-copy h1 {
    font-size: 3rem;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .stats {
    justify-content: center;
  }
  
  .steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .category-pill {
    min-width: 360px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .footer-brand img {
    margin: 0 auto;
  }
  
  .footer-social {
    justify-content: center;
  }
}

/* Móviles */
@media (max-width: 768px) {
  /* Ocultar CTAs del appbar en mobile */
  .header-wrap .cta-row { display: none; }
  
  /* Logo responsive */
  .logo img { height: 40px; }
  
  .header-wrap {
    padding-left: 1rem;
  }

  /* Header móvil */
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--darker);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    backdrop-filter: blur(10px);
  }
  
  .nav-menu.open {
    transform: translateY(0);
  }
  
  .header-wrap {
    padding: 1rem 0;
  }
  
  /* Hero móvil */
  .hero {
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height para móviles */
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 70px;
    padding-bottom: 0;
  }
  
  .hero.hero-centered .hero-copy {
    padding: 0 1rem;
  }
  
  .hero.hero-centered .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero.hero-centered .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .hero.hero-centered .stats {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .scroll-indicator {
    bottom: 1.5rem;
  }
  
  .scroll-down {
    width: 45px;
    height: 45px;
  }
  
  .scroll-down svg {
    width: 20px;
    height: 20px;
  }
  
  .hero-indicators { bottom: 1rem; }
  .hero-indicators .dot { width: 10px; height: 10px; }

  .hero-copy h1 {
    font-size: 2.5rem;
  }
  
  .hero-copy p {
    font-size: 1.125rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  /* Productos móvil */
  .category-card { min-width: 85%; }
  .category-icon {
    width: 64px;
    height: 64px;
  }
  .category-icon img {
    width: 40px;
    height: 40px;
  }
  
  .section h2 {
    font-size: 2rem;
  }
  
  /* Testimonios móvil */
  .testimonial-card {
    width: 85%;
    height: auto;
    min-height: 128px;
  }
  
  .testimonial-avatar {
    width: 40px;
    height: 40px;
  }
  
  .testimonial-name-row strong {
    font-size: 0.8rem;
  }
  
  .testimonial-name-row span {
    font-size: 0.7rem;
  }
  
  .testimonial-text p {
    font-size: 0.8rem;
  }
  
  .testimonials-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  /* Why cards responsive */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .why-card {
    padding: 2rem 1.5rem;
  }
  
  .why-icon {
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
  }
  
  .why-card h3 {
    font-size: 1.125rem;
  }
  
  .why-card p {
    font-size: 0.875rem;
  }
  
  /* Promo features responsive */
  .promo-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature {
    padding: 1.5rem 1rem;
  }
  
  .ratings-box {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
  }
  
  .rating-item strong {
    font-size: 2rem;
  }
  
  /* Formulario móvil */
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
  }
  
  /* FAQ móvil */
  .faq-item {
    padding: 1rem;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-copy h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section h2 {
    font-size: 1.75rem;
  }
  
  .category-pill {
    padding: 1.25rem;
  }
  
  .pill-logo {
    width: 56px;
    height: 56px;
  }
  
  .pill-tags span {
    font-size: 0.75rem;
  }
  
  .testimonial-head {
    flex-wrap: wrap;
  }
  
  .stats strong {
    font-size: 2rem;
  }
  
  .step {
    padding: 1.5rem;
  }
  
  .testimonial p {
    font-size: 1rem;
  }
  
  .price {
    font-size: 1.25rem;
  }
}

/* Animaciones de entrada para móviles */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Modo oscuro forzado */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1324;
    --fg: #e5e7eb;
  }
}

/* Alto contraste */
@media (prefers-contrast: high) {
  :root {
    --primary: #b91c1c;
    --primary-dark: #991b1b;
    --muted: #666;
  }
}

/* Impresión */
@media print {
  .site-header,
  .nav-toggle,
  .btn,
  .form-actions {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .section {
    page-break-inside: avoid;
  }
  /* Promo (Protege tu mundo) móvil */
  .section-promo h2 { font-size: 1.75rem; }
  .section-promo p { font-size: 1rem; }
  .promo-actions { flex-direction: column; }
  .promo-features { grid-template-columns: 1fr; }
}