/* ============================================ */
/* OPTIMIZACIÓN DE IMÁGENES - RESPONSIVE */
/* ============================================ */

/* Todas las imágenes tendrán proporción fija */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Carrusel - imágenes con proporción 16:9 */
.carousel .slides .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* Tarjetas de resumen - imágenes cuadradas */
.summary img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
}

/* Galería de imágenes - proporción 4:3 */
.gallery-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}

/* Cards de habitaciones - proporción 16:9 */
.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
}

/* Habitaciones en el sistema de reservas */
.room-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ============================================ */
/* AJUSTES PARA MÓVIL - IMÁGENES PROPORCIONALES */
/* ============================================ */

@media (max-width: 820px) {
  /* Tarjetas de resumen en móvil */
  .summary img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 200px;
  }
  
  /* Galería en móvil */
  .gallery-grid img {
    aspect-ratio: 1 / 1;
  }
  
  /* Carrusel en móvil */
  .carousel {
    min-height: auto;
  }
  
  .carousel .slides {
    min-height: auto;
  }
  
  .carousel .slides .slide img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 520px) {
  /* Ajustes para móviles muy pequeños */
  .summary img {
    max-height: 180px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid img {
    aspect-ratio: 1 / 1;
  }
  
  .room-card img {
    aspect-ratio: 4 / 3;
  }
}

/* ============================================ */
/* HOSPEDAJE LA TERMINAL - ESTILO COMPLETO      */
/* CORREGIDO: Logo móvil + Carrusel responsive  */
/* ============================================ */

/* ============================================ */
/* VARIABLES Y RESET */
/* ============================================ */
:root {
  --bg: #fefaf5;
  --menu-bg: rgba(255,255,255,0.1);
  --accent: #c67b44;
  --accent-dark: #a55f31;
  --accent-light: #e6c7a8;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --menu-width: 260px;
  --transition-time: 0.5s;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.34, 1.2, 0.64, 1);
  --glass: rgba(255, 248, 240, 0.85);
  --glass-blur: blur(12px);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 32px rgba(0,0,0,0.12);
  font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #fff9f2 0%, #fef5e8 50%, #fff9f2 100%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Textura sutil de fondo */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" opacity="0.03"><path d="M70 30 L90 30 L90 50 L70 50 Z M110 70 L130 70 L130 90 L110 90 Z M30 110 L50 110 L50 130 L30 130 Z M150 150 L170 150 L170 170 L150 170 Z" fill="none" stroke="%23c67b44" stroke-width="2"/><circle cx="100" cy="100" r="40" fill="none" stroke="%23c67b44" stroke-width="1.5"/></svg>');
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
}

/* ============================================ */
/* APP CONTAINER */
/* ============================================ */
.app {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ============================================ */
/* NAVEGACIÓN LATERAL - CORREGIDA */
/* ============================================ */
nav.side {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--menu-width);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  border-right: 1px solid rgba(198, 123, 68, 0.15);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--transition-smooth);
  overflow-y: auto;
}

.side .menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  flex: 1;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: transparent;
  border: none;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
  width: 100%;
  justify-content: flex-start;
  transition: all 0.3s var(--transition-smooth);
  font-size: 15px;
  position: relative;
}

.nav-btn:hover {
  background: rgba(198, 123, 68, 0.1);
  transform: translateX(4px);
  color: var(--accent);
}

.nav-btn.active {
  background: linear-gradient(135deg, rgba(198, 123, 68, 0.15), rgba(198, 123, 68, 0.05));
  color: var(--accent);
  border-left: 3px solid var(--accent);
  border-radius: 12px 8px 8px 12px;
}

.nav-btn .icon {
  font-size: 22px;
  color: var(--accent);
}

/* CORREGIDO: Logo y brand más arriba y compacto */
.brand {
  text-align: center;
  padding-top: 16px;
  padding-bottom: 16px;
  margin-top: auto;
  border-top: 1px solid rgba(198, 123, 68, 0.2);
}

.brand img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
  border: 2px solid white;
}

.brand .name {
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
  text-align: center;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.5px;
}

.brand .tag {
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
}

/* ============================================ */
/* CONTENIDO PRINCIPAL */
/* ============================================ */
main.content {
  margin-left: calc(var(--menu-width) + 32px);
  padding: 32px 40px 60px 40px;
  width: calc(100% - var(--menu-width) - 64px);
  min-height: 100vh;
  transition: all var(--transition-time) var(--transition-smooth);
  position: relative;
  z-index: 1;
}

/* Estilo base de las páginas */
section.page {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255,255,255,0.5);
  transition: all 0.4s var(--transition-smooth);
  will-change: transform, opacity;
}

section.page:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ============================================ */
/* ANIMACIONES DE TRANSICIÓN */
/* ============================================ */
.page.exit {
  animation: pageExit 0.5s var(--transition-smooth) forwards !important;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.page.enter {
  animation: pageEnter 0.6s var(--transition-bounce) forwards !important;
  display: block !important;
}

@keyframes pageExit {
  0% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
  30% { opacity: 0.8; transform: scale(0.98) translateY(-8px); filter: blur(2px); }
  100% { opacity: 0; transform: scale(0.95) translateY(20px); filter: blur(4px); visibility: hidden; }
}

@keyframes pageEnter {
  0% { opacity: 0; transform: scale(0.96) translateY(30px); filter: blur(8px); }
  40% { opacity: 0.6; transform: scale(0.98) translateY(-5px); filter: blur(2px); }
  70% { opacity: 0.9; transform: scale(1.01) translateY(2px); filter: blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

main.content {
  transition: all 0.4s var(--transition-smooth);
}

.transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(198, 123, 68, 0.05);
  backdrop-filter: blur(2px);
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s var(--transition-smooth);
}

.transition-overlay.active {
  opacity: 1;
}

/* ============================================ */
/* GALERÍA ROTATIVA (CARRUSEL) - CORREGIDO */
/* ============================================ */
.gallery-row {
  display: flex;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.carousel {
  flex: 1;
  min-width: 300px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #2c2c2c;
  box-shadow: var(--shadow-md);
}

.carousel .slides {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Proporción 16:9 */
  background: #2c2c2c;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--transition-smooth);
  opacity: 0;
  background: #2c2c2c;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dots {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  border: 2px solid rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}

.dot.active {
  transform: scale(1.3);
  background: var(--accent);
  border-color: var(--accent);
}

.gallery-desc {
  flex: 1;
  min-width: 250px;
  padding: 28px;
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  border: 1px solid rgba(198, 123, 68, 0.1);
}

.gallery-desc h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--accent);
  margin: 0;
}

.gallery-desc p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* ============================================ */
/* TARJETAS DE RESUMEN - IMÁGENES */
/* ============================================ */
.summary {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-radius: 20px;
  background: white;
  transition: all 0.4s var(--transition-bounce);
  border: 1px solid rgba(198, 123, 68, 0.1);
  cursor: pointer;
}

.summary img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.4s var(--transition-smooth);
  aspect-ratio: 1 / 1;
}

.summary:hover img {
  transform: scale(1.05);
}

.summary .body {
  flex: 1;
}
/* ============================================ */
/* TARJETAS DE RESUMEN */
/* ============================================ */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.summary {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-radius: 20px;
  background: white;
  transition: all 0.4s var(--transition-bounce);
  border: 1px solid rgba(198, 123, 68, 0.1);
  cursor: pointer;
  will-change: transform;
}

.summary:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(198, 123, 68, 0.3);
}

.summary img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.4s var(--transition-smooth);
}

.summary:hover img {
  transform: scale(1.05);
}

.summary .body {
  flex: 1;
}

.summary .body h4 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-family: 'Playfair Display', serif;
  color: var(--text);
}

.summary .body p {
  margin: 0 0 12px 0;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.5;
}

.summary .body small {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s var(--transition-smooth);
}

.summary:hover .body small {
  gap: 8px;
}

/* ============================================ */
/* BOTONES Y COMPONENTES */
/* ============================================ */
.cta-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--transition-bounce);
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  font-family: 'Montserrat', sans-serif;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
}

.cta-button.secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.cta-button.secondary:hover {
  background: rgba(198, 123, 68, 0.1);
  transform: translateY(-2px);
}

/* ============================================ */
/* SISTEMA DE RESERVAS */
/* ============================================ */
.rooms-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.room-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s var(--transition-smooth);
  border: 1px solid rgba(198, 123, 68, 0.1);
  cursor: pointer;
  position: relative;
}

.room-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.room-card.selected {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(198, 123, 68, 0.2);
}

.room-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.room-card .room-info {
  padding: 20px;
}

.room-card h4 {
  margin: 0 0 8px 0;
  font-family: 'Playfair Display', serif;
  color: var(--accent);
}

.room-card p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.room-card .price {
  font-weight: 700;
  color: var(--accent);
  font-size: 18px;
  margin-top: 12px;
}

.room-card .capacity {
  display: inline-block;
  background: rgba(198, 123, 68, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin-top: 8px;
}

.room-card .stock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.room-card .stock-badge.low-stock {
  background: #dc3545;
}

.booking-step {
  animation: fadeIn 0.5s var(--transition-smooth);
}

.booking-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
  background: white;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(198, 123, 68, 0.1);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(198, 123, 68, 0.2);
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(198, 123, 68, 0.1);
}

.payment-methods {
  display: flex;
  gap: 20px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.payment-method {
  flex: 1;
  min-width: 200px;
  background: white;
  padding: 24px;
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  border: 1px solid rgba(198, 123, 68, 0.1);
}

.payment-method:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.payment-method.selected {
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, #fff, rgba(198, 123, 68, 0.05));
}

.payment-method .material-icons {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 12px;
}

.payment-method h4 {
  margin: 12px 0 8px;
  font-family: 'Playfair Display', serif;
}

.payment-method p {
  font-size: 13px;
  color: var(--text-light);
}

.reservation-summary {
  background: white;
  padding: 24px;
  border-radius: 20px;
  margin: 24px 0;
  border: 1px solid rgba(198, 123, 68, 0.1);
}

.reservation-summary h3 {
  margin-bottom: 16px;
  color: var(--accent);
  font-family: 'Playfair Display', serif;
}

#summaryContent {
  line-height: 1.8;
}

.booking-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ============================================ */
/* ESTILOS PARA MIS RESERVAS */
/* ============================================ */
.reservations-history {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.reservation-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(198, 123, 68, 0.1);
  transition: all 0.3s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.reservation-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.reservation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}

.reservation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(198, 123, 68, 0.2);
}

.reservation-id {
  font-family: monospace;
  font-size: 14px;
  background: rgba(198, 123, 68, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  color: var(--accent);
  font-weight: 600;
}

.reservation-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #28a745;
  color: white;
}

.reservation-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.reservation-detail-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.reservation-detail-item .material-icons {
  color: var(--accent);
  font-size: 20px;
}

.reservation-detail-item .detail-content {
  flex: 1;
}

.reservation-detail-item .detail-label {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.reservation-detail-item .detail-value {
  font-weight: 500;
  color: var(--text);
}

.reservation-payment {
  margin-top: 16px;
  padding: 12px;
  background: rgba(198, 123, 68, 0.05);
  border-radius: 12px;
  display: inline-block;
}

.empty-reservations {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 20px;
}

.reservations-stats {
  margin-bottom: 24px;
}

.stats-card {
  background: linear-gradient(135deg, white, rgba(198, 123, 68, 0.05));
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(198, 123, 68, 0.2);
}

.stats-card .material-icons {
  font-size: 48px;
  color: var(--accent);
  opacity: 0.8;
}

.stats-card h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.stats-card p {
  margin: 0;
  color: var(--text-light);
  font-size: 14px;
}

.reservation-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(198, 123, 68, 0.1);
  text-align: right;
  color: var(--text-light);
  font-size: 12px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================ */
/* SECCIONES INTERNAS */
/* ============================================ */
.card-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.card {
  flex: 1;
  min-width: 260px;
  background: white;
  padding: 20px;
  border-radius: 20px;
  transition: all 0.3s var(--transition-smooth);
  border: 1px solid rgba(198, 123, 68, 0.1);
  will-change: transform;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
  transition: transform 0.3s var(--transition-smooth);
}

.card:hover img {
  transform: scale(1.02);
}

.card h4 {
  margin: 0 0 12px 0;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--accent);
}

.card p {
  color: var(--text-light);
  line-height: 1.5;
  font-size: 14px;
  margin: 0;
}

/* ============================================ */
/* FORMULARIO DE CONTACTO */
/* ============================================ */
.contact-form {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(198, 123, 68, 0.2);
  background: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  transition: all 0.3s var(--transition-smooth);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(198, 123, 68, 0.1);
  transform: translateY(-1px);
}

.contact-form textarea {
  grid-column: 1 / -1;
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  grid-column: 1 / -1;
  justify-self: end;
}

/* ============================================ */
/* GALERÍA DE IMÁGENES */
/* ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  transition: all 0.3s var(--transition-bounce);
  cursor: pointer;
  will-change: transform;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

/* ============================================ */
/* MAPA Y UBICACIÓN */
/* ============================================ */
.map-container {
  margin-top: 20px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--transition-smooth);
}

.map-container:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.01);
}

/* ============================================ */
/* FOOTER */
/* ============================================ */
footer.site-footer {
  margin-top: 32px;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,248,240,0.95));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(198, 123, 68, 0.15);
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  transition: all 0.3s var(--transition-smooth);
}

footer.site-footer div:first-child strong {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--accent);
}

.socials {
  display: flex;
  gap: 12px;
  align-items: center;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(198, 123, 68, 0.1);
  text-decoration: none;
  color: var(--accent);
  transition: all 0.3s var(--transition-bounce);
}

.socials a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px) scale(1.05);
}

.footer-right {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.small-links {
  display: flex;
  gap: 12px;
  color: var(--text-light);
  font-size: 13px;
  flex-wrap: wrap;
}

.small-links a {
  text-decoration: none;
  color: var(--text-light);
  transition: color 0.3s var(--transition-smooth);
}

.small-links a:hover {
  color: var(--accent);
}

.whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 50px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s var(--transition-bounce);
  box-shadow: var(--shadow-sm);
}

.whatsapp:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-md);
  gap: 12px;
}

/* ============================================ */
/* HAMBURGER MENÚ (MÓVIL) */
/* ============================================ */
.hamburger {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1200;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.3s var(--transition-bounce);
}

.hamburger:hover {
  transform: scale(1.05);
}

/* ============================================ */
/* ANIMACIÓN REVEAL AL HACER SCROLL */
/* ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--transition-bounce);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================ */
/* RESPONSIVE COMPLETO - IMÁGENES */
/* ============================================ */

@media (max-width: 1000px) {
  :root {
    --menu-width: 220px;
  }
  
  main.content {
    margin-left: calc(var(--menu-width) + 24px);
    width: calc(100% - var(--menu-width) - 48px);
    padding: 24px;
  }
  
  .summary img {
    width: 120px;
    height: 120px;
  }
  
  .carousel .slides {
    padding-bottom: 56.25%;
  }
}

@media (max-width: 820px) {
  .hamburger {
    display: block;
  }
  
  nav.side {
    transform: translateX(-110%);
    transition: transform 0.4s var(--transition-bounce);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1200;
    height: 100vh;
    width: 280px;
    max-width: 85%;
    align-items: flex-start;
    padding: 20px;
  }
  
  nav.side.open {
    transform: translateX(0%);
  }
  
  main.content {
    margin-left: 0;
    width: 100%;
    padding: 20px;
    padding-top: 70px;
  }
  
  /* CORRECCIÓN: Imágenes en móvil */
  .gallery-row {
    flex-direction: column;
  }
  
  .carousel {
    width: 100%;
  }
  
  .carousel .slides {
    padding-bottom: 56.25%;
  }
  
  .summary {
    flex-direction: column;
    text-align: center;
  }
  
  .summary img {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
  }
  
  .gallery-desc {
    width: 100%;
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .gallery-grid img {
    aspect-ratio: 1 / 1;
  }
  
  .card img {
    aspect-ratio: 16 / 9;
  }
  
  .room-card img {
    aspect-ratio: 16 / 9;
  }
  
  footer.site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .footer-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .card-grid {
    flex-direction: column;
  }
  
  .rooms-container {
    grid-template-columns: 1fr;
  }
  
  .payment-methods {
    flex-direction: column;
  }
  
  .booking-actions {
    flex-direction: column;
  }
  
  .booking-actions button {
    width: 100%;
  }
  
  @keyframes pageExit {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); visibility: hidden; }
  }
  
  @keyframes pageEnter {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 520px) {
  main.content {
    padding: 16px;
    padding-top: 70px;
  }
  
  section.page {
    padding: 20px;
  }
  
  h1.section-title {
    font-size: 26px;
  }
  
  /* Imágenes en móvil pequeño */
  .summary img {
    max-width: 160px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .gallery-grid img {
    aspect-ratio: 1 / 1;
    height: auto;
  }
  
  .carousel .slides {
    padding-bottom: 75%; /* 4:3 para móvil más compacto */
  }
  
  .card img {
    aspect-ratio: 4 / 3;
  }
  
  .room-card img {
    aspect-ratio: 4 / 3;
  }
  
  .nav-btn {
    padding: 10px 14px;
    font-size: 14px;
  }
  
  .brand img {
    width: 55px;
    height: 55px;
  }
  
  .footer-right {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .contact-form button {
    width: 100%;
    justify-self: stretch;
  }
  
  .booking-details {
    padding: 16px;
  }
}
/* ============================================ */
/* ACCESIBILIDAD Y UTILIDADES */
/* ============================================ */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(198, 123, 68, 0.4);
  outline-offset: 3px;
  border-radius: 8px;
}

.footer-link {
  transition: none !important;
  transform: none !important;
}

.page[style*="display: none"] {
  display: none;
}

.page {
  will-change: transform, opacity;
}

/* ============================================ */
/* REDES SOCIALES - ÍCONOS MODERNOS */
/* ============================================ */
.socials {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.social-icon:hover::before {
  width: 100%;
  height: 100%;
}

.social-svg {
  transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
  position: relative;
  z-index: 1;
}

.social-icon:hover .social-svg {
  transform: scale(1.1);
}

.social-icon.instagram {
  background: linear-gradient(135deg, #feda77, #d62976, #962fbf, #4f5bd5);
  background-size: 200% 200%;
  color: white;
  box-shadow: 0 4px 12px rgba(214, 41, 118, 0.3);
}

.social-icon.instagram:hover {
  background-position: 100% 100%;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(214, 41, 118, 0.4);
}

.social-icon.facebook {
  background: linear-gradient(135deg, #1877f2, #0c63d4);
  color: white;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.social-icon.facebook:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.social-icon.twitter {
  background: linear-gradient(135deg, #000000, #1a1a1a);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-icon.twitter:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #1a1a1a, #000000);
}

.social-icon.whatsapp-icon {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.social-icon.whatsapp-icon:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border-radius: 50px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
  font-size: 14px;
}

.whatsapp:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  gap: 12px;
}

.social-icon {
  position: relative;
}

.social-icon::after {
  content: attr(aria-label);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  backdrop-filter: blur(4px);
  font-family: 'Montserrat', sans-serif;
  z-index: 10;
}

.social-icon:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 820px) {
  .socials {
    gap: 12px;
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  
  .social-svg {
    width: 20px;
    height: 20px;
  }
  
  .social-icon::after {
    display: none;
  }
  
  .whatsapp {
    padding: 8px 20px;
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .socials {
    gap: 10px;
  }
  
  .social-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  
  .social-svg {
    width: 18px;
    height: 18px;
  }
}