/* ═══════════════════════════════════════════
   BALI COFFEE HOUSE — Estilos personalizados
   Complementa Tailwind CSS
═══════════════════════════════════════════ */

/* ── Scroll suave global ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

/* ── Escala móvil ── */
@media (max-width: 480px) {
  html { font-size: 14px; }

  /* Secciones: menos padding vertical en móvil */
  section { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }

  /* Hero: logo más pequeño */
  #inicio img[alt="Bali Coffee House"] { width: min(240px, 72vw) !important; }

  /* Títulos de sección más compactos */
  .section-title { font-size: 1.6rem !important; }
}

/* ── Navbar scroll effect ── */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(254, 250, 244, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(44, 24, 16, 0.08);
}

#navbar.scrolled .nav-link {
  color: #2C1810;
}

#navbar.scrolled .nav-logo-text {
  color: #2C1810;
}

/* ── Links de navegación ── */
.nav-link {
  color: rgba(92, 61, 46, 0.75);
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #C8A97E;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: #C8A97E;
}

#navbar.scrolled .nav-link {
  color: #5C3D2E;
}

#navbar.scrolled .nav-link:hover {
  color: #C8A97E;
}

/* ── Hero claro: fondo beige arena con luz natural ── */
.hero-light {
  background-color: #F5ECD7;
  background-image:
    radial-gradient(ellipse 70% 60% at 75% 30%, rgba(232, 213, 181, 0.9) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 70%, rgba(200, 169, 126, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(254, 250, 244, 0.8) 0%, transparent 50%);
}

/* Orbes de profundidad suave */
.hero-orbs::before {
  content: '';
  position: absolute;
  top: -10%;
  right: 5%;
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 169, 126, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-orbs::after {
  content: '';
  position: absolute;
  bottom: 5%;
  left: 10%;
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 124, 89, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Hojas decorativas con entrada suave */
.hero-leaf-tr {
  animation: leafDrift 8s ease-in-out infinite alternate;
}
.hero-leaf-bl {
  animation: leafDrift 10s ease-in-out infinite alternate-reverse;
}

@keyframes leafDrift {
  from { transform: translate(0, 0) rotate(0deg); }
  to   { transform: translate(-8px, 6px) rotate(2deg); }
}

/* ── Patrón de hojas (legacy, mantenido por si se usa) ── */
.leaf-pattern {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(74, 124, 89, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(200, 169, 126, 0.2) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 80%, rgba(74, 124, 89, 0.2) 0%, transparent 40%);
}

/* ── Animaciones de entrada ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

/* ── Reveal al hacer scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── Botones de filtro del menú ── */
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid #E8D5B5;
  background: transparent;
  color: #5C3D2E;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: #C8A97E;
  color: #C8A97E;
}

.filter-btn.active {
  background: #C8A97E;
  border-color: #C8A97E;
  color: #ffffff;
}

/* ── Tarjetas del menú ── */
.menu-card {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #E8D5B5;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(44, 24, 16, 0.1);
}

.menu-card.hidden-card {
  display: none;
}

.menu-card-header {
  padding: 1rem 1.25rem;
}

.menu-category-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.menu-card-body {
  padding: 1.25rem;
  flex: 1;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #F5ECD7;
  font-size: 0.875rem;
  color: #2C1810;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item span:last-child {
  font-weight: 600;
  color: #C8A97E;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Tabs de navegación (legacy) ── */
.menu-tabs-wrapper {
  border-bottom: 1px solid #E8D5B5;
  margin-bottom: 0;
}

.menu-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.menu-tabs::-webkit-scrollbar { display: none; }

.menu-tab {
  flex-shrink: 0;
  padding: 0.875rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9CA3AF;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-bottom: -1px;
}

.menu-tab:hover {
  color: #C8A97E;
}

.menu-tab.active {
  color: #2C1810;
  border-bottom-color: #C8A97E;
}

/* ── Sección editorial ── */
.menu-section {
  padding: 3.5rem 0;
}

.menu-section.hidden {
  display: none;
}

.menu-section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.menu-section-eyebrow {
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  font-style: italic;
  color: #C8A97E;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

.menu-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #2C1810;
  font-weight: 400;
  white-space: nowrap;
}

.menu-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #E8D5B5, transparent);
}

/* ── Grid de dos columnas ── */
.menu-editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .menu-editorial-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

/* ── Columna ── */
.menu-col-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C8A97E;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #F5ECD7;
}

/* ── Fila de item ── */
.menu-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #F5ECD7;
}

.menu-row:last-child {
  border-bottom: none;
}

.menu-row-name {
  font-size: 0.9rem;
  color: #2C1810;
  flex-shrink: 0;
}

.menu-row-name em {
  font-style: normal;
  font-size: 0.75rem;
  color: #9CA3AF;
  margin-left: 0.25rem;
}

.menu-row-sub {
  display: block;
  font-size: 0.72rem;
  color: #9CA3AF;
  margin-top: 0.1rem;
  line-height: 1.4;
}

.menu-row-dots {
  flex: 1;
  border-bottom: 1px dotted #D1C4AE;
  margin: 0 0.5rem;
  margin-bottom: 3px;
  min-width: 1rem;
}

.menu-row-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: #C8A97E;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Extras ── */
.menu-extras {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  background: #FEFAF4;
  border: 1px solid #E8D5B5;
  border-radius: 1rem;
}

.menu-extras-title {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C8A97E;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.menu-extras-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.8rem;
  color: #5C3D2E;
}

/* ── Items de galería ── */
.gallery-item {
  overflow: hidden;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

/* ── Inputs del formulario ── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1.5px solid #E8D5B5;
  background: #ffffff;
  color: #2C1810;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
}

.form-input:focus {
  border-color: #C8A97E;
  box-shadow: 0 0 0 3px rgba(200, 169, 126, 0.15);
}

.form-input::placeholder {
  color: #9CA3AF;
}

/* ── Estado abierto/cerrado ── */
.estado-abierto {
  background: rgba(74, 124, 89, 0.12);
  color: #2D5A3D;
}

.estado-cerrado {
  background: rgba(220, 38, 38, 0.08);
  color: #991B1B;
}

/* ── Scrollbar sutil ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #FEFAF4;
}

::-webkit-scrollbar-thumb {
  background: #C8A97E;
  border-radius: 3px;
}

/* ── Selección de texto ── */
::selection {
  background: rgba(200, 169, 126, 0.3);
  color: #2C1810;
}
