/* ==========================================================================
   Apart Hotel Patagonia Sur — estilos.css
   Paleta: Pino Patagónico (#1e3d34), Arena Andina (#8c5b2a), Lino (#f6f8f7)
   Tipografías: Prata (títulos) + Urbanist (cuerpo)
   ========================================================================== */

:root {
  --primario: #1e3d34;
  --primario-hover: #152b25;
  --secundario: #8c5b2a;
  --secundario-hover: #754b22;
  --fondo: #f6f8f7;
  --fondo-alt: #eef2f0;
  --tarjeta: #ffffff;
  --borde: #dce4e0;
  --texto: #182320;
  --texto-suave: #556460;
  --texto-tenue: #7a8884;
  --estrella: #d97706;
  --sombra: 0 4px 20px rgba(30, 61, 52, 0.08);
  --sombra-grande: 0 12px 36px rgba(30, 61, 52, 0.14);
}

/* Regla obligatoria */
[hidden] {
  display: none !important;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--fondo);
  color: var(--texto);
  font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--primario);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.contenedor {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.centro {
  text-align: center;
}

/* Tipografía */
h1, h2, h3, h4 {
  font-family: 'Prata', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--texto);
  line-height: 1.25;
}

/* Parrafos chicos: regla obligatoria .chico:not(.btn) */
.chico:not(.btn) {
  font-size: 13px;
  line-height: 1.4;
  color: var(--texto-suave);
}

/* ==========================================================================
   Barra superior fija
   ========================================================================== */
#barra {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: rgba(246, 248, 247, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
}

.barra-marca {
  display: flex;
  flex-direction: column;
}

.barra-logo {
  font-family: 'Prata', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--primario);
  letter-spacing: 0.02em;
}

.barra-rubro {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--texto-suave);
  font-weight: 600;
}

/* ==========================================================================
   Botones (Contraste verificado >= 4,5:1)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Urbanist', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primario {
  background-color: var(--primario);
  color: #ffffff !important;
  border-color: var(--primario);
}

.btn-primario:hover {
  background-color: var(--primario-hover);
  border-color: var(--primario-hover);
  color: #ffffff !important;
}

.btn-borde {
  background-color: transparent;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-borde:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff !important;
}

.seccion .btn-borde {
  color: var(--primario) !important;
  border-color: var(--primario);
}

.seccion .btn-borde:hover {
  background-color: var(--primario);
  color: #ffffff !important;
}

.btn.chico {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 6px;
}

.btn-grande {
  padding: 14px 28px;
  font-size: 16px;
}

/* ==========================================================================
   Portada / Hero (con margen superior para no quedar bajo la barra fija)
   ========================================================================== */
#portada {
  position: relative;
  margin-top: 64px;
  min-height: 480px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.filtro-oscuro {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 33, 28, 0.72) 0%, rgba(19, 33, 28, 0.90) 100%);
}

.portada-contenido {
  position: relative;
  z-index: 2;
  max-width: 640px;
  color: #ffffff;
}

.kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #e5c39c;
  margin-bottom: 12px;
}

.portada-contenido h2 {
  font-size: 38px;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 10px;
}

.bajada {
  font-size: 18px;
  color: #e2ece8;
  font-weight: 500;
  margin-bottom: 20px;
}

.calificacion {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 6px 16px;
  margin-bottom: 28px;
  font-size: 14px;
  color: #ffffff;
}

.estrella {
  color: #f5b041;
  font-size: 16px;
}

.rating-valor {
  font-weight: 700;
}

.sep {
  opacity: 0.6;
}

.portada-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ==========================================================================
   Secciones
   ========================================================================== */
.seccion {
  padding: 56px 0;
}

.seccion-tarjetas {
  background-color: var(--fondo-alt);
}

.encabezado-seccion {
  text-align: center;
  margin-bottom: 36px;
}

.subtitulo {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--secundario);
  display: block;
  margin-bottom: 6px;
}

.encabezado-seccion h3 {
  font-size: 28px;
  color: var(--texto);
}

.aclaracion-galeria {
  font-size: 14px;
  color: var(--texto-suave);
  margin-top: 8px;
}

/* ==========================================================================
   Grilla de Información
   ========================================================================== */
.grilla-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.tarjeta-info {
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--sombra);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tarjeta-info:hover {
  transform: translateY(-2px);
  box-shadow: var(--sombra-grande);
}

.icono-info {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

.info-texto strong {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--texto-suave);
  margin-bottom: 4px;
}

.info-texto p {
  font-size: 16px;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 8px;
  line-height: 1.35;
}

.enlace-accion {
  font-size: 13px;
  font-weight: 700;
  color: var(--primario);
  display: inline-block;
}

.enlace-accion:hover {
  color: var(--primario-hover);
  text-decoration: underline;
}

.bloque-consulta {
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
}

.bloque-consulta h4 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--primario);
}

.nota-consulta {
  font-size: 15px;
  color: var(--texto-suave);
}

/* ==========================================================================
   Galería de fotos
   ========================================================================== */
.grilla-fotos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 680px) {
  .grilla-fotos {
    grid-template-columns: repeat(4, 1fr);
  }
}

.foto {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--borde);
  padding: 0;
  background-color: #ddd;
  cursor: pointer;
  box-shadow: var(--sombra);
  transition: transform 0.2s, box-shadow 0.2s;
}

.foto:hover {
  transform: scale(1.02);
  box-shadow: var(--sombra-grande);
}

.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* ==========================================================================
   Visor de fotos (Modal)
   ========================================================================== */
.visor {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 22, 0.95);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.visor.abierto {
  display: flex;
}

.visor img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.visor-pie {
  color: #e2ece8;
  margin-top: 14px;
  font-size: 15px;
  text-align: center;
}

.visor-cerrar {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}

.visor-cerrar:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* ==========================================================================
   Ubicación
   ========================================================================== */
.direccion-destacada {
  font-size: 20px;
  font-weight: 600;
  color: var(--primario);
  margin-bottom: 20px;
}

.acciones-ubicacion {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   Instalar App
   ========================================================================== */
.instalar {
  background: var(--tarjeta);
  border-top: 1px solid var(--borde);
  border-bottom: 1px solid var(--borde);
}

#icono-app {
  border-radius: 20px;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(30, 61, 52, 0.15);
}

.instalar h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.instalar p {
  color: var(--texto-suave);
  max-width: 520px;
  margin: 0 auto 24px;
  font-size: 15px;
  line-height: 1.5;
}

.instalar-ayuda {
  margin-top: 16px !important;
  padding: 12px 18px;
  background: var(--fondo-alt);
  border-radius: 8px;
  border: 1px solid var(--borde);
  display: inline-block;
  text-align: left;
}

/* ==========================================================================
   Pie de página
   ========================================================================== */
#pie {
  background-color: var(--primario);
  color: #ffffff;
  padding: 48px 0 36px;
}

.pie-contenido {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (min-width: 600px) {
  .pie-contenido {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.pie-info h4 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 6px;
}

.pie-rubro {
  color: #d1ded9;
  font-size: 14px;
  margin-bottom: 10px;
}

.pie-info p {
  font-size: 14px;
  color: #e2ece8;
  margin-bottom: 4px;
}

.pie-info a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
}

.pie-info a:hover {
  color: #e5c39c;
}

.pie-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
}

@media (min-width: 600px) {
  .pie-legal {
    border-top: none;
    padding-top: 0;
    text-align: right;
  }
}

.pie-legal .chico:not(.btn) {
  color: #b0c2bc;
  margin-bottom: 4px;
}

/* ==========================================================================
   Aviso de instalación flotante
   ========================================================================== */
.aviso-instalar {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 440px;
  margin: 0 auto;
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1500;
  animation: deslizarArriba 0.35s ease-out;
}

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

.aviso-instalar img {
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
}

.aviso-cuerpo {
  flex: 1;
  min-width: 0;
}

.aviso-titulo {
  font-weight: 700;
  font-size: 14px;
  color: var(--texto);
  line-height: 1.25;
}

.aviso-sub.chico:not(.btn) {
  font-size: 12px;
  color: var(--texto-suave);
  line-height: 1.3;
  margin-top: 2px;
}

.aviso-cerrar {
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--texto-tenue);
  cursor: pointer;
  padding: 4px;
}

.aviso-cerrar:hover {
  color: var(--texto);
}

/* ==========================================================================
   Mobile adjustments (390px)
   ========================================================================== */
@media (max-width: 480px) {
  .portada-contenido h2 {
    font-size: 28px;
  }
  .bajada {
    font-size: 16px;
  }
  .portada-acciones {
    flex-direction: column;
  }
  .btn-grande {
    width: 100%;
  }
  .aviso-instalar {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
}