/* ============================
   Expresso Café v2 — Style
   ============================ */

:root {
  --bg-dark: #1a1210;
  --bg-card: #241b17;
  --bg-section: #1f1613;
  --accent: #c17f4b;
  --accent-light: #d4945e;
  --accent-glow: rgba(193, 127, 75, 0.15);
  --text: #f5ebe0;
  --text-muted: #a09288;
  --text-dim: #7a6a60;
  --border: #322824;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; transition: color .3s; }
a:hover { color: var(--accent-light); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all .3s;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(26, 18, 16, 0.95);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text) !important;
}
.logo-icon { font-size: 1.6rem; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav-link {
  color: var(--text-muted) !important;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color .3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .3s;
}
.nav-link:hover, .nav-link.active {
  color: var(--text) !important;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?w=1600&q=80') center/cover;
  filter: brightness(0.35) saturate(1.2);
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.15); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,18,16,.9) 0%, rgba(26,18,16,.4) 50%, rgba(26,18,16,.8) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}
.hero-logo {
  margin-bottom: 28px;
}
.hero-logo img {
  width: 140px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.4));
}
.hero-badge {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent-light);
  border: 1px solid rgba(193, 127, 75, 0.3);
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}
.accent {
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .3s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-dark) !important;
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(193, 127, 75, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--text) !important;
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0,0); opacity: .5; }
  50% { transform: rotate(45deg) translate(4px,4px); opacity: 1; }
}

/* ========== SECTIONS ========== */
.section {
  padding: 100px 0;
}
.section-dark {
  background: var(--bg-section);
}
.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 48px;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}
.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
}
.about-quote {
  font-style: italic;
  color: var(--text);
  font-size: 1.15rem !important;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  margin: 28px 0 !important;
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.feature-icon {
  font-size: 1.3rem;
}

.about-image {
  position: relative;
}
.about-img-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.about-img-frame img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform .6s;
}
.about-img-frame:hover img {
  transform: scale(1.05);
}
.about-img-small {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 200px;
  border: 4px solid var(--bg-dark);
  border-radius: 12px;
}
.about-img-small img {
  height: 200px;
}

/* ========== CARTA ========== */
.carta-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0;
  justify-content: center;
}
.cat-btn {
  padding: 10px 24px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .3s;
}
.cat-btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}
.cat-btn.active {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
  font-weight: 600;
}
.carta-content {
  display: none;
}
.carta-content.active {
  display: block;
  animation: fadeIn .4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.carta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.menu-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  transition: all .3s;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.menu-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,.2);
}
.menu-item[data-img] {
  cursor: pointer;
}
.menu-img {
  width: 70px;
  height: 70px;
  min-width: 70px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.menu-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.menu-item[data-img]:hover .menu-img img {
  transform: scale(1.1);
}
.menu-info {
  flex: 1;
}
.menu-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.menu-info .price {
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.85rem;
}
.menu-info p {
  color: var(--text-dim);
  font-size: 0.9rem;
}
.photo-indicator {
  display: inline-block;
  font-size: 0.8rem;
  opacity: .6;
  transition: opacity .3s;
  cursor: pointer;
}
.menu-item[data-img]:hover .photo-indicator {
  opacity: 1;
}
.menu-item.highlight {
  border-color: rgba(193, 127, 75, 0.3);
}
.badge-new {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.menu-note {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 24px;
  text-align: center;
}
.subcat-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent-light);
  margin: 20px 0 16px;
}

/* ========== GALERÍA ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: 250px;
  gap: 12px;
}
.gallery-item {
  overflow: hidden;
  border-radius: 12px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-item-lg {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-cta {
  text-align: center;
  margin-top: 32px;
}
.gallery-cta p {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.gallery-cta a {
  font-weight: 600;
}

/* ========== CONTACTO ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.contact-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.contact-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.contact-card a {
  color: var(--accent-light);
}
.contact-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}
.horario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  font-size: 0.9rem;
}
.horario-grid span:nth-child(odd) {
  color: var(--text-muted);
}
.horario-grid span:nth-child(even) {
  color: var(--text);
  text-align: right;
}
.closed {
  color: #e74c3c !important;
  font-weight: 600;
}
.contact-map {
  border-radius: 12px;
  overflow: hidden;
  min-height: 400px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.social-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--text-muted) !important;
  transition: all .3s;
}
.social-link:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent) !important;
  transform: translateY(-3px);
}
.social-link svg {
  width: 20px;
  height: 20px;
}

/* ========== FOOTER ========== */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.footer-content {
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-logo-img {
  height: 40px;
  width: auto;
  opacity: .8;
}
.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.footer-credit {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ========== LIGHTBOX ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
  animation: lbFade .3s ease;
}
.lightbox.active {
  display: flex;
}
@keyframes lbFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 3rem;
  cursor: pointer;
  opacity: .7;
  transition: opacity .3s;
  z-index: 1;
}
.lightbox-close:hover {
  opacity: 1;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-caption {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 1rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-img-small {
    width: 150px;
  }
  .about-img-small img {
    height: 150px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item-lg {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 0;
    transition: right .3s;
    box-shadow: -10px 0 30px rgba(0,0,0,.5);
    z-index: 999;
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-menu .nav-link {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .section {
    padding: 64px 0;
  }

  .carta-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .horario-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-img-small {
    display: none;
  }

  .contact-map {
    min-height: 280px;
  }
}
