/* ==========================================================
   O PATIO — Bar en Portomarín
   style.css — Mobile-first
   ========================================================== */

/* ── Variables ── */
:root {
  --dark:       #64140c;
  --white:      #ffffff;
  --black:      #000000;
  --gray:       #d9d9d9;
  --footer-bg:  #1c1c1c;
  --radius:     14px;
  --serif:      'IM Fell Great Primer', Georgia, serif;
  --sans:       'Inter', system-ui, sans-serif;
  --nav-h:      68px;
  --ease:       0.3s ease;
  --container:  1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img  { display: block; max-width: 100%; height: auto; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
figure { margin: 0; }
iframe { display: block; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Scroll offset for fixed navbar ── */
section[id] { scroll-margin-top: var(--nav-h); }

/* ── Rounded images ── */
.rounded-img {
  border-radius: var(--radius);
  object-fit: cover;
}

/* ── Fade-in animation (Intersection Observer) ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background var(--ease), box-shadow var(--ease);
}
#navbar.transparent { background: transparent; }
#navbar.solid       { background: rgba(100,20,12,0.97); box-shadow: 0 2px 24px rgba(0,0,0,.35); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 28px;
  max-width: 1512px;
  margin: 0 auto;
}

.nav-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* Desktop links */
.nav-links {
  display: none;
  gap: 36px;
}
.nav-links a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: opacity var(--ease);
}
.nav-links a:hover { opacity: 0.7; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
#navbar.nav-open { background: rgba(100,20,12,0.98); }
#navbar.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(100,20,12,0.98);
  padding: 20px 28px 32px;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}

@media (min-width: 768px) {
  .nav-links,
  #navbar.nav-open .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    border: none;
  }
  .hamburger { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 480px;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #2a0d09;
}

/* Capa 1 — contenedor de slides */
.hero-bg {
  position: absolute;
  inset: 0;
}

/* Slides individuales */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active {
  opacity: 1;
}
/* Capa 2 — degradado oscuro sobre las fotos */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.25) 50%,
    rgba(0,0,0,.08) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 28px 96px;
  max-width: 680px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(24px, 4vw, 52px);
  line-height: 1.25;
  color: #fff;
}

.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: 2px solid rgba(255,255,255,.65);
  transition: background var(--ease);
  cursor: pointer;
}
.dot.active { background: var(--white); }

/* ============================================================
   SECCIÓN: Tu punto de encuentro
   ============================================================ */
#punto-encuentro {
  padding: 80px 0 72px;
}
.title-xl {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 64px);
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 24px;
}
.subtitle-encuentro {
  font-family: var(--serif);
  font-size: clamp(16px, 2vw, 30px);
  line-height: 1.6;
  color: var(--black);
  max-width: 760px;
  margin: 0 auto;
}

/* ============================================================
   SECCIÓN: Sobre nosotros
   ============================================================ */
#sobre-nosotros { padding: 72px 0; }

.sobre-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 52px;
}
.sobre-foto-izq img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
}
.sobre-texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.title-section {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(26px, 3.5vw, 52px);
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 20px;
}
.sobre-description {
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 34px);
  line-height: 1.65;
  color: var(--black);
}

.sobre-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 56px;
}
.sobre-foto-der img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 787/984;
  object-fit: cover;
}

.quote-destacada {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.5vw, 40px);
  text-align: left;
  color: var(--black);
  line-height: 1.5;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

@media (min-width: 768px) {
  .sobre-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }
  .sobre-foto-izq img {
    max-height: none;
    aspect-ratio: 787/984;
    height: 100%;
  }
  .sobre-bottom {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
  }
}

/* ============================================================
   DARK BANDS
   ============================================================ */
.dark-band {
  background-color: var(--dark);
  padding: 72px 0;
}

.dark-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 64px);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 14px;
}
.dark-subtitle {
  font-family: var(--serif);
  font-size: clamp(18px, 2.5vw, 48px);
  color: var(--white);
  line-height: 1.4;
}

/* ============================================================
   SECCIÓN: Experiencia
   ============================================================ */
#experiencia { padding: 80px 0; }

.experiencia-header { margin-bottom: 48px; }
.subtitle-md {
  font-family: var(--serif);
  font-size: clamp(15px, 1.8vw, 28px);
  line-height: 1.6;
  color: var(--black);
  max-width: 720px;
  margin: 16px auto 0;
}

.galeria-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.galeria-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.galeria-img-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  line-height: 0;
}
.galeria-img-wrap img {
  width: 100%;
  aspect-ratio: 440/510;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.55s ease;
}
.galeria-img-wrap:hover img { transform: scale(1.04); }

.galeria-caption {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(13px, 1.4vw, 22px);
  text-align: center;
  color: var(--black);
  line-height: 1.45;
}

@media (min-width: 580px) {
  .galeria-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .galeria-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   SECCIÓN: Horario
   ============================================================ */
.horario-texto {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 48px);
  color: var(--white);
  line-height: 1.7;
}

/* ============================================================
   SECCIÓN: Donde estamos
   ============================================================ */
#donde-estamos { padding: 80px 0; }

.ubicacion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.mapa-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
}
.ubicacion-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ubicacion-direccion {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 46px);
  color: var(--black);
  line-height: 1.3;
}
.ubicacion-horario-mini {
  font-family: var(--sans);
  font-size: clamp(14px, 1.4vw, 18px);
  color: #555;
  line-height: 1.9;
}
.ubicacion-horario-mini strong {
  font-weight: 600;
  color: var(--black);
}

@media (min-width: 768px) {
  .ubicacion-grid { grid-template-columns: 1fr 1fr; }
  .mapa-wrap iframe { height: 450px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--footer-bg);
  padding: 52px 0;
  color: var(--white);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.footer-logo-link img {
  height: 46px;
  width: auto;
  opacity: 0.88;
  filter: brightness(1.1);
}
.footer-social {
  display: flex;
  gap: 18px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  color: var(--white);
  opacity: 0.75;
  transition: opacity var(--ease), background var(--ease);
}
.social-link:hover {
  opacity: 1;
  background: rgba(255,255,255,.1);
}
.footer-copy {
  font-size: 13px;
  opacity: 0.45;
  text-align: center;
  letter-spacing: 0.03em;
}
/* ============================================================
   SECCIÓN: Reseñas
   ============================================================ */
#resenas { padding: 80px 0; text-align: center; }

/* Cabecera rating */
.resenas-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 20px 0 52px;
}
.resenas-stars {
  font-size: 28px;
  color: #F4C430;
  letter-spacing: 4px;
  line-height: 1;
}
.resenas-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.google-icon { flex-shrink: 0; }
.resenas-score {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 22px;
  color: var(--black);
}
.resenas-label {
  font-family: var(--sans);
  font-size: 14px;
  color: #777;
}

/* Carrusel */
.carousel-wrapper {
  overflow: hidden;
  margin: 0 -24px;
  padding: 12px 0 20px;
  cursor: default;
}
.carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
  padding: 0 24px;
}

/* Tarjeta */
.review-card {
  width: clamp(280px, 85vw, 360px);
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 18px rgba(0,0,0,.07);
  padding: 28px 28px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.3s ease;
}
.review-card:hover {
  box-shadow: 0 6px 30px rgba(0,0,0,.12);
}
.card-stars {
  font-size: 16px;
  color: #F4C430;
  letter-spacing: 2px;
  line-height: 1;
}
.card-platform {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: #666;
}
.card-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 18px);
  color: #333;
  line-height: 1.65;
  flex: 1;
  margin: 0;
  padding: 0;
  border: none;
}
.card-author {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--black);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.card-badge {
  font-size: 11px;
  font-weight: 400;
  color: #888;
  background: #f2f2f2;
  padding: 2px 7px;
  border-radius: 20px;
}

/* CTA */
.resenas-cta {
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.resenas-cta-text {
  font-family: var(--serif);
  font-size: clamp(16px, 2vw, 22px);
  color: var(--black);
  line-height: 1.4;
}
.btn-review {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  border: 2px solid var(--dark);
  border-radius: 6px;
  padding: 12px 28px;
  transition: background var(--ease), color var(--ease);
  letter-spacing: 0.01em;
}
.btn-review:hover {
  background: var(--dark);
  color: var(--white);
}

@media (min-width: 900px) {
  .review-card { width: 360px; }
  .carousel-wrapper { cursor: default; }
}

/* ── Footer legal ── */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-legal a {
  font-size: 12px;
  color: var(--white);
  opacity: 0.4;
  transition: opacity var(--ease);
  text-decoration: none;
}
.footer-legal a:hover { opacity: 0.75; }
.footer-legal span {
  font-size: 12px;
  color: var(--white);
  opacity: 0.25;
}
