/* Alemê — Café bar (Av. Alem 85, Bahía Blanca)
   Identidad cálida, artesanal y luminosa de café bar.
   Paleta: lino marfil, cobre tostado, terracota profunda, carbón espresso.
   Tipografía: DM Serif Display (títulos con carácter) + Work Sans (lectura moderna y limpia). */

:root {
  --fondo: #faf8f5;
  --fondo-seccion: #f4eee6;
  --tarjeta: #ffffff;
  --tarjeta-hover: #fcfaf8;
  --borde: #e5ded5;
  --cobre: #a84825;
  --cobre-hover: #8f3a1c;
  --cobre-claro: #c25934;
  --cobre-suave: rgba(168, 72, 37, 0.08);
  --texto: #1c1917;
  --texto-suave: #5c5650;
  --texto-blanco: #ffffff;
  --enlace: #a84825;
  --enlace-hover: #8f3a1c;
  --sombra: 0 10px 28px rgba(28, 25, 23, 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: 'DM Serif Display', Georgia, serif;
  color: var(--texto);
  line-height: 1.25;
  font-weight: 400;
  margin-top: 0;
}

/* Enlaces siempre estilizados con la paleta de la app */
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(--cobre);
}

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

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

/* Botones con contraste medido: texto #ffffff sobre #a84825 da 5.80: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-cobre {
  background-color: var(--cobre);
  color: var(--texto-blanco);
}

.btn-cobre:hover, .btn-cobre:focus-visible {
  background-color: var(--cobre-hover);
  color: var(--texto-blanco);
}

.btn-borde {
  background-color: transparent;
  color: var(--cobre);
  border: 2px solid var(--cobre);
}

.btn-borde:hover, .btn-borde:focus-visible {
  background-color: var(--cobre);
  color: var(--texto-blanco);
}

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

.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(250, 248, 245, 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: 'DM Serif Display', Georgia, serif;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--texto);
}

.barra-rubro {
  font-size: 0.8rem;
  color: var(--texto-suave);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

@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 + 3.5rem) 1.25rem 4rem 1.25rem;
}

.filtro-oscuro {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 18, 16, 0.72) 0%, rgba(20, 18, 16, 0.85) 100%);
  z-index: 1;
}

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

.kicker {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #eed6c4;
  margin-bottom: 0.8rem;
}

.portada-contenido h1 {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  line-height: 1.08;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.bajada {
  font-size: 1.2rem;
  color: #e5ded5;
  margin: 0 0 1.5rem 0;
  font-weight: 400;
}

.calificacion {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: #ffffff;
}

.estrella {
  color: #f59e0b;
  font-size: 1.15rem;
  line-height: 1;
}

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

.sep {
  opacity: 0.6;
}

.valoraciones-texto {
  color: #e2ded9;
}

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

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

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

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

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

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

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

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

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

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

.tarjeta-info {
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  box-shadow: 0 4px 16px rgba(28, 25, 23, 0.04);
}

.icono-info {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 0.1rem;
}

.info-texto {
  flex: 1;
}

.info-texto strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cobre);
  margin-bottom: 0.35rem;
}

.info-texto p {
  margin: 0 0 0.3rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--texto);
  line-height: 1.4;
}

.bloque-horarios {
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(28, 25, 23, 0.04);
}

.bloque-horarios h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

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

/* Galería */
.grilla-fotos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

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

.foto:hover, .foto:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.12);
  outline: none;
}

.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 {
  position: fixed;
  inset: 0;
  background: rgba(18, 16, 14, 0.94);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.visor.abierto {
  opacity: 1;
  pointer-events: auto;
}

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

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

.visor-cerrar {
  position: absolute;
  top: 18px;
  right: 22px;
  background: transparent;
  border: none;
  color: #faf8f5;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}

.visor-cerrar:hover {
  color: var(--cobre-claro);
}

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

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

#icono-app {
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(168, 72, 37, 0.16);
  margin-bottom: 1rem;
}

.instalar h2 {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

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

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

/* Pie de página */
#pie {
  background: #1c1917;
  color: #faf8f5;
  padding: 3.5rem 1.25rem 2.5rem 1.25rem;
}

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

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

.pie-rubro {
  color: #c5beb7;
  margin: 0 0 0.8rem 0;
  font-size: 0.95rem;
}

.pie-info p {
  margin: 0 0 0.35rem 0;
  color: #c5beb7;
  font-size: 0.9rem;
}

.pie-info a {
  color: #eed6c4;
}

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

.pie-legal {
  text-align: right;
}

.pie-legal p {
  margin: 0 0 0.35rem 0;
  color: #9c948c !important;
}

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

/* Aviso flotante de instalación */
.aviso-instalar {
  position: fixed;
  bottom: 18px;
  left: 18px;
  right: 18px;
  max-width: 440px;
  margin: 0 auto;
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: 0 10px 32px rgba(28, 25, 23, 0.16);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 1500;
  animation: deslizarSubir 0.3s ease-out;
}

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

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

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

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

.aviso-sub {
  margin: 0.2rem 0 0 0;
  font-size: 0.8rem;
  color: var(--texto-suave);
  line-height: 1.2;
}

.aviso-cerrar {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--texto-suave);
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  transition: color 0.2s;
}

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