/* ============================================================
   RESPONSIVE — taller_sat.css
   Conserva el diseño visual (carruseles, hero, overlays).
   Solo ajusta dimensiones y layout, nunca oculta imágenes.
   ============================================================ */

@media (max-width: 992px) {

  /* Header */
  .top-header .inner { flex-wrap: wrap; gap: 12px; padding: 10px 16px; }
  .search-bar { order: 3; width: 100%; max-width: 100%; }
  .search-cat { width: 100%; }
  .search-input { flex: 1 1 auto; }

  /* Navbar */
  .navbar .inner { height: auto; min-height: 48px; flex-wrap: wrap; padding: 0; overflow: visible; }
  .nav-links { flex: 1 1 auto; flex-wrap: wrap; height: auto; }
  .nav-links a { height: 44px; font-size: 0.85rem; padding: 0 10px; }
  .nav-search-btn {
    width: 100%; margin-left: 0; border-left: none;
    border-top: 1px solid rgba(255,255,255,.08);
    justify-content: center; padding: 10px 16px; order: 10;
  }
  .nav-search-btn a { display: block; text-align: center; width: 100%; }

  /* Hero */
  .hero-banner { height: 340px; }
  .hero-overlay { padding: 28px 32px; }
  .hero-text h2 { font-size: 38px; }
  .hero-text p  { font-size: 13.5px; max-width: 320px; }

  /* Servicios rápidos: 2 col */
  .services-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* Carruseles: altura más compacta pero siempre visible */
  .carousel-slide { height: 360px; }
  .carousel-btn   { width: 60px; }

  /* Photo grid: 3 col → se mantiene en tablet */
  .photo-grid { gap: 12px; }
  .photo-item { height: 190px; }

  /* Footer */
  .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 32px 16px; }
  .footer-brand { grid-column: 1 / -1; }

  /* Cookie bar */
  .cookie-bar { flex-wrap: wrap; gap: 10px; padding: 12px 16px; justify-content: flex-start; }
  .cookie-bar p { width: 100%; flex: none; text-align: left; }
  .cookie-actions { width: 100%; flex-wrap: wrap; gap: 8px; }
  .cookie-accept, .cookie-reject, .cookie-configure { flex: 1 1 auto; text-align: center; }
}

@media (max-width: 768px) {

  /* Header */
  .top-header .inner { flex-direction: column; align-items: stretch; padding: 10px 14px; }
  .logo { justify-content: center; }
  .contact-info { justify-content: center; }
  .search-bar { flex-direction: column; display: none !important; }
  .search-cat, .search-input, .search-btn { width: 100%; }

  /* Navbar */
  .navbar .inner { height: auto; flex-direction: column; padding: 0; overflow: visible; }
  .nav-cat-dropdown { width: 100%; }
  .nav-cat-btn { width: 100%; height: 48px; justify-content: flex-start; }
  .nav-cat-menu {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    width: 100vw;
    min-width: unset;
    border-radius: 0;
    z-index: 1001;
  }
  .nav-links { flex-direction: column; width: 100%; height: auto; }
  .nav-links a { width: 100%; height: 44px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.08); overflow: hidden; }
  .nav-links a::after { display: none; }
  .nav-search-btn { width: 100%; margin-left: 0; padding: 12px 16px; order: 10; justify-content: center; border-top: 1px solid rgba(255,255,255,.1); border-left: none; }
  .nav-search-btn a { display: block; width: 100%; text-align: center; white-space: normal; }

  /* Page wrapper */
  .page-wrapper { padding: 0 14px; margin: 14px auto 36px; }
  .breadcrumb { font-size: 0.8rem; flex-wrap: wrap; gap: 4px; }
  .section-header { margin-bottom: 20px; }
  .section-header h1 { font-size: 1.5rem; }
  .section-header p  { font-size: 0.88rem; }

  /* Hero: altura reducida pero imagen siempre visible */
  .hero-banner { height: 260px; border-radius: 8px; margin-bottom: 24px; }
  .hero-banner img { object-position: center center; }
  .hero-overlay { padding: 20px 18px; background: linear-gradient(to right, rgba(20,30,50,.8) 0%, rgba(20,30,50,.4) 70%, transparent 100%); }
  .hero-text h2 { font-size: 26px; line-height: 1.1; }
  .hero-text h2 span { display: inline; }
  .hero-text p  { font-size: 12.5px; max-width: 100%; margin-top: 6px; }
  .hero-badge   { font-size: 12px; padding: 8px 14px; margin-top: 10px; }

  /* Block title */
  .block-title { margin-bottom: 16px; gap: 10px; }
  .block-title h2 { font-size: 17px; }
  .block-title-icon { font-size: 16px; }

  /* Servicios rápidos: 2 col */
  .services-row { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 28px; }
  .srv-card { padding: 18px 12px 16px; gap: 10px; }
  .srv-card-icon { width: 46px; height: 46px; font-size: 18px; }
  .srv-card h3 { font-size: 13px; }
  .srv-card p  { font-size: 11.5px; }

  /* Carruseles: altura visible en móvil */
  .carousel-section { margin-bottom: 32px; }
  .carousel-wrapper { border-radius: 8px; }

  /* La slide necesita altura explícita para que la imagen sea visible */
  .carousel-slide { height: 260px; }
  .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;   /* asegura que no haya colapso */
  }

  /* Flechas de navegación */
  .carousel-btn { width: 44px; font-size: 14px; }
  .carousel-btn::before { width: 38px; height: 38px; }

  /* Caption overlay */
  .slide-caption { padding: 28px 14px 14px; }
  .slide-caption strong { font-size: 15px; }
  .slide-caption p { font-size: 11.5px; }

  /* Counter */
  .carousel-counter { font-size: 11px; top: 10px; right: 10px; padding: 4px 8px; }

  /* Dots */
  .carousel-dot { width: 7px; height: 7px; }
  .carousel-dot.active { width: 20px; }

  /* Photo grid: 3 col → 2 col */
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 28px; }
  .photo-item { height: 160px; border-radius: 8px; }
  .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 20px; padding: 24px 14px; }
  .footer-brand { grid-column: auto; }
  .copy-inner { flex-direction: column; gap: 12px; text-align: center; padding: 0 14px; }
  .social-links { justify-content: center; }

  /* Cookie bar */
  .cookie-bar { flex-direction: column; gap: 10px; text-align: center; padding: 14px; }
  .cookie-actions { flex-direction: column; width: 100%; }
  .cookie-accept, .cookie-reject, .cookie-configure { width: 100%; }
}

@media (max-width: 480px) {

  .logo-text { font-size: 0.95rem; }
  .logo-icon img { width: 38px; height: 38px; }

  /* Hero más bajo */
  .hero-banner { height: 210px; }
  .hero-text h2 { font-size: 22px; }
  .hero-text p  { display: none; } /* ocupa demasiado espacio en pantallas muy pequeñas */
  .hero-badge   { margin-top: 8px; font-size: 11px; padding: 6px 12px; }

  /* Servicios rápidos: 1 col */
  .services-row { grid-template-columns: repeat(2, 1fr); }
  .srv-card { padding: 14px 10px 12px; }

  /* Carrusel: altura mínima garantizada */
  .carousel-slide { height: 220px; }
  .carousel-btn { width: 36px; }
  .carousel-btn::before { width: 32px; height: 32px; }
  .carousel-dot { width: 6px; height: 6px; }
  .carousel-dot.active { width: 16px; }
  .slide-caption { padding: 22px 12px 12px; }
  .slide-caption strong { font-size: 13px; }
  .slide-caption p { display: none; }

  /* Photo grid: 2 col en móvil pequeño */
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .photo-item { height: 140px; }

  /* Lightbox */
  .lightbox img { max-width: 96vw; max-height: 80vh; }
  .lightbox-close { font-size: 24px; top: 12px; right: 14px; }

  .footer-logo { flex-direction: column; gap: 8px; }
  .footer-logo-icon img { width: 40px; height: 40px; }
}
