/* ==========================================================================
   RESTAURANTE LAUCUDE - SISTEMA DE ESTILOS PREMIUM (style.css)
   ========================================================================== */

/* Importación de Fuentes Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* Variables CSS y Sistema de Diseño (Modo Claro por Defecto) */
:root {
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', Helvetica, Arial, sans-serif;

  /* Paleta Gastronómica Premium */
  --primary: #2E4231;        /* Verde Oliva Oscuro */
  --primary-light: #3D5A40;  /* Verde Oliva Medio */
  --primary-accent: #1E2D20; /* Verde Pino Profundo */
  --secondary: #C5A880;      /* Dorado Champán */
  --secondary-hover: #D4AF37;/* Dorado Brillante */
  --bg-beige: #F7F5F0;       /* Beige Cálido */
  --bg-beige-dark: #EAE6DF;  /* Beige Sombra */
  --bg-ivory: #FFFDF9;       /* Blanco Marfil */
  
  /* Estados y Colores Comunes */
  --text-dark: #2C2C2C;
  --text-light: #F7F5F0;
  --text-muted: #666666;
  --border-light: rgba(197, 168, 128, 0.2);
  --border-glass: rgba(255, 255, 255, 0.25);
  --bg-glass: rgba(255, 255, 255, 0.65);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transiciones */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Altura de Navbar */
  --nav-height: 80px;
}

/* Modo Oscuro Automático (Media Query) */
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #C5A880;        /* El Dorado se vuelve primario en oscuros para legibilidad */
    --primary-light: #D4AF37;
    --primary-accent: #EAE6DF;
    --secondary: #3D5A40;
    --secondary-hover: #4E6F52;
    --bg-beige: #1A211B;       /* Fondo oscuro basado en verde oliva apagado */
    --bg-beige-dark: #121813;
    --bg-ivory: #141A15;
    
    --text-dark: #F7F5F0;
    --text-light: #1A211B;
    --text-muted: #AAAAAA;
    --border-light: rgba(197, 168, 128, 0.15);
    --border-glass: rgba(0, 0, 0, 0.3);
    --bg-glass: rgba(20, 26, 21, 0.8);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  }
}

/* Reseteo y Estilos Base de Accesibilidad (WCAG 2.2) */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-beige);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Enfoque accesible visible */
*:focus-visible {
  outline: 3px solid var(--secondary-hover);
  outline-offset: 4px;
}

/* Tipografía Premium */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); position: relative; padding-bottom: 15px; margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1.25rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Layout y Contenedores */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 80px 0;
}

.text-center { text-align: center; }

/* Subrayado Elegante para H2 */
.heading-decorative::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--secondary);
}

.heading-decorative.center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Botones Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 4px;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-light);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--secondary);
  color: var(--primary-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  border-color: var(--secondary);
  color: var(--primary);
  background-color: transparent;
}

.btn-secondary:hover {
  background-color: var(--secondary);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border-color: var(--text-dark);
  color: var(--text-dark);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--text-dark);
  color: var(--bg-beige);
}

/* Cabecera / Navegación (Glassmorphism) */
.header-main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
  transition: background-color var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-brand {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-light);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 50%;
  display: inline-block;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width var(--transition-fast);
}

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

.btn-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.burger-line {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-dark);
  margin: 5px 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 90%;
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
  color: var(--text-light);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 300;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-ctas {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Tarjetas y Rejillas */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.card-premium {
  background-color: var(--bg-ivory);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card-premium:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-image-wrapper {
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.card-premium:hover .card-image-wrapper img {
  transform: scale(1.06);
}

.card-body {
  padding: 30px;
}

.card-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 10px;
}

.card-title {
  margin-bottom: 15px;
}

/* Especialidades / Platos Destacados */
.dish-details {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.dish-price {
  font-family: var(--font-heading);
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.2rem;
}

.dish-ingredients {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Galería Interactiva con Lightbox */
.gallery-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  background: none;
  border: 1px solid var(--border-light);
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 30px;
  transition: all var(--transition-fast);
  color: var(--text-dark);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--primary-light);
  color: var(--text-light);
  border-color: var(--primary-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(46, 66, 49, 0.8);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-light);
  transition: opacity var(--transition-normal);
  padding: 20px;
  text-align: center;
}

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

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

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--secondary);
}

.gallery-item-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Lightbox Estilos */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 24, 19, 0.95);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-normal) ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border: 3px solid var(--border-light);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  color: var(--text-light);
  margin-top: 15px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-light);
  font-size: 2.5rem;
  padding: 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
  left: -80px;
}

.lightbox-next {
  right: -80px;
}

@media (max-width: 768px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* Acordeón FAQ */
.faq-accordion-container {
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 15px 0;
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  padding: 15px 0;
  cursor: pointer;
}

.faq-trigger:hover {
  color: var(--secondary);
}

.faq-icon-box {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.faq-icon-box::before, .faq-icon-box::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  transition: transform var(--transition-normal);
}

.faq-icon-box::before {
  top: 11px;
  left: 4px;
  width: 16px;
  height: 2px;
}

.faq-icon-box::after {
  top: 4px;
  left: 11px;
  width: 2px;
  height: 16px;
}

.faq-trigger[aria-expanded="true"] .faq-icon-box::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-trigger[aria-expanded="true"] .faq-icon-box::before {
  transform: rotate(180deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.faq-content {
  padding: 10px 0 20px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Formularios Premium */
.form-card {
  background-color: var(--bg-ivory);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--primary-light);
}

.form-control {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--bg-beige-dark);
  border-radius: 4px;
  background-color: var(--bg-beige);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.25);
}

/* Estructura del Blog */
.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

@media (max-width: 992px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

.blog-sidebar {
  background-color: var(--bg-ivory);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 30px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  margin-bottom: 30px;
}

.sidebar-widget:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  font-size: 1.2rem;
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.blog-list-links {
  list-style: none;
}

.blog-list-links li {
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.blog-list-links a {
  color: var(--text-muted);
}

.blog-list-links a:hover {
  color: var(--primary);
}

/* Pie de Página (Footer) */
.footer-main {
  background-color: #121813; /* Forzar fondo oscuro para footer premium */
  color: #EAE6DF;
  padding: 60px 0 20px 0;
  border-top: 2px solid var(--secondary);
  font-size: 0.9rem;
}

.footer-main h3, .footer-main h4 {
  color: var(--secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: #B2ADA6;
}

.footer-col a:hover {
  color: var(--text-light);
}

.footer-compliance-text {
  font-size: 0.8rem;
  color: #8C8780;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  margin-top: 20px;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  font-size: 0.8rem;
  color: #8C8780;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

/* Migas de Pan (Breadcrumbs) */
.breadcrumbs {
  background-color: var(--bg-beige-dark);
  padding: 12px 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.breadcrumbs ol {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumbs li::after {
  content: '/';
  margin-left: 8px;
  color: var(--secondary);
}

.breadcrumbs li:last-child::after {
  content: '';
}

.breadcrumbs a {
  color: var(--text-dark);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs li.active {
  color: var(--secondary);
  font-weight: 600;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Estilos de Menú Móvil Activo */
@media (max-width: 992px) {
  .btn-menu-toggle {
    display: block;
  }
  
  .nav-main {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: var(--bg-ivory);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 999;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg);
  }
  
  .nav-main.active {
    transform: translateX(0);
  }
  
  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  
  .nav-link {
    font-size: 1.1rem;
  }
  
  .btn-menu-toggle.active .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .btn-menu-toggle.active .burger-line:nth-child(2) {
    opacity: 0;
  }
  
  .btn-menu-toggle.active .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
