/* ==========================================================================
   SISTEMA DE DISEÑO & VARIABLES - DELIPOINT MINIMAL
   ========================================================================== */

:root {
  /* Colores de Marca */
  --primary: #6D8C81;          /* Sage Green - Identidad */
  --primary-dark: #58756a;     /* Sage Green Oscuro */
  --primary-light: #EBF2F0;    /* Mint Claro para fondos */
  --primary-glow: rgba(109, 140, 129, 0.2);
  
  --dark: #1c1c1c;             /* Negro carbón premium */
  --dark-light: #2d2e2e;       /* Gris carbón medio */
  
  --light: #F9F7F4;            /* Crema Hueso cálido */
  --white: #ffffff;
  
  /* Textos */
  --text-dark: #1c1c1c;
  --text-dark-muted: #6b6d6d;
  --text-light: #F9F7F4;
  --text-light-muted: #b3b3b3;
  
  /* Tipografía */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Bordes & Transiciones */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Sombras */
  --shadow-sm: 0 4px 15px rgba(28, 28, 28, 0.02);
  --shadow-md: 0 10px 30px rgba(28, 28, 28, 0.04);
  --shadow-lg: 0 20px 40px rgba(28, 28, 28, 0.08);
}

/* ==========================================================================
   RESET & ESTILOS BASE
   ========================================================================== */

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ==========================================================================
   COMPONENTES REUTILIZABLES & UTILIDADES
   ========================================================================== */

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.section-spacing {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section-spacing {
    padding: 60px 0;
  }
}

.bg-light {
  background-color: var(--light);
}

.bg-dark {
  background-color: var(--dark);
}

.text-white {
  color: var(--white) !important;
}

.text-muted {
  color: var(--text-light-muted) !important;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 12px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--dark);
  line-height: 1.2;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header {
  max-width: 600px;
  margin: 0 auto 50px auto;
  text-align: center;
}

.section-header p {
  color: var(--text-dark-muted);
  font-size: 1.05rem;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1.5px solid transparent;
  gap: 8px;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--dark);
  transform: translateY(-1px);
}

.divider {
  border: 0;
  height: 1px;
  background-color: rgba(57, 58, 58, 0.08);
  margin: 30px 0;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */

.main-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar {
  padding: 28px 0;
  transition: padding 0.4s ease;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 38px;
  width: auto;
  transition: all var(--transition-normal);
}

.logo-main {
  display: none;
}

.logo-white {
  display: block;
}

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

.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--primary);
  transition: width var(--transition-fast);
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* Sticky Header on Scroll */
.main-header.is-sticky {
  position: fixed;
  top: 0;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.07), 0 4px 20px rgba(0, 0, 0, 0.04);
  animation: slideNavDown 0.35s ease-out;
}

@keyframes slideNavDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.main-header.is-sticky .navbar {
  padding: 14px 0;
  border-bottom: 1px solid rgba(57, 58, 58, 0.05);
}

.main-header.is-sticky .logo-white {
  display: none;
}

.main-header.is-sticky .logo-main {
  display: block;
}

.main-header.is-sticky .nav-logo img {
  height: 34px;
}

.main-header.is-sticky .nav-links a {
  color: var(--text-dark);
}

.main-header.is-sticky .nav-links a:hover,
.main-header.is-sticky .nav-links a.active {
  color: var(--primary);
}

.main-header.is-sticky .menu-toggle .bar {
  background-color: var(--dark);
}

/* Hamburguesa móvil */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 100%;
  height: 1.5px;
  background-color: var(--white);
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 80px 30px 40px 30px;
    gap: 20px;
    transition: right var(--transition-normal);
    z-index: 999;
  }
  
  .nav-links.is-active {
    right: 0;
  }
  
  .nav-links a {
    color: var(--text-dark) !important;
    font-size: 1.05rem;
    display: block;
  }
  
  .menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  height: 100vh;
  min-height: 550px;
  background-image: url('images/local 1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--white);
}

@media (max-width: 768px) {
  .hero {
    background-position: 25% center;
  }
  .hero-container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(28, 28, 28, 0.85) 0%, rgba(57, 58, 58, 0.5) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 750px;
  padding-top: 90px;
}

.hero-tagline {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  margin-bottom: 36px;
  color: #e6e6e6;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-actions .btn-secondary:hover {
  background-color: var(--white);
  color: var(--dark);
}

.scroll-down-arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  font-size: 1.25rem;
  animation: bounce 2s infinite;
  opacity: 0.7;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -8px); }
  60% { transform: translate(-50%, -4px); }
}

/* ==========================================================================
   LA CARTA (Visual Grid)
   ========================================================================== */

.menu-controls {
  background-color: var(--white);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(57, 58, 58, 0.04);
}

.search-box {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dark-muted);
  font-size: 1rem;
}

#menu-search {
  width: 100%;
  padding: 14px 16px 14px 44px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1px solid rgba(57, 58, 58, 0.1);
  border-radius: var(--radius-sm);
  background-color: var(--light);
  color: var(--text-dark);
  outline: none;
  transition: all var(--transition-fast);
}

#menu-search:focus {
  background-color: var(--white);
  border-color: var(--primary);
}

.menu-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 4px;
}

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

.tab-btn {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  background-color: transparent;
  color: var(--text-dark-muted);
  border: 1px solid transparent;
  cursor: pointer;
}

.tab-btn:hover {
  color: var(--text-dark);
  background-color: var(--light);
}

.tab-btn.active {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

/* Platos Grid (Row layout matching Midpoint) */
.menu-display {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 40px;
}

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

@media (max-width: 480px) {
  .menu-item-card {
    gap: 15px;
    padding-bottom: 15px;
  }
  .menu-item-image-wrapper {
    width: 70px;
    height: 70px;
  }
  .menu-item-name {
    font-size: 1rem;
  }
}

.menu-item-card {
  background-color: transparent;
  border: none;
  box-shadow: none;
  transition: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(57, 58, 58, 0.1);
}

.menu-item-card:hover {
  transform: none;
  box-shadow: none;
}

.menu-item-image-wrapper {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--light);
}

.menu-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-item-info {
  padding: 0;
  text-align: left;
  flex-grow: 1;
}

.menu-item-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

.menu-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  color: var(--text-dark-muted);
}

.menu-no-results i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ==========================================================================
   PEDIDOS SECTION
   ========================================================================== */

.pedido-box {
  max-width: 580px;
  margin: 0 auto;
  padding: 40px 30px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.pedido-box h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  margin-bottom: 16px;
}

.pedido-text {
  font-size: 1.05rem;
  color: var(--text-light-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  font-family: var(--font-sans);
}

.catering-features {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.feature-item i {
  font-size: 1.4rem;
  color: var(--primary);
}

.feature-item h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 480px) {
  .catering-features {
    flex-direction: column;
    gap: 24px;
  }
}

.pedido-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn-call {
  background-color: var(--primary);
  color: var(--white);
}

.btn-call:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px var(--primary-glow);
}

.btn-whatsapp {
  background-color: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-whatsapp:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
  transform: translateY(-2px);
}

.pedido-contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-light-muted);
  font-weight: 500;
}

.pedido-contact-info .bullet {
  color: var(--primary);
}

@media (max-width: 576px) {
  .pedido-box {
    padding: 40px 20px;
  }
  .pedido-buttons .btn {
    width: 100%;
  }
}

/* ==========================================================================
   WHERE WE ARE & CONTACT
   ========================================================================== */

.location-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 500px;
}

@media (max-width: 768px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
  .location-map {
    height: 320px;
  }
}

.location-details {
  padding: 60px 10%;
  display: flex;
  align-items: center;
}

.container-inner {
  width: 100%;
  max-width: 440px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 24px 0;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-item i {
  font-size: 1.15rem;
  color: var(--primary);
  margin-top: 3px;
  flex-shrink: 0;
}

.contact-info-item h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--text-dark-muted);
}

.schedule-grid {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(57, 58, 58, 0.05);
  color: var(--text-dark-muted);
}

.schedule-row span:last-child {
  font-weight: 600;
  color: var(--dark);
}

.schedule-row.text-secondary span:last-child {
  color: #b84d4d;
}

.location-map {
  position: relative;
  width: 100%;
  height: 100%;
}

.location-map iframe {
  filter: grayscale(0.1) sepia(0.04);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.main-footer {
  background-color: var(--dark);
  color: #a6a6a6;
  padding: 60px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-top {
  text-align: center;
  margin-bottom: 30px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: 12px;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-light-muted);
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}

.footer-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light-muted);
}

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

.footer-divider {
  width: 100%;
  border: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.06);
  margin-bottom: 24px;
}

.footer-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: #7d7d7d;
}

.footer-bottom .legal-links {
  display: flex;
  gap: 20px;
}

.footer-bottom .legal-links a:hover {
  color: var(--text-light);
}

@media (max-width: 576px) {
  .footer-nav {
    gap: 12px 18px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom .legal-links {
    justify-content: center;
    width: 100%;
  }
}

/* ==========================================================================
   SCROLL REVEAL / OBSERVER
   ========================================================================== */

.sr-init {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.sr-init.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ==========================================================================
   LIGHTBOX MODAL FOR IMAGES
   ========================================================================== */
.menu-item-image-wrapper {
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.menu-item-image-wrapper:hover {
  transform: scale(1.05);
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(28, 28, 28, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

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

.lightbox-content {
  margin: auto;
  display: block;
  width: 85%;
  max-width: 550px;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

#lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 500px;
  text-align: center;
  color: var(--white);
  padding: 15px 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  user-select: none;
  z-index: 2001;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--primary);
  text-decoration: none;
}

@media (max-width: 768px) {
  .lightbox-content {
    width: 90%;
  }
  .lightbox-close {
    right: 20px;
    top: 10px;
  }
}
