/* =========================================================
   EL MEDIO BAJÓN — style.css
   ========================================================= */

:root {
  --red: #bc3a2c;
  --red-dark: #8f2a1f;
  --red-darker: #5e1c14;
  --black: #000000;
  --cream: #fdf7ec;
  --yellow: #f2c14e;
  --orange: #e8763c;
  --white: #ffffff;
  --gray-text: #4a4a4a;

  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-title: 'Titan One', var(--font-display);
  --font-body: 'Nunito Sans', system-ui, sans-serif;

  --container: 1140px;
  --radius: 14px;
  --transition: 0.3s ease;
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 16px 32px rgba(0, 0, 0, 0.22);
}

/* ---------- Animación de entrada al hacer scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-body);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
}

.btn--red {
  background: var(--red);
  color: var(--white);
}

.btn--red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

section, header, footer {
  scroll-margin-top: 90px;
}

/* ---------- Íconos (contraste según fondo) ---------- */
.icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.icon--light {
  filter: brightness(0) invert(1);
}

/* ===================== SEGMENTO A: Barra superior ===================== */
.top-bar {
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.top-bar__social {
  display: flex;
  gap: 0.9rem;
}

/* ===================== SEGMENTO B: Navegación ===================== */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.navbar__logo img {
  height: 100px;
  margin: 6px 0;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18));
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 700;
  color: var(--black);
  transition: color var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--orange);
}

.navbar__cta--mobile { display: none; }

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition);
}

.navbar__toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--black);
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

.navbar__toggle:hover,
.navbar__toggle:focus-visible {
  transform: scale(1.08);
}

.navbar__toggle:hover span,
.navbar__toggle:focus-visible span {
  background: var(--orange);
}

/* ===================== SEGMENTO C: Hero ===================== */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 340px;
  overflow: hidden;
  border-bottom: 4px solid var(--red);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  background: rgba(20, 15, 12, 0.72);
  padding: 1.5rem 2.5rem;
  border-top-right-radius: var(--radius);
}

.hero__title {
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

/* ===================== SEGMENTO D: Quiénes somos ===================== */
.about {
  padding: 6rem 1.5rem;
}

.about__container {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
}

.about__media img {
  border-radius: 50%;
  border: 6px solid var(--red);
  box-shadow: var(--shadow-strong);
  transition: transform var(--transition);
}

.about__media img:hover {
  transform: translateY(-4px);
}

.about__content p {
  color: var(--gray-text);
  margin-bottom: 1rem;
  max-width: 60ch;
}

.about__content h2 { margin-bottom: 0.25rem; }

/* ===================== SEGMENTO E: Menú / Carta ===================== */
.menu {
  position: relative;
  background: var(--red);
  padding: 6rem 1.5rem;
  overflow: hidden;
}

.menu__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.decor {
  position: absolute;
  width: 190px;
  opacity: 0.16;
  filter: grayscale(1) brightness(1.6) sepia(1) hue-rotate(-25deg) saturate(4);
  mix-blend-mode: overlay;
}

.decor--cafe { top: 2rem; left: 2rem; }
.decor--empanada { top: 2rem; right: 2rem; }
.decor--completo { bottom: 2rem; left: 2rem; width: 210px; }
.decor--papas { bottom: 2rem; right: 2rem; width: 210px; }

.menu__container {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  z-index: 1;
}

.menu__heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.menu__title {
  font-family: var(--font-title);
  font-weight: 400;
  color: var(--yellow);
  -webkit-text-stroke: 2px var(--black);
  text-shadow:
    -1.5px -1.5px 0 var(--black),
    1.5px -1.5px 0 var(--black),
    -1.5px 1.5px 0 var(--black),
    1.5px 1.5px 0 var(--black);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.02em;
}

.menu__tag {
  display: inline-block;
  background: var(--black);
  color: var(--yellow);
  font-family: var(--font-title);
  font-weight: 400;
  padding: 0.4rem 1.6rem;
  border-radius: 999px;
  margin-top: 0.6rem;
  letter-spacing: 0.03em;
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2rem;
}

.menu__category {
  background: rgba(0, 0, 0, 0.16);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.menu__category:hover {
  transform: translateY(-5px);
  background: rgba(0, 0, 0, 0.24);
  box-shadow: var(--shadow-strong);
}

.menu__category h3 {
  color: var(--yellow);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
}

.menu__list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--cream);
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
  font-weight: 600;
}

.menu__list li span:last-child {
  font-weight: 700;
  white-space: nowrap;
}

/* ===================== SEGMENTO F: Galería + Historia ===================== */
.gallery-section {
  padding: 6rem 0 4rem;
  background: var(--white);
}

.gallery {
  position: relative;
  max-width: var(--container);
  margin: 0 auto 1rem;
  padding: 0 3.25rem;
}

.gallery__viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery__pages {
  display: flex;
  width: 200%;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.gallery__page {
  flex: 0 0 50%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
  padding: 0 0.35rem;
}

.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition), transform var(--transition);
}

.gallery__item:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-3px);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition), transform var(--transition);
}

.gallery__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery__zoom img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.gallery__item:hover img:first-child {
  opacity: 0.35;
  transform: scale(1.05);
}

.gallery__item:hover .gallery__zoom {
  opacity: 1;
}

.gallery__zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.gallery__zone--left { left: 0; }
.gallery__zone--right { right: 0; }

.gallery__zone::before {
  content: '';
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--red);
  border-right: 3px solid var(--red);
  opacity: 0.45;
  transition: opacity var(--transition);
}

.gallery__zone--left::before { transform: rotate(-135deg); }
.gallery__zone--right::before { transform: rotate(45deg); }
.gallery:hover .gallery__zone::before { opacity: 0.9; }

.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 4rem;
}

.gallery__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background var(--transition);
}

.gallery__dots span.is-active { background: var(--red); }

.history {
  max-width: 70ch;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.history p {
  color: var(--gray-text);
  margin-bottom: 1rem;
}

.history__seal {
  width: 90px;
  margin: 2rem auto 0;
}

/* ===================== SEGMENTO G: Ubicación ===================== */
.location {
  width: 100%;
  line-height: 0;
}

.location iframe {
  width: 100%;
  display: block;
}

/* ===================== SEGMENTO H: Testimonios ===================== */
.testimonials {
  background: var(--red-darker);
  color: var(--white);
  padding: 6rem 1.5rem;
}

.testimonials__container {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.testimonials h2 { margin-bottom: 1.5rem; text-align: center; }

/* ---------- Estrellas reutilizables (placeholders y reales de Google) ---------- */
.stars {
  position: relative;
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 2px;
  color: rgba(0, 0, 0, 0.15);
}

.stars::before { content: '\2605\2605\2605\2605\2605'; }

.stars__fill {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  color: var(--yellow);
}

.stars__fill::before { content: '\2605\2605\2605\2605\2605'; }

.stars--on-dark { color: rgba(255, 255, 255, 0.25); }
.stars--lg { font-size: 1.6rem; letter-spacing: 3px; }

.testimonials__summary {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.testimonials__summary.is-visible { display: flex; }

.testimonials__summary-text {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.testimonials__slider {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonials__viewport {
  overflow: hidden;
  flex: 1;
}

.testimonials__track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  flex: 0 0 100%;
  padding: 0 0.5rem;
  display: flex;
  justify-content: center;
}

.testimonial-card {
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 560px;
  width: 100%;
  text-align: left;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.testimonial-card__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.testimonial-card__avatar {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.testimonial-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card__name {
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.testimonial-card__text {
  color: var(--gray-text);
  margin-bottom: 0.85rem;
}

.testimonial-card__time {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.45);
}

.testimonials__arrow {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background var(--transition);
}

.testimonials__arrow:hover { background: rgba(255, 255, 255, 0.25); }

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.testimonials__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background var(--transition);
}

.testimonials__dots span.is-active {
  background: var(--yellow);
}

.testimonials__cta {
  display: block;
  width: fit-content;
  margin: 2rem auto 0;
}

/* ===================== SEGMENTO I: Footer ===================== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 3.5rem 1.5rem 1.5rem;
}

.footer__container {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.5rem;
  align-items: start;
}

.footer__logo { height: 210px; margin: 0 auto; }

.footer__nav-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__nav a { color: var(--white); transition: color var(--transition); }
.footer__nav a:hover { color: var(--orange); }

.footer__social {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer__copy {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2.5rem;
}

/* ===================== Botones flotantes ===================== */
.float-btn {
  position: fixed;
  right: 1.25rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 200;
  border: none;
  background: var(--white);
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition);
}

.float-btn img { width: 32px; height: 32px; }

.float-btn--whatsapp { bottom: 1.25rem; }

.float-btn--top {
  bottom: 5.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.float-btn--top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.float-btn:hover { transform: translateY(-3px); }
.float-btn--top.is-visible:hover { transform: translateY(-3px); }

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

/* Tablets */
@media (max-width: 992px) {
  .about__container { grid-template-columns: 1fr; text-align: center; }
  .about__media { max-width: 220px; margin: 0 auto; }
  .about__content p { max-width: none; }
  .menu__grid { grid-template-columns: 1fr; }
  .footer__container { grid-template-columns: 1fr; text-align: center; }
  .footer__social { justify-content: center; }
  .footer__nav { align-items: center; }
  .footer__logo { height: 170px; }
}

/* Móviles */
@media (max-width: 768px) {
  .top-bar { flex-direction: column; gap: 0.35rem; text-align: center; padding: 0.6rem 1rem; }

  .navbar__toggle { display: flex; }

  .navbar__logo img {
    height: 84px;
    margin: 0;
    filter: none;
  }

  .navbar__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08);
    transition: max-height var(--transition);
  }

  .navbar__nav.is-open { max-height: 400px; padding: 0.5rem 0 1rem; }

  .navbar__nav .nav-link {
    width: 100%;
    padding: 0.75rem 1.5rem;
  }

  .navbar__cta--desktop { display: none; }
  .navbar__cta--mobile {
    display: inline-block;
    margin: 0.5rem 1.5rem 0;
  }

  .hero { height: 50vh; }
  .hero__overlay { padding: 1rem 1.5rem; }

  .menu { padding: 3.5rem 1.25rem; }
  .decor { display: none; }

  .gallery { padding: 0 2.25rem; }
  .gallery__page {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0.6rem;
  }
  .gallery__zone { width: 38px; }

  .footer__logo { height: 140px; }

  .testimonials__slider { gap: 0.5rem; }
  .testimonial-card { padding: 1.5rem; }
  .testimonial-card__text { font-size: 0.95rem; }

  .float-btn { width: 50px; height: 50px; right: 1rem; }
  .float-btn img { width: 26px; height: 26px; }
  .float-btn--whatsapp { bottom: 1rem; }
  .float-btn--top { bottom: 4.75rem; }
}

@media (max-width: 420px) {
  h2 { font-size: 1.6rem; }
  .navbar__logo img { height: 68px; }
}

/* Lightbox de la galería (ampliar foto con zoom) */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.lightbox__img.is-zoomed {
  cursor: zoom-out;
  transform: scale(1.8);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
