/* ============================================================
   SENT | responsive.css
   Estilos responsivos para todos los breakpoints
   ============================================================ */

/* ============================================================
   XL — ≥ 1200px (pantallas grandes)
   ============================================================ */
@media (min-width: 1200px) {
  .hero-title { font-size: 3.75rem; }
  .section-title { font-size: 2.6rem; }
  .orbital-decoration { right: -5%; }
}

/* ============================================================
   LG — ≥ 992px (desktop)
   ============================================================ */
@media (min-width: 992px) {
  /* Dropdown hover en desktop */
  .navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fade-in 0.2s ease;
  }

  .dropdown-menu { margin-top: 0.5rem !important; }
}

/* ============================================================
   MD — ≤ 991px (tablet landscape / desktop pequeño)
   ============================================================ */
@media (max-width: 991px) {
  :root {
    --section-py: 4rem;
  }

  /* Navbar mobile */
  #mainNavbar {
    background: rgba(4, 12, 26, 0.97);
    backdrop-filter: blur(12px);
    padding: 0.85rem 0;
  }

  .navbar-collapse {
    background: rgba(4, 12, 26, 0.98);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 0.75rem;
    backdrop-filter: blur(16px);
  }

  .navbar-nav .nav-link {
    padding: 0.6rem 0.75rem !important;
    border-radius: var(--radius-sm);
  }

  .navbar-nav .nav-link:hover {
    background: var(--blue-subtle);
  }

  .dropdown-menu {
    background: rgba(13, 28, 53, 0.9);
    border: none;
    padding: 0.25rem 0.5rem;
    box-shadow: none;
  }

  /* Navbar CTA */
  .navbar-nav .btn-primary-sent {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  /* Hero */
  .sent-hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-title { font-size: 2.4rem; }

  .orbital-decoration {
    opacity: 0.25;
    width: 400px;
    height: 400px;
    right: -20%;
  }

  .hero-stats { gap: 1.5rem; }

  /* Secciones */
  .section-title, .section-title-dark { font-size: 1.85rem; }

  /* Contact form */
  .contact-form-wrap { padding: 1.75rem; }
}

/* ============================================================
   SM — ≤ 767px (tablet portrait / mobile grande)
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --section-py: 3.5rem;
    --section-py-sm: 2.5rem;
  }

  /* Hero */
  .hero-title { font-size: 2rem; letter-spacing: -0.02em; }
  .hero-subtitle { font-size: 1rem; }

  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn-primary-sent,
  .hero-actions .btn-outline-sent { width: 100%; justify-content: center; }

  .hero-stats { gap: 1.25rem; flex-wrap: wrap; }

  .orbital-decoration { display: none; }

  /* Page hero */
  .page-hero { padding: 120px 0 60px; }

  /* Estadísticas */
  .stats-bar .col-6, .stats-bar .col-md-3 {
    border-right: none !important;
  }

  .stat-value { font-size: 1.8rem; }

  /* Tarjetas */
  .sent-card { padding: 1.5rem; }
  .contact-form-wrap { padding: 1.5rem; }

  /* Blog */
  .blog-img-placeholder { height: 160px; }

  /* Secciones */
  .section-title, .section-title-dark { font-size: 1.65rem; }

  .cta-title { font-size: 1.65rem; }

  /* Footer */
  .footer-top { padding: 3rem 0 2rem; }

  .footer-bottom {
    text-align: center;
  }

  .footer-bottom .text-md-end { text-align: center !important; margin-top: 0.5rem; }

  /* Steps */
  .step-item { flex-direction: column; gap: 0.75rem; }
  .step-number { width: 32px; height: 32px; font-size: 0.75rem; }
}

/* ============================================================
   XS — ≤ 480px (mobile pequeño)
   ============================================================ */
@media (max-width: 480px) {
  .hero-title { font-size: 1.75rem; }

  .hero-stats { gap: 1rem; }
  .hero-stat-value { font-size: 1.35rem; }

  .section-title, .section-title-dark { font-size: 1.5rem; }
  .cta-title { font-size: 1.5rem; }

  .sent-card, .contact-form-wrap { padding: 1.25rem; }

  .btn-primary-sent.btn-lg,
  .btn-outline-sent.btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  .stat-value { font-size: 1.6rem; }

  .blog-card-body { padding: 1.25rem; }
}

/* ============================================================
   UTILITARIOS RESPONSIVE
   ============================================================ */

/* Ajuste de padding de secciones en mobile */
@media (max-width: 767px) {
  .section-dark,
  .section-dark-alt,
  .section-light,
  .section-white {
    padding: var(--section-py) 0;
  }

  .stats-bar { padding: 2rem 0; }

  /* Grid de confianza vertical en mobile */
  .trust-item {
    flex-direction: row;
    gap: 1rem;
  }
}

/* ============================================================
   RESPONSIVE ESPECÍFICO POR PÁGINA
   ============================================================ */

/* Contacto */
@media (max-width: 767px) {
  .contact-info-card { margin-top: 2rem; }
}

/* FAQ */
@media (max-width: 767px) {
  .faq-accordion .accordion-button {
    font-size: 0.9rem;
    padding: 1rem 1.25rem;
  }

  .faq-accordion .accordion-body {
    padding: 0 1.25rem 1.25rem;
  }
}

/* Blog */
@media (max-width: 767px) {
  .blog-sidebar { margin-top: 2.5rem; }
}

/* Código técnico */
@media (max-width: 767px) {
  .code-block { font-size: 0.75rem; padding: 1.25rem; }
}

/* Tabla comparativa */
@media (max-width: 767px) {
  .table-responsive-sent { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .comparison-table { min-width: 500px; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  #mainNavbar, .cta-section, .site-footer, .btn-primary-sent, .btn-outline-sent {
    display: none !important;
  }

  body { background: white; color: black; }
  .sent-hero, .page-hero { background: white; padding: 2rem 0; }
  .section-dark, .section-dark-alt { background: #f0f0f0; }
  .section-title, .card-title { color: black !important; }
  .card-text { color: #333 !important; }
}
