/* =============================================
   LOS PORTALES CAFETERÍA — STYLESHEET
   ============================================= */

/* ---------- RESET & TOKENS ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:    #f5ede0;
  --warm:     #e8d5b7;
  --espresso: #1e0f05;
  --bark:     #3b1f0c;
  --caramel:  #b5722a;
  --gold:     #d4a853;
  --sage:     #7a8c6e;
  --white:    #fdf8f2;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Jost', sans-serif;

  --radius: 4px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--espresso);
  overflow-x: hidden;
}

em { font-style: italic; }

img { display: block; width: 100%; height: 100%; object-fit: cover; }

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

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--espresso); }
::-webkit-scrollbar-thumb { background: var(--caramel); border-radius: 3px; }

/* ---------- REUSABLE ---------- */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 1rem;
}
.section-tag.light { color: var(--gold); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--bark);
  margin-bottom: 1.4rem;
}
.section-title.light { color: var(--cream); }
.section-title em { color: var(--caramel); }
.section-title.light em { color: var(--gold); }

.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  background: var(--caramel);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 5%;
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(30, 15, 5, 0.96);
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.04em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--espresso);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cream);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--gold); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background slider */
.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  transform: scale(1.04);
  animation: slowZoom 12s ease-in-out infinite alternate;
}
.slide.active { opacity: 1; }

/* Using Unsplash coffee/cafe images as fallback backgrounds */
.s1 {
  background-image:
    linear-gradient(to bottom, rgba(10,5,2,0.35), rgba(10,5,2,0.5)),
    url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?w=1600&q=80');
}
.s2 {
  background-image:
    linear-gradient(to bottom, rgba(10,5,2,0.35), rgba(10,5,2,0.5)),
    url('https://images.unsplash.com/photo-1509042239860-f550ce710b93?w=1600&q=80');
}
.s3 {
  background-image:
    linear-gradient(to bottom, rgba(10,5,2,0.35), rgba(10,5,2,0.5)),
    url('https://images.unsplash.com/photo-1554118811-1e0d58224f24?w=1600&q=80');
}

@keyframes slowZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(20,8,2,0.3) 0%,
    rgba(20,8,2,0.15) 40%,
    rgba(20,8,2,0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  animation: heroFadeUp 1.2s ease both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 1rem;
  text-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.hero-title em {
  color: var(--gold);
  font-style: italic;
}

.hero-sub {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 2.5rem;
}

/* scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  margin: 0 auto;
  animation: scrollLine 1.8s ease infinite;
}
@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1) translateY(20px); }
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

.about-image-col {
  background: var(--bark);
  position: relative;
  overflow: hidden;
}
.about-img-frame {
  position: absolute;
  inset: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.about-img-frame img {
  transition: transform 0.8s ease;
}
.about-img-frame:hover img { transform: scale(1.04); }

.about-text-col {
  background: var(--cream);
  padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text-col p {
  font-size: 1rem;
  line-height: 1.8;
  color: #4a3020;
  margin-bottom: 1rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--warm);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.stat strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--caramel);
}
.stat span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a5e44;
}

/* =============================================
   MENU SECTION
   ============================================= */
.menu-section {
  background: var(--espresso);
  padding: clamp(4rem, 8vw, 8rem) 5%;
  position: relative;
  overflow: hidden;
}
.menu-section::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181,114,42,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.menu-header {
  text-align: center;
  margin-bottom: 4rem;
}
.menu-subtitle {
  color: #a09080;
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

.menu-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.menu-cat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  transition: border-color var(--transition), transform var(--transition);
}
.menu-cat:hover {
  border-color: rgba(212,168,83,0.3);
  transform: translateY(-4px);
}
.menu-cat.featured {
  background: rgba(181,114,42,0.1);
  border-color: rgba(181,114,42,0.25);
  position: relative;
}
.menu-cat.featured::before {
  content: 'Popular';
  position: absolute;
  top: -1px; right: 1.5rem;
  background: var(--caramel);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 0 0 4px 4px;
}

.menu-cat-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.menu-cat h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.menu-cat p {
  font-size: 0.88rem;
  color: #a09080;
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

/* Placeholder lines */
.menu-placeholder {
  position: relative;
  padding: 1.2rem;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  overflow: hidden;
}
.placeholder-line {
  height: 10px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  margin-bottom: 0.75rem;
  animation: shimmer 2s infinite;
}
.placeholder-line.short { width: 60%; }

@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

.coming-soon {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.5rem;
  opacity: 0.8;
}

/* =============================================
   GALLERY STRIP
   ============================================= */
.gallery-strip {
  height: 260px;
  overflow: hidden;
  position: relative;
}
.gallery-track {
  display: flex;
  height: 100%;
  width: max-content;
  animation: galleryScroll 25s linear infinite;
}
.gallery-track:hover { animation-play-state: paused; }

.gal-item {
  width: 380px;
  height: 100%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  margin-right: 4px;
  transition: filter var(--transition);
}
.gal-item:hover { filter: brightness(1.15); }

.gi1 {
  background-image: url('https://images.unsplash.com/photo-1517705008128-361805174919?w=800&q=80');
}
.gi2 {
  background-image: url('https://images.unsplash.com/photo-1533777324565-a040eb52facd?w=800&q=80');
}
.gi3 {
  background-image: url('https://images.unsplash.com/photo-1534482421-64566f976cfa?w=800&q=80');
}

@keyframes galleryScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.contact-map {
  position: relative;
  min-height: 400px;
}
.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
  filter: grayscale(30%) sepia(20%);
}

.contact-info {
  background: var(--bark);
  padding: clamp(3rem, 5vw, 5rem) clamp(2rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-info .section-title { color: var(--cream); }
.contact-info .section-title em { color: var(--gold); }

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 0.5rem;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-list strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.contact-list p, .contact-list a {
  font-size: 0.95rem;
  color: var(--warm);
  line-height: 1.6;
}
.contact-list a:hover { color: var(--gold); text-decoration: underline; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--espresso);
  text-align: center;
  padding: 2.5rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
}
.footer-copy {
  font-size: 0.78rem;
  color: #7a5e44;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}
.footer-hexlabs {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5a4a3a;
  border-bottom: 1px solid #3a2a1a;
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}
.footer-hexlabs:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .about {
    grid-template-columns: 1fr;
  }
  .about-image-col {
    height: 60vw;
    min-height: 280px;
  }
  .about-img-frame { inset: 1.5rem; }

  .menu-categories {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .contact {
    grid-template-columns: 1fr;
  }
  .contact-map { min-height: 320px; position: relative; }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(2.5rem, 12vw, 4rem); }
  .about-stats { flex-wrap: wrap; gap: 1.2rem; }
  .gallery-strip { height: 180px; }
  .gal-item { width: 260px; }
}
