@media (max-width: 1180px) {
  .hero-room-grid { grid-template-columns: 1fr; }
  .hero-room-copy { max-width: 560px; }
  .amenities-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
  :root { --section-space: 72px; }
  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px;
    background: rgba(255, 250, 248, 0.98);
    border: 1px solid rgba(236,216,217,.9);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease;
  }
  .main-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .menu-toggle { display: inline-block; }
  .nav-cta { margin-left: 0; }
  .hero-home, .hero-experience { min-height: 520px; }
  .hero-room { background-position: 62% center; }
  .hero-room-copy { padding: 74px 0; }
  .rooms-grid,
  .footer-grid,
  .gallery-grid-3 { grid-template-columns: 1fr; }
  .footer-contact-list { grid-template-columns: 1fr; }
  .footer-brand { align-items: flex-start; }
}

@media (max-width: 767px) {
  .container { width: min(calc(100% - 28px), var(--container-width)); }
  .header-inner { min-height: 78px; }
  .brand img { width: 44px; height: 44px; }
  .brand span { font-size: .95rem; }
  .hero-content h1, .hero-room-copy h1 { font-size: 3rem; }
  .hero-content p,
  .intro-copy,
  .hero-room-copy p,
  .experience-copy p { font-size: 1rem; line-height: 1.7; }
  .intro-lead { font-size: 2rem; }
  .section-heading h2,
  .cta-section h2 { font-size: 2.35rem; }
  .hero-room { min-height: 500px; background-position: 72% center; }
  .hero-room-copy { max-width: 100%; padding: 56px 0; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-banner { min-height: 300px; }
  .experience-copy h2 { font-size: 2.4rem; }
}

@media (max-width: 520px) {
  :root { --section-space: 62px; }
  .hero-content-left-mobile { text-align: left; }
  .hero-home, .hero-experience { min-height: 460px; }
  .hero-content h1, .hero-room-copy h1 { font-size: 2.5rem; }
  .btn { min-width: 100%; }
  .amenities-grid { grid-template-columns: 1fr; }
  .amenity-card { min-height: 132px; }
  .room-card h3 { font-size: 1.8rem; }
  .experience-banner { min-height: 240px; }
  .experience-copy { padding: 26px 20px; }
  .experience-copy h2 { font-size: 2rem; }
}

/* =========================
   FOOTER MOBILE FIX
   Hotel Rosa Barroco
========================= */

@media (max-width: 768px) {

  /* El footer se apila en una sola columna */
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 24px;
    align-items: stretch;
  }

  /* Cada bloque ocupa todo el ancho */
  .footer-contact-list,
  .footer-brand,
  .footer-map {
    width: 100%;
    max-width: 100%;
  }

  /* Centra mejor el bloque del logo y botón */
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
  }

  /* El botón Reservar ya no se sale */
  .footer-brand .btn,
  .footer-brand .btn-primary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    text-align: center;
  }

  /* El mapa se adapta al ancho del móvil */
  .footer-map {
    display: block;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
  }

  .footer-map img,
  .footer-map iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 240px;
    object-fit: cover;
    border: 0;
  }

  /* Los links de contacto respiran mejor */
  .footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .footer-contact-list a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
    word-break: break-word;
  }

  .footer-contact-list img {
    flex-shrink: 0;
    margin-top: 2px;
  }
}
