/* ============================================================
   responsive.css — Media queries Glasscor-Pádel
   Estrategia: mobile-first con breakpoints en 480, 768, 1024, 1280
   ============================================================ */

/* ── 1280px+ (pantallas grandes) ───────────────────────────── */
@media (min-width: 1280px) {
  :root { --container: 1240px; }
}

/* ── <1024px (tablet landscape y menores) ───────────────────── */
@media (max-width: 1024px) {

  /* Header */
  .main-nav,
  .header-cta .btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Menú móvil */
  .mobile-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-primary);
    z-index: 999;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .mobile-menu.open {
    transform: translateX(0);
  }

  .mobile-menu-link {
    display: block;
    padding: 0.85rem 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: rgba(255,255,255,0.88);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .mobile-menu-link:hover,
  .mobile-menu-link.active {
    background: rgba(255,255,255,0.08);
    color: var(--color-accent);
  }

  .mobile-menu-section-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    padding: 1rem 1rem 0.3rem;
    margin-top: 0.5rem;
  }

  .mobile-menu-sub {
    padding-left: 1.25rem;
  }

  .mobile-menu-cta {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Grids */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .badge-item:nth-child(2) {
    border-right: none;
  }

  .badge-item:nth-child(1),
  .badge-item:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1.25rem;
    margin-bottom: 0.25rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-img-wrapper {
    max-height: 400px;
  }

  .about-img-wrapper img {
    height: 400px;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ── <768px (tablet portrait y móvil grande) ────────────────── */
@media (max-width: 768px) {

  section {
    padding-block: clamp(2.5rem, 6vw, 4rem);
  }

  .hero {
    min-height: 100svh;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .badges-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .badge-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
  }

  .badge-item:nth-child(3),
  .badge-item:nth-child(4) {
    border-bottom: none;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .quality-logos {
    gap: 1.5rem;
  }

  .quality-logo-item img {
    height: 60px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .footer-legal {
    justify-content: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero-content {
    max-width: 100%;
  }

  .compare-table {
    font-size: 0.85rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.75rem 0.9rem;
  }

  .product-detail-hero {
    height: 260px;
  }

  .product-detail-hero-overlay {
    padding: 1.5rem;
  }

  .whatsapp-float .wa-text {
    display: none;
  }

  .whatsapp-float {
    padding: 0.85rem;
    border-radius: 50%;
  }

  .cookie-inner {
    flex-direction: column;
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
  }

  .tabs-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .tab-btn {
    white-space: nowrap;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .about-grid {
    gap: 2rem;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }
}

/* ── <480px (móvil pequeño) ─────────────────────────────────── */
@media (max-width: 480px) {

  :root {
    --header-h: 64px;
  }

  .hero-title {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-badge {
    font-size: 0.7rem;
  }

  .section-title {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .badges-grid {
    grid-template-columns: 1fr;
  }

  .badge-item {
    flex-direction: row;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-right: none;
  }

  .badge-item:last-child {
    border-bottom: none;
  }

  .badge-icon {
    min-width: 44px;
    min-height: 44px;
  }

  .product-card-img {
    height: 180px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .footer-legal {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .highlight-box {
    padding: 1.5rem 1.25rem;
  }

  .legal-content {
    padding-inline: 1rem;
  }

  .contact-info-card {
    padding: 1.25rem;
  }

  .about-img-wrapper img {
    height: 280px;
  }

  .about-img-badge {
    padding: 0.75rem 1rem;
  }

  .about-img-badge strong {
    font-size: 1.5rem;
  }

  .cookie-modal-box {
    padding: 1.5rem;
  }

  .btn-lg {
    font-size: 1rem;
    padding: 0.9rem 2rem;
  }

  .hero-scroll {
    display: none;
  }

  .breadcrumb {
    font-size: 0.8rem;
  }
}

/* ── Botones flotantes: ocultar texto en móvil ──────────────── */
@media (max-width: 768px) {
  .whatsapp-float,
  .telegram-float {
    padding: 0.7rem;
    border-radius: 50%;
    bottom: auto;
  }

  .whatsapp-float {
    bottom: 1.25rem;
  }

  .telegram-float {
    bottom: 4.5rem;
  }

  .whatsapp-float .wa-text,
  .telegram-float .tg-text {
    display: none;
  }

  .whatsapp-float svg,
  .telegram-float svg {
    width: 28px;
    height: 28px;
  }
}

/* ── Mejoras responsive de elementos nuevos ────────────────── */
@media (max-width: 768px) {
  #back-to-top {
    bottom: 10.5rem;
    left: 1rem;
    width: 40px;
    height: 40px;
  }

  #toast-container {
    right: 0.5rem;
    left: 0.5rem;
    max-width: none;
  }

  .toast { max-width: 100%; }

  #lightbox-prev { left: 0.5rem; }
  #lightbox-next { right: 0.5rem; }

  #lightbox-img {
    max-width: 95vw;
    max-height: 70vh;
  }

  .footer-social { margin-top: 0.75rem; }
}

@media (max-width: 480px) {
  #back-to-top {
    bottom: 12rem;
  }

  #lightbox-prev,
  #lightbox-next {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* ── Impresión ──────────────────────────────────────────────── */
@media print {
  #site-header,
  .whatsapp-float,
  .telegram-float,
  .cookie-banner,
  .cookie-modal,
  .cookie-settings-btn,
  .hamburger,
  .mobile-menu,
  .hero-scroll {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  section {
    page-break-inside: avoid;
  }
}
