/* --- Sistema de Diseño --- */
:root {
  /* Paleta "La Barca Antigua" */
  --color-carbon: 0, 0%, 22%;      /* Gris Carbón Neutro #383838 */
  --color-gold: 35, 33%, 52%;      /* #B08D5B */
  --color-cream: 40, 31%, 93%;     /* #F4EFE6 */
  
  /* Gradientes y Fondos */
  --glass-bg: hsla(var(--color-carbon), 0.75);
  --glass-border: hsla(var(--color-cream), 0.1);
  --gradient-overlay: linear-gradient(
    to bottom, 
    hsla(var(--color-carbon), 0.85) 0%, 
    hsla(var(--color-carbon), 0.75) 50%, 
    hsla(var(--color-carbon), 0.95) 100%
  );
  
  /* Tipografía */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Montserrat', sans-serif;
  
  /* Transiciones */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: hsl(var(--color-carbon));
  color: hsl(var(--color-cream));
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Splash Screen --- */
.splash-screen {
  position: fixed;
  inset: 0;
  background-color: hsl(var(--color-carbon));
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.splash-logo {
  width: 100%;
  max-width: 700px;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.8));
  animation: pulseLogo 2s ease-in-out infinite alternate;
  transition: transform 1s cubic-bezier(0.8, 0, 0.2, 1), opacity 0.8s;
}

@keyframes pulseLogo {
  0% { transform: scale(1); filter: drop-shadow(0 10px 15px rgba(0,0,0,0.8)) drop-shadow(0 0 15px rgba(176, 141, 91, 0.3)); }
  100% { transform: scale(1.05); filter: drop-shadow(0 20px 30px rgba(0,0,0,0.9)) drop-shadow(0 0 35px rgba(176, 141, 91, 0.8)); }
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-screen.hidden .splash-logo {
  transform: translateY(-40vh) scale(0.2);
  opacity: 0;
}

/* --- Navegación Glassmorphism --- */
.premium-nav {
  position: fixed;
  top: 0; 
  width: 100%;
  padding: 1rem 3rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: padding 0.3s ease;
}

.logo .nav-img {
  height: 50px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: hsl(var(--color-cream));
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: hsl(var(--color-gold));
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* --- Slider --- */
.slider-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.slide.active { opacity: 1; }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: hsla(var(--color-carbon), 0.4);
  color: hsl(var(--color-cream));
  border: 1px solid hsla(var(--color-cream), 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:hover {
  background: hsla(var(--color-carbon), 0.9);
  color: hsl(var(--color-gold));
  border-color: hsl(var(--color-gold));
}
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay);
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeUp 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.text-gold { 
  color: hsl(var(--color-gold)); 
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 3rem;
  color: hsl(var(--color-cream));
  text-shadow: 0 2px 4px rgba(0,0,0,1), 0 4px 15px rgba(0,0,0,0.8);
}

.btn-premium {
  display: inline-block;
  padding: 1rem 3rem;
  background: transparent;
  color: hsl(var(--color-gold));
  border: 1px solid hsl(var(--color-gold));
  font-family: var(--font-sans);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 40px;
  transition: var(--transition-smooth);
}

.btn-premium:hover {
  background: hsl(var(--color-gold));
  color: hsl(var(--color-carbon));
  box-shadow: 0 0 20px rgba(176, 141, 91, 0.4);
  transform: translateY(-2px);
}

/* --- Bento Grid Asimétrico --- */
.menu-showcase {
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: hsl(var(--color-cream));
  margin-bottom: 1rem;
}

.separator-gold {
  width: 60px;
  height: 3px;
  background-color: hsl(var(--color-gold));
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 350px;
  gap: 2rem;
}

/* Asignación de tamaños */
.bento-card.large { grid-column: span 2; grid-row: span 2; }
.bento-card.tall { grid-column: span 1; grid-row: span 2; }
.bento-card.medium { grid-column: span 2; grid-row: span 1; }
.bento-card.standard { grid-column: span 1; grid-row: span 1; }

.bento-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background-color: hsl(var(--color-carbon));
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(var(--color-carbon), 1) 0%, hsla(var(--color-carbon), 0.8) 60%, hsla(var(--color-carbon), 0.5) 100%);
  transition: var(--transition-smooth);
}

.card-content {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 2.5rem;
  z-index: 2;
  transform: translateY(20px);
  opacity: 0.85;
  transition: var(--transition-smooth);
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.card-content h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: hsl(var(--color-gold));
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

.price-tag {
  font-weight: 700;
  font-size: 1.2rem;
  color: hsl(var(--color-cream));
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.badge {
  background-color: hsl(var(--color-gold));
  color: hsl(var(--color-carbon));
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.card-content p {
  font-size: 1rem;
  color: hsl(var(--color-cream));
  text-shadow: 0 2px 8px rgba(0,0,0,1);
}

/* Efectos Hover */
.bento-card:hover .card-img { transform: scale(1.08); }
.bento-card:hover::after { background: linear-gradient(to top, hsla(var(--color-carbon), 0.95) 0%, transparent 40%, transparent 100%); }
.bento-card:hover .card-content {
  transform: translateY(0);
  opacity: 1;
}

/* --- Detailed Menu Section --- */
.detailed-menu {
  background-color: hsl(var(--color-cream));
  padding: 8rem 2rem;
  color: hsl(var(--color-carbon));
}

.detailed-menu .section-header h2 {
  color: hsl(var(--color-carbon));
  text-shadow: none;
}

.menu-list-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.menu-item-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid hsl(var(--color-cream));
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.menu-item-info {
  flex-grow: 1;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  border-bottom: 1px dashed hsla(var(--color-carbon), 0.2);
  padding-bottom: 0.5rem;
}

.menu-item-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: hsl(var(--color-carbon));
}

.menu-item-price {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25rem;
  color: hsl(var(--color-gold));
}

.menu-item-desc {
  font-size: 1rem;
  color: hsla(var(--color-carbon), 0.8);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .menu-item {
    flex-direction: column;
    text-align: center;
  }
  .menu-item-header {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* --- Visit Section --- */
.visit-section {
  padding: 8rem 2rem;
  position: relative;
}
.visit-content {
  background: hsla(var(--color-carbon), 0.8);
  backdrop-filter: blur(15px);
  border: 1px solid hsla(var(--color-gold), 0.2);
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(244, 239, 230, 0.1);
  color: rgba(244, 239, 230, 0.6);
  font-size: 0.9rem;
}

/* --- Animaciones Clave --- */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card.large, .bento-card.tall { grid-column: span 2; }
  .bento-card.medium, .bento-card.standard { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .splash-logo { max-width: 350px; }
  .hero-title { font-size: 3.5rem; }
  .hero-subtitle { font-size: 1rem; padding: 0 1rem; }
  .slider-btn { display: none; }
  .card-content { padding: 1.5rem; }
  .card-content h3 { font-size: 1.5rem; }
  .bento-grid { display: flex; flex-direction: column; gap: 1rem; }
  .bento-card { min-height: 350px; width: 100%; }
}

/* --- WhatsApp Float & Modal --- */
.wa-float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

.wa-float-btn:hover {
  transform: scale(1.1) rotate(-10deg);
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

.wa-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.wa-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.wa-modal-content {
  background: white;
  width: 90%;
  max-width: 400px;
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.wa-modal.hidden .wa-modal-content {
  transform: translateY(50px);
}

.wa-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #999;
  transition: color 0.3s;
}

.wa-close-btn:hover {
  color: #333;
}

.wa-items {
  margin: 1.5rem 0;
  max-height: 300px;
  overflow-y: auto;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}

.wa-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.wa-item:last-child {
  margin-bottom: 0;
}

.wa-item-info h4 {
  color: hsl(var(--color-carbon));
  font-size: 1rem;
  margin: 0;
}
.wa-item-info p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.wa-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-btn-qty {
  background: #f0f0f0;
  border: none;
  width: 25px;
  height: 25px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  color: #333;
  transition: background 0.2s;
}

.wa-btn-qty:hover {
  background: #e0e0e0;
}

.wa-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wa-total {
  font-size: 1.2rem;
  font-weight: bold;
  color: hsl(var(--color-carbon));
  text-align: right;
}

.wa-send-btn {
  background-color: #25D366;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s;
}

.wa-send-btn:hover {
  background-color: #1ebe5d;
}
