/* Complejo Los Merinos — Hotel (Brandsen 439, Bahía Blanca)
   Identidad: Lino arena + Nogal tostado + Azul pizarra acero.
   Tipografía: Cinzel (títulos) + Work Sans (lectura limpia).
   Contraste verificado WCAG AA >= 4.5:1 en todos los botones y enlaces. */

:root {
  --fondo: #f8f7f4;
  --fondo-seccion: #f0ede6;
  --tarjeta: #ffffff;
  --tarjeta-hover: #fcfbfa;
  --borde: #e2ded6;
  --azul-pizarra: #1e3a5f;
  --azul-hover: #152c48;
  --azul-acero: #2d5a88;
  --nogal: #635642;
  --nogal-claro: #8a6d4d;
  --texto: #1a202c;
  --texto-suave: #4b5563;
  --whatsapp: #15803d;
  --whatsapp-hover: #166534;
  --estrella: #b45309;
  --enlace: #1e3a5f;
  --enlace-hover: #2d5a88;
  --sombra: 0 8px 24px rgba(30, 58, 95, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
}

body {
  margin: 0;
  background-color: var(--fondo);
  color: var(--texto);
  font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Tipografías de encabezados */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', Georgia, serif;
  color: var(--azul-pizarra);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 0;
}

/* Enlaces siempre estilizados con contraste verificado */
a {
  color: var(--enlace);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover, a:focus-visible {
  color: var(--enlace-hover);
  text-decoration: underline;
}

.enlace-accion {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--azul-pizarra);
}

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

/* Textos chicos que no sean botones (regla dura obligatoria) */
.chico:not(.btn) {
  font-size: 0.875rem;
  color: var(--texto-suave);
}

/* Botones con contraste medido:
   .btn-primario (#ffffff sobre #1e3a5f) -> 11.5:1
   .btn-whatsapp (#ffffff sobre #15803d) -> 5.01:1
   .btn-borde (#ffffff sobre overlay oscuro) -> > 10:1 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none !important;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
  line-height: 1.2;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primario {
  background-color: var(--azul-pizarra);
  color: #ffffff;
}

.btn-primario:hover, .btn-primario:focus-visible {
  background-color: var(--azul-hover);
  color: #ffffff;
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #ffffff;
}

.btn-whatsapp:hover, .btn-whatsapp:focus-visible {
  background-color: var(--whatsapp-hover);
  color: #ffffff;
}

.btn-borde {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-borde:hover, .btn-borde:focus-visible {
  background-color: #ffffff;
  color: var(--azul-pizarra);
}

.btn-grande {
  padding: 0.95rem 1.8rem;
  font-size: 1.05rem;
}

.btn.chico {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

/* Barra superior fija */
#barra {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: rgba(248, 247, 244, 0.94);
  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 1.25rem;
  z-index: 1000;
}

.barra-marca {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.barra-logo {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--azul-pizarra);
  letter-spacing: -0.01em;
}

.barra-rubro {
  font-size: 0.8rem;
  color: var(--nogal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

@media (max-width: 480px) {
  .barra-rubro {
    display: none;
  }
}

/* Portada */
#portada {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: calc(64px + 3rem) 1.25rem 4rem 1.25rem;
}

.filtro-oscuro {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.72) 0%, rgba(17, 24, 39, 0.88) 100%);
}

.portada-contenido {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.kicker {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: #f0ede6;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.portada-contenido h1 {
  font-size: clamp(2.2rem, 6.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem 0;
  color: #ffffff;
}

.bajada {
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  color: #e2e8f0;
  margin: 0 0 1.25rem 0;
  font-weight: 400;
}

.calificacion {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  padding: 0.45rem 1rem;
  margin-bottom: 1.8rem;
}

.estrella {
  color: #facc15;
  font-size: 1.1rem;
}

.rating-valor {
  font-weight: 700;
  color: #ffffff;
}

.sep {
  color: #cbd5e1;
  opacity: 0.7;
}

.valoraciones-texto {
  font-size: 0.9rem;
  color: #f1f5f9;
}

.portada-acciones {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Secciones generales */
.seccion {
  padding: 4.5rem 1.25rem;
}

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

.contenedor {
  max-width: 1040px;
  margin: 0 auto;
}

.contenedor.centro {
  text-align: center;
}

.encabezado-seccion {
  margin-bottom: 2.2rem;
}

.encabezado-seccion.centro {
  text-align: center;
}

.subtitulo {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nogal-claro);
  display: block;
  margin-bottom: 0.35rem;
}

.encabezado-seccion h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.4rem;
}

/* Grilla de información */
.grilla-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

.tarjeta-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(30, 58, 95, 0.12);
}

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

.info-texto strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--azul-pizarra);
  font-family: 'Cinzel', Georgia, serif;
}

.info-texto p {
  margin: 0 0 0.4rem 0;
  color: var(--texto-suave);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Bloque de horarios */
.bloque-horarios {
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  box-shadow: var(--sombra);
}

.bloque-horarios h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  color: var(--azul-pizarra);
}

.nota-horarios {
  margin: 0;
  color: var(--texto-suave);
  font-size: 0.95rem;
}

/* Galería */
.aclaracion-galeria {
  color: var(--texto-suave);
  margin-top: 0;
  font-size: 0.95rem;
}

.grilla-fotos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

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

.foto:hover, .foto:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(30, 58, 95, 0.16);
}

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

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

/* Visor modal */
.visor {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  flex-direction: column;
}

.visor.abierto {
  display: flex;
}

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

.visor-pie {
  color: #f1f5f9;
  margin-top: 1rem;
  font-size: 0.95rem;
  text-align: center;
}

.visor-cerrar {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease;
}

.visor-cerrar:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Dónde estamos */
.direccion-destacada {
  font-size: 1.25rem;
  color: var(--azul-pizarra);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

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

/* Instalar app */
.seccionar-instalar {
  background-color: var(--fondo);
}

.instalar img#icono-app {
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.15);
  margin-bottom: 1.2rem;
}

.instalar h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  margin-bottom: 0.6rem;
}

.instalar p {
  max-width: 540px;
  margin: 0 auto 1.5rem auto;
  color: var(--texto-suave);
}

.instalar-ayuda {
  margin-top: 1.25rem !important;
  padding: 0.9rem 1.2rem;
  background: var(--fondo-seccion);
  border-radius: 8px;
  border: 1px solid var(--borde);
  display: inline-block;
  color: var(--texto) !important;
}

/* Pie de página */
#pie {
  background-color: #152233;
  color: #e2e8f0;
  padding: 3.5rem 1.25rem 2.5rem 1.25rem;
  border-top: 1px solid #23344d;
}

.pie-contenido {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.pie-info h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.pie-rubro {
  color: #cbd5e1;
  margin: 0 0 0.8rem 0;
  font-weight: 500;
}

.pie-info p {
  margin: 0.25rem 0;
  color: #94a3b8;
  font-size: 0.95rem;
}

.pie-info a {
  color: #93c5fd;
}

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

.pie-legal {
  max-width: 380px;
  text-align: right;
}

.pie-legal p {
  margin: 0.25rem 0;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .pie-legal {
    text-align: left;
  }
}

/* Aviso flotante de instalación */
.aviso-instalar {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 440px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1px solid var(--borde);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 1500;
  animation: deslizarArriba 0.3s ease-out;
}

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

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

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

.aviso-titulo {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--azul-pizarra);
  margin: 0;
  line-height: 1.25;
}

.aviso-sub {
  margin: 0.15rem 0 0 0;
  line-height: 1.2;
}

.aviso-cerrar {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--texto-suave);
  cursor: pointer;
  padding: 0 0.35rem;
  line-height: 1;
}

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