/* Estilos generales */
body {
  background-image: url('./imagenes/textura-de-carton.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  font-family: 'Libre Baskerville', serif;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(239, 237, 228, 0.7);
  z-index: -1;
}

main {
  flex: 1;
}

/* Cabecera */
header {
  background: rgba(239, 237, 228, 0.85);
  color: #5e534bc2;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.header-contenido {
  background-image: url('./imagenes/d2fd84ff-86a9-45e1-bacf-a52285aa83c9~rt_auto-rs_1024.webp');
  background-size: cover;
  background-position: center top;
  opacity: 0.9;
  padding: 40px 0 50px;
  position: relative;
  z-index: 3;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-capa {
  background: rgba(239, 237, 228, 0.85);
  padding: 40px 20px;
  width: 100%;
}

/* Efecto degradado */
header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom,
              rgba(239, 237, 228, 0) 0%,
              rgba(239, 237, 228, 0.7) 60%,
              rgba(239, 237, 228, 1) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Títulos */
header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  letter-spacing: 3px;
  color: #4a4238;
  font-weight: 500;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.1);
  margin-bottom: 10px;
  font-family: 'Libre Baskerville', serif;
  text-transform: uppercase;
  line-height: 1.2;
}

.fecha-boda {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin: 15px 0 25px;
  color: #6b6359;
  font-weight: 400;
  letter-spacing: 1.5px;
  font-style: italic;
  padding: 0 10px;
}

/* Contador regresivo */
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(15px, 3vw, 30px);
  margin-top: 25px;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.countdown-number {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  color: #4a4238;
  font-weight: 600;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-label {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  text-transform: uppercase;
  color: #6b6359;
  letter-spacing: 1px;
}

/* Barra superior móvil */
.mobile-topbar {
  display: none;
  background-color: #EFEDE4;
  padding: 15px;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid #d9c3b2;
  box-sizing: border-box;
  height: 60px;
}

/* Botón menú hamburguesa */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.menu-toggle:hover {
  background-color: rgba(195, 157, 117, 0.1);
}

.menu-toggle:focus {
  outline: 2px solid #c7a982;
  outline-offset: 2px;
}

.hamburger {
  width: 24px;
  height: 3px;
  background: #4b3c2f;
  border-radius: 3px;
  transition: all 0.3s ease;
  position: relative;
  transform-origin: center;
  margin: 0 auto;
}

.menu-toggle.activo .hamburger:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.activo .hamburger:nth-child(2) {
  opacity: 0;
}

.menu-toggle.activo .hamburger:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.topbar-title {
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: #3a2e25;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Navegación */
nav {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  background: rgba(239, 237, 228, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
}

.nav-link {
  color: #6b6359;
  text-decoration: none;
  margin: 0 clamp(15px, 2vw, 25px);
  font-weight: 500;
  letter-spacing: 1px;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  position: relative;
  padding: 8px 0;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #c7a982;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #3a2e25;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: #4a4238;
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
  background-color: #3a2e25;
  height: 3px;
}

/* Foto home */
.foto-home {
  display: block;
  width: min(90%, 800px);
  max-width: 800px;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.foto-home.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sección info boda */
.info-boda {
  text-align: center;
  margin: 50px auto;
  max-width: min(90%, 800px);
  padding: 0 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.info-boda.visible {
  opacity: 1;
  transform: translateY(0);
}

.fecha-lugar {
  margin-bottom: 35px;
  letter-spacing: 1.2px;
}

.fecha {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: #3a2e25;
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.lugar {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #5e534b;
  font-style: italic;
  letter-spacing: 0.8px;
  line-height: 1.4;
}

/* Botones */
.btn-rsvp, .btn-volver, .btn-historia {
  display: inline-block;
  background-color: #d9c3b2;
  color: #3a2e25;
  padding: clamp(12px, 2vw, 14px) clamp(25px, 3vw, 35px);
  font-size: clamp(1.1rem, 1.5vw, 1.2rem);
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  border: 2px solid #c7a982;
  letter-spacing: 0.8px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  font-weight: 500;
  margin-top: 10px;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-rsvp:hover, .btn-volver:hover, .btn-historia:hover {
  background-color: #c7a982;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.btn-rsvp:focus, .btn-volver:focus, .btn-historia:focus {
  outline: 2px solid #4a4238;
  outline-offset: 2px;
}

.btn-historia {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
}

/* Secciones */
section {
  padding: clamp(40px, 6vw, 60px) 5%;
  max-width: min(90%, 800px);
  margin: auto;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
  scroll-margin-top: 80px;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

section h2 {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin-bottom: 30px;
  letter-spacing: 1px;
  color: #3a2e25;
  font-weight: 600;
}

/* Sección historia */
#historia p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Sección evento */
.detalles-evento {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.detalle {
  flex: 1 1 calc(25% - 20px);
  min-width: 150px;
  background: rgba(239, 237, 228, 0.9);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.detalle h3 {
  color: #4a4238;
  margin-bottom: 10px;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}

.detalle p {
  margin: 8px 0;
  color: #5e534b;
  line-height: 1.4;
}

/* Galería */
.grid-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.galeria-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
  aspect-ratio: 1;
}

.galeria-img:hover {
  transform: scale(1.03);
}

.galeria-img:focus {
  outline: 2px solid #c7a982;
  outline-offset: 2px;
}

/* Formulario confirmación */
.form-rsvp {
  max-width: min(90%, 500px);
  margin: 30px auto 0;
  background: #EFEDE4;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #4a4238;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d9c3b2;
  border-radius: 4px;
  font-family: 'Libre Baskerville', serif;
  background: #f9f5f1;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid #c7a982;
  border-color: transparent;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Pie de página */
footer {
  background: #e4d1c0;
  text-align: center;
  padding: 30px 20px;
  font-size: 1rem;
  color: #3a2e25;
  letter-spacing: 0.8px;
  margin-top: 40px;
}

.footer-contacto {
  margin-top: 15px;
  font-size: 0.9rem;
}

/* Página historia */
.header-historia {
  background: #EFEDE4;
  text-align: center;
  padding: clamp(60px, 8vw, 80px) 20px clamp(40px, 6vw, 60px);
  position: relative;
}

.titulo-historia {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #4a4238;
  margin-bottom: 10px;
}

.subtitulo-historia {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #6b6359;
  font-style: italic;
}

.timeline {
  position: relative;
  max-width: min(90%, 800px);
  margin: 40px auto;
  padding: 0 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  background-color: #d9c3b2;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.momento {
  padding: 20px;
  position: relative;
  width: 42%;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.momento.visible {
  opacity: 1;
  transform: translateY(0);
}

.momento-izquierda {
  left: 0;
  text-align: right;
}

.momento-derecha {
  left: 50%;
  text-align: left;
}

.fecha-momento {
  color: #c7a982;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.titulo-momento {
  color: #4a4238;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.descripcion-momento {
  color: #5e534b;
  line-height: 1.5;
  font-size: 0.95rem;
}

.galeria-historia {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  max-width: min(90%, 800px);
  margin: 40px auto;
  padding: 0 20px;
}

.foto-historia {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.foto-historia.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-historia {
  text-align: center;
  padding: 30px;
  background: #e4d1c0;
  margin-top: 40px;
}

.btn-volver {
  margin-bottom: 20px;
}

/* ========== LIGHTBOX ========== */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.mostrar {
  display: flex;
  opacity: 1;
}

.lightbox-contenido {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox-imagen {
  max-width: 100%;
  max-height: calc(90vh - 60px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-cerrar {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 50%;
  z-index: 10001;
}

.lightbox-cerrar:hover {
  background: #d9c3b2;
  color: #3a2e25;
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(217, 195, 178, 0.8);
  border: none;
  color: #3a2e25;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
  min-height: 44px;
  min-width: 44px;
}

.lightbox-nav:hover {
  background: #d9c3b2;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-contador {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 20px;
  border-radius: 20px;
  font-family: 'Libre Baskerville', serif;
}

/* ========== RESPONSIVE ========== */

/* Tablets */
@media (max-width: 1024px) {
  .detalle {
    flex: 1 1 calc(50% - 20px);
    min-width: 180px;
  }
  
  .grid-galeria {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .galeria-img {
    height: 200px;
  }
}

/* Móviles */
@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  .mobile-topbar {
    display: flex;
  }

  .header-contenido {
    padding: 30px 0 40px;
    min-height: 250px;
  }

  .header-capa {
    padding: 30px 15px;
  }

  header::after {
    height: 60px;
  }

  header {
    margin-top: 0;
    padding-top: 30px;
  }

  /* Menú móvil */
  nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    height: calc(100vh - 60px);
    background: rgba(239, 237, 228, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    z-index: 999;
    overflow-y: auto;
    transition: all 0.4s ease;
    transform: translateY(-20px);
    opacity: 0;
  }

  nav.activo {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link {
    margin: 10px 0;
    font-size: 1.2rem;
    padding: 12px 25px;
    width: 80%;
    text-align: center;
    border-bottom: 1px solid rgba(195, 157, 117, 0.3);
    white-space: normal;
  }

  .foto-home {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    margin: 0 auto 20px;
    aspect-ratio: 4/3;
  }

  .info-boda {
    margin: 30px auto;
    padding: 0 15px;
  }

  .detalle {
    flex: 1 1 100%;
    min-width: 100%;
  }

  /* Timeline móvil */
  .timeline::before {
    left: 30px;
  }

  .momento {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    text-align: left;
    margin-bottom: 30px;
  }

  .momento-izquierda, .momento-derecha {
    left: 0;
  }

  .grid-galeria {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .galeria-img {
    height: 150px;
  }

  .galeria-historia {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .foto-historia {
    height: 150px;
  }

  .form-rsvp {
    padding: 20px;
    margin: 20px auto 0;
  }

  /* Lightbox responsive */
  .lightbox-contenido {
    max-width: 95vw;
    max-height: 95vh;
    padding: 10px;
  }
  
  .lightbox-cerrar {
    top: 10px;
    right: 10px;
    font-size: 2rem;
    width: 40px;
    height: 40px;
  }
  
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-contador {
    bottom: 10px;
    font-size: 1rem;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .countdown {
    gap: 10px;
  }

  .countdown-item {
    min-width: 60px;
  }

  .grid-galeria {
    grid-template-columns: 1fr;
  }

  .galeria-historia {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .momento {
    padding-left: 50px;
    padding-right: 15px;
  }

  .detalle {
    padding: 15px;
  }
  
  .lightbox-nav {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  
  .lightbox-cerrar {
    width: 35px;
    height: 35px;
    font-size: 1.8rem;
  }
}

/* Navegación activa en móviles */
@media (max-width: 768px) {
  .nav-link.active {
    background-color: rgba(195, 157, 117, 0.1);
    border-radius: 8px;
  }
}

/* Asegurar que las imágenes sean responsivas */
img {
  max-width: 100%;
  height: auto;
}

/* Mejoras de accesibilidad */
button, 
a, 
input, 
select, 
textarea {
  font-size: 16px; /* Evita zoom en iOS */
}

/* ========== PÁGINA ALOJAMIENTO ========== */

.contenido-alojamiento {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hotel-principal {
  background: rgba(239, 237, 228, 0.9);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hotel-destacado {
  margin-bottom: 20px;
}

.destacado-badge {
  background: #c7a982;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
}

.hotel-detalles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
  align-items: start;
}

.hotel-imagen {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* CORRECCIÓN PARA IMAGEN VERTICAL */
.hotel-imagen img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain; /* Cambiado de cover a contain para ver imagen completa */
  border-radius: 8px;
  max-height: 500px; /* Limitar altura máxima */
}

.hotel-beneficios {
  margin: 20px 0;
}

.hotel-beneficios ul {
  list-style: none;
  padding: 0;
}

.hotel-beneficios li {
  padding: 8px 0;
  color: #5e534b;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hotel-beneficios li:before {
  content: "✓";
  color: #c7a982;
  font-weight: bold;
}

.hotel-reserva {
  background: #e4d1c0;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.otros-alojamientos {
  margin: 50px 0;
}

.grid-alojamientos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.alojamiento-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  border: 2px solid #e4d1c0;
  display: flex;
  flex-direction: column;
}

.alojamiento-card h3 {
  color: #4a4238;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.ubicacion {
  color: #6b6359;
  margin: 10px 0;
  font-size: 0.95rem;
}

.descripcion {
  color: #5e534b;
  margin: 10px 0;
  line-height: 1.5;
  flex: 1;
  font-size: 0.9rem;
}

.btn-reserva {
  display: inline-block;
  background-color: #d9c3b2;
  color: #3a2e25;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 2px solid #c7a982;
  font-weight: 500;
  margin-top: 15px;
  text-align: center;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-reserva:hover {
  background-color: #c7a982;
  color: white;
}

.transporte-info {
  margin: 50px 0;
}

.transporte-opciones {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.transporte-item {
  background: rgba(239, 237, 228, 0.7);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.transporte-item h3 {
  color: #4a4238;
  margin-bottom: 15px;
}

.mapa-section {
  margin: 50px 0;
}

.mapa-contenedor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.lugares-lista {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lugar-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lugar-icon {
  font-size: 1.5rem;
  color: #c7a982;
  min-width: 30px;
}

.mapa-placeholder {
  background: #f9f5f1;
  border: 2px dashed #d9c3b2;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  text-align: center;
  color: #6b6359;
  padding: 20px;
}

/* Tabla de precios */
.hotel-precios {
  background: #f9f5f1;
  padding: 20px;
  border-radius: 8px;
  margin: 25px 0;
  border: 2px solid #e4d1c0;
}

.hotel-precios h3 {
  color: #4a4238;
  margin-bottom: 15px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
}

.tabla-precios {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.fila-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 2px solid #d9c3b2;
  font-weight: 600;
  color: #4a4238;
  text-align: center;
  font-size: 0.85rem;
}

.fila-precio {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e4d1c0;
  text-align: center;
  font-size: 0.85rem;
}

.fila-precio:last-child {
  border-bottom: none;
}

.col-tipo {
  text-align: left;
  color: #5e534b;
  font-weight: 500;
  line-height: 1.3;
}

.col-precio {
  color: #4a4238;
  font-weight: 600;
  line-height: 1.3;
}

.nota-precios {
  text-align: center;
  color: #6b6359;
  font-style: italic;
  margin: 0;
  font-size: 0.8rem;
}

/* Mapa interactivo */
.mapa-interactivo {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 2px solid #e4d1c0;
}

.mapa-nota {
  text-align: center;
  color: #6b6359;
  font-style: italic;
  margin: 10px 0 0 0;
  padding: 0 15px 15px;
  font-size: 0.85rem;
}

.mapa-interactivo iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
}

/* Responsive alojamiento */
@media (max-width: 768px) {
  .hotel-detalles {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .mapa-contenedor {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contenido-alojamiento {
    padding: 20px 15px;
  }
  
  .hotel-principal {
    padding: 20px;
  }

  /* CORRECCIÓN RESPONSIVE PARA IMAGEN VERTICAL */
  .hotel-imagen {
    order: -1; /* Poner imagen arriba en móviles */
    display: flex;
    justify-content: center;
  }
  
  .hotel-imagen img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .grid-alojamientos {
    grid-template-columns: 1fr;
  }
  
  .transporte-opciones {
    grid-template-columns: 1fr;
  }

  /* Tabla de precios responsive */
  .hotel-precios {
    padding: 15px;
  }
  
  .fila-header,
  .fila-precio {
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: center;
    font-size: 0.82rem;
  }
  
  .col-tipo {
    text-align: center;
    font-weight: 600;
    padding-bottom: 4px;
    border-bottom: 1px dashed #d9c3b2;
    margin-bottom: 4px;
  }
  
  .fila-header {
    display: none;
  }
  
  .fila-precio {
    background: rgba(255, 255, 255, 0.7);
    padding: 12px 8px;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #e4d1c0;
  }

  .mapa-interactivo iframe {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .hotel-precios {
    padding: 12px 8px;
  }
  
  .fila-precio {
    padding: 10px 6px;
    font-size: 0.8rem;
  }
  
  .nota-precios {
    font-size: 0.75rem;
  }

  .mapa-interactivo iframe {
    height: 300px;
  }
}

/* Corrección para páginas específicas */
.contenido-alojamiento section {
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: none !important;
  display: block !important;
}

.contenido-alojamiento .hotel-principal,
.contenido-alojamiento .otros-alojamientos,
.contenido-alojamiento .transporte-info,
.contenido-alojamiento .mapa-section {
  opacity: 1;
  transform: translateY(0);
  display: block !important;
}