/* ==========================================================================
   ROMA SERVICIO TÉCNICO HELADERAS - ESTILOS RESPONSIVOS & MOBILE OPTIMIZATIONS
   ========================================================================== */

/* Pantallas intermedias (<= 1360px) */
@media (max-width: 1360px) {
  .nav-list {
    gap: 0.35rem;
  }

  .nav-link {
    font-size: 0.78rem;
    gap: 0.2rem;
    padding: 0.3rem 0.25rem;
  }

  .nav-link svg {
    width: 13px;
    height: 13px;
  }

  .btn-header-wa {
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem;
  }
}

/* Laptops, Tablets y Móviles (<= 1220px) */
@media (max-width: 1220px) {
  .nav-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 2.5rem);
  }

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

  .services-accordion-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    gap: 1rem;
  }

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

  .tech-showcase-container {
    gap: 2.5rem;
  }

  .tech-interactive-card {
    grid-template-columns: 1fr;
    padding: 2.5rem;
    gap: 2rem;
  }

  .tech-card-heading {
    font-size: 2.2rem;
  }

  .tech-interactive-pills, .tech-card-text {
    max-width: 100%;
  }

  .commercial-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .before-contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* Tablets y Móviles (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .nav-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 2.5rem;
  }

  .tech-interactive-card {
    padding: 2rem 1.25rem;
    border-radius: 20px;
  }

  .tech-card-heading {
    font-size: 2rem;
  }

  .tech-interactive-pills {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .tech-pill-btn.full-width {
    grid-column: span 1;
  }

  .btn-tech-interactive-wa {
    width: 100%;
    justify-content: center;
  }

  .hero-video-overlay {
    background: linear-gradient(
      180deg,
      rgba(16, 42, 67, 0.94) 0%,
      rgba(16, 42, 67, 0.88) 55%,
      rgba(16, 42, 67, 0.78) 100%
    );
  }

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

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

  .btn-primary-wa, .btn-secondary {
    width: 100%;
  }

  .trust-bar-section {
    margin-top: 0;
  }

  .trust-bar-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .issue-generator-container {
    padding: 1.5rem 1.25rem;
  }

  .issue-chips-grid {
    grid-template-columns: 1fr;
  }

  .equipment-choice-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .service-accordion-trigger {
    padding: 1rem 1.15rem;
  }

  .service-title {
    font-size: 1.05rem;
  }

  .service-icon-box {
    width: 42px;
    height: 42px;
  }

  .service-accordion-inner {
    padding: 0 1.15rem 1.25rem 1.15rem;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .google-rating-banner {
    padding: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .google-badge-left {
    gap: 1rem;
  }

  .btn-view-gmaps {
    width: 100%;
    justify-content: center;
  }

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

  .contact-form-container {
    padding: 1.75rem 1.25rem;
  }

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

  .works-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .works-filters {
    gap: 0.5rem;
  }

  .works-filter-btn {
    font-size: 0.825rem;
    padding: 0.5rem 1rem;
  }

  .btn-toggle-works {
    width: 100%;
    max-width: 360px;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  .works-consult-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem 1.25rem;
    gap: 1.5rem;
  }

  .works-consult-card .btn-primary-wa {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .lightbox-container {
    max-height: 95vh;
    border-radius: 16px;
  }

  .lightbox-img-wrapper {
    height: 48vh;
    padding: 0.5rem;
  }

  .lightbox-footer {
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .btn-lightbox-wa {
    width: 100%;
    justify-content: center;
  }

  .lightbox-nav-btn {
    width: 40px;
    height: 40px;
  }

  .lightbox-nav-btn.prev {
    left: 0.5rem;
  }

  .lightbox-nav-btn.next {
    right: 0.5rem;
  }

  .lightbox-close-btn {
    top: 0.75rem;
    right: 0.75rem;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }

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

  /* Mostrar barra fija inferior en móviles */
  .mobile-bottom-bar {
    display: block;
  }

  /* Ajustar botón flotante de WhatsApp para no solapar la barra fija */
  .floating-wa-btn {
    bottom: 5.5rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }

  .floating-wa-btn svg {
    width: 28px;
    height: 28px;
  }

  /* Espacio inferior adicional en el footer para no tapar contenido */
  .site-footer {
    padding-bottom: 6rem;
  }
}

/* Pantallas pequeñas (<= 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .commercial-section .section-title {
    font-size: 1.85rem;
  }

  .chat-bubble {
    max-width: 95%;
  }

  .modal-box {
    padding: 1.75rem 1.25rem;
  }
}

/* ==========================================================================
   OPTIMIZACIÓN PARA SMART TV, 4K UHD Y PANTALLAS GRANDES (10-FOOT UI)
   ========================================================================== */

/* Pantallas Full HD Grandes y Smart TV 1080p (>= 1600px) */
@media (min-width: 1600px) {
  html {
    font-size: 18px;
  }

  :root {
    --max-width: 1520px;
    --header-height: 90px;
  }

  .container {
    max-width: 1520px;
  }

  .site-header .container {
    max-width: 1600px;
  }

  .nav-list {
    gap: 0.85rem;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.5rem;
  }

  .btn-header-wa {
    font-size: 0.9rem;
    padding: 0.65rem 1.25rem;
  }

  .hero-section {
    min-height: 85vh;
    padding-top: calc(var(--header-height) + 5rem);
    padding-bottom: 6rem;
  }

  .hero-title {
    font-size: 3.6rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: 2.5rem;
  }

  .trust-bar-section {
    margin-top: -3.5rem;
  }

  .trust-bar-container {
    padding: 2rem 2.5rem;
    border-radius: 24px;
  }

  .tech-showcase-container {
    max-width: 1380px;
    gap: 4.5rem;
  }

  .tech-interactive-card {
    padding: 4rem 4.5rem;
    border-radius: 36px;
    gap: 3.5rem;
  }

  .tech-card-heading {
    font-size: 3.1rem;
  }

  .tech-card-text {
    font-size: 1.125rem;
    max-width: 600px;
  }

  .tech-interactive-pills {
    max-width: 600px;
    gap: 1rem;
  }

  .tech-pill-btn {
    padding: 0.8rem 1.35rem;
    font-size: 0.95rem;
  }

  .btn-tech-interactive-wa {
    padding: 1.1rem 2.2rem;
    font-size: 1.1rem;
  }

  .services-accordion-grid {
    max-width: 1300px;
    gap: 1.75rem;
  }

  .service-accordion-trigger {
    padding: 1.5rem 1.75rem;
  }

  .service-title {
    font-size: 1.35rem;
  }

  .service-icon-box {
    width: 54px;
    height: 54px;
  }

  .commercial-section {
    padding: 7rem 0;
  }

  .commercial-section .section-title {
    font-size: 3rem;
  }
}

/* Smart TVs 4K / UHD y Pantallas Gigantes (>= 2000px) */
@media (min-width: 2000px) {
  html {
    font-size: 22px;
  }

  :root {
    --max-width: 1850px;
    --header-height: 100px;
  }

  .container {
    max-width: 1850px;
  }

  .site-header .container {
    max-width: 1920px;
  }

  .hero-section {
    min-height: 90vh;
    padding-top: calc(var(--header-height) + 6rem);
    padding-bottom: 7rem;
  }

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

  .tech-showcase-container {
    max-width: 1650px;
    gap: 5.5rem;
  }

  .tech-interactive-card {
    padding: 5rem 5.5rem;
    border-radius: 44px;
    gap: 4.5rem;
  }

  .tech-card-heading {
    font-size: 3.6rem;
  }

  .tech-interactive-pills {
    max-width: 700px;
  }
}

/* Modo Televisor Smart TV nativo (>= 2500px o media type tv) */
@media (tv), (min-width: 2500px) {
  html {
    font-size: 26px;
  }

  body {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }
}

/* Soporte para modo de accesibilidad (sin ocultar el video de fondo) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
