/* Desktop/Tablet Scaling */
@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  
  .nav-links {
    display: flex !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    flex-direction: row !important;
    gap: 2rem;
    list-style: none;
  }
  
  .nav-links a {
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: bold;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
  }
  
  .nav-links a:hover {
    color: var(--color-accent);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .step-card {
    margin-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Comprehensive Mobile & Tablet Layout (< 1024px) */
@media (max-width: 1023px) {
  header {
    padding: 0.6rem 1rem !important;
  }

  .logo img {
    height: 52px !important;
  }

  .web-footer-bar {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    padding: 1.25rem 1rem !important;
  }

  .carousel-3d-scene {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    perspective: none !important;
  }

  .carousel-3d-container {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    transform-style: flat !important;
  }

  .carousel-panel {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    padding: 5.5rem 1.2rem 4rem 1.2rem !important;
    scroll-margin-top: 105px !important;
    border: none !important;
    display: block !important;
  }

  #hero-section {
    padding-top: 135px !important;
    padding-bottom: 4rem !important;
    min-height: calc(100vh - 5px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  .intro-split-layout,
  .included-split-layout,
  .how-it-works-layout,
  .faq-split-layout,
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .faq-logo-blanco {
    max-width: 180px !important;
  }

  .faq-question-mark-container {
    padding: 0.5rem 0;
  }

  .contact-top-video-wrapper {
    height: 200px !important;
    margin-bottom: 1.25rem !important;
  }

  .play-btn-circle {
    width: 52px !important;
    height: 52px !important;
  }

  .play-btn-text {
    font-size: 0.95rem !important;
  }

  .step-card-dynamic:nth-child(odd) {
    margin-right: 1.2rem !important;
    margin-left: 0 !important;
  }
  
  .step-card-dynamic:nth-child(even) {
    margin-left: 1.2rem !important;
    margin-right: 0 !important;
  }

  .how-it-works-video-wrapper {
    height: 320px;
    max-height: 340px;
  }

  .intro-photo-wrapper-full,
  .included-photo-wrapper {
    max-height: 350px;
    margin: 1.5rem auto 0 auto;
    max-width: 100%;
    min-height: 250px;
  }

  .included-top-photo-wrapper {
    height: 250px;
    margin: 1rem auto;
  }

  .handwritten-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 0.8rem !important;
  }

  .handwritten-grid-3 li {
    padding: 0.6rem 0.8rem !important;
    min-height: auto !important;
  }

  .handwritten-text {
    font-size: 0.8rem !important;
  }

  h1 {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
  }
  h2 {
    font-size: 1.7rem !important;
    margin-bottom: 1.2rem !important;
  }
  h3 {
    font-size: 1.25rem !important;
  }
  .container {
    padding: 0 1.2rem !important;
  }
  .features-grid-2,
  .features-grid {
    grid-template-columns: 1fr !important;
  }
  .step-card, .feature-card {
    padding: 1rem !important;
    margin-bottom: 0.8rem !important;
  }
  /* Improve spacing for FAQ items on mobile */
  #faq-section div > div {
    margin-bottom: 1.2rem !important;
  }
  /* Prevent horizontal scrolling from long text */
  p, a, li, span {
    word-break: break-word;
  }
  /* Make sure buttons are easy to tap on mobile */
  .btn {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    width: 100%;
    text-align: center;
    max-width: 300px;
    display: inline-block;
  }
  .hero-tags {
    gap: 0.45rem !important;
  }
  .tag {
    padding: 0.35rem 0.8rem !important;
    font-size: 0.8rem !important;
  }
  .hero-subtitle {
    font-size: 0.95rem !important;
  }
}
