:root {
  --green-dark: #0a4f3f;
  --green-light: #c9e6c1;
  --brown-light: #d7c0ae;
  --text: #1f2a1f;
  --muted: #66726a;
  --bg: #f7f6f4;
  --yellow: #ffd54f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  padding-top: 54px; /* Space for fixed header */
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a[href^="tel:"] {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
}

a[href^="tel:"]:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  backdrop-filter: saturate(180%) blur(6px);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--green-dark); color: #fff;
}
.lang-selector { position: relative; display: flex; align-items: center; margin-left: 5px; }
.lang-btn { background: transparent; border: none; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 4px 8px; font-family: inherit; }
.lang-btn span { font-size: 10px; transition: transform 0.2s; }
.lang-selector.open .lang-btn span { transform: rotate(180deg); }
.lang-menu { position: absolute; top: 100%; right: 0; background: #fff; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); display: none; flex-direction: column; min-width: 60px; overflow: hidden; z-index: 1001; margin-top: 5px; }
.lang-selector.open .lang-menu { display: flex; }
.lang-menu a { color: var(--text); text-decoration: none; padding: 8px 12px; font-size: 14px; font-weight: 600; text-align: center; transition: background 0.2s; }
.lang-menu a:hover { background: var(--bg); }
.lang-menu a.active { color: var(--green-dark); background: var(--bg); }

@media (max-width: 480px) {
  .lang-btn { font-size: 12px; padding: 4px; }
  .lang-menu a { font-size: 12px; padding: 6px 10px; }
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: 0.2px; color: var(--yellow); font-size: 1.3rem; }
.logo-img { height: 32px; width: auto; object-fit: contain; }
/* Popular Dishes */
.popular-dishes { background: #fff; padding: 80px 20px; }
.popular-grid { 
  display: grid; 
  gap: 16px; 
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
}
.popular-item {
  display: flex; 
  align-items: center; 
  gap: 14px; 
  padding: 14px 18px;
  background: #fdfcfb; 
  border: 1px solid #eee;
  border-radius: 50px; /* Pill shape */
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.popular-item:hover { 
  transform: translateY(-2px); 
  background: #fff;
  border-color: var(--green-dark);
  box-shadow: 0 5px 15px rgba(10,79,63,0.1);
}
.check-icon { 
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--green-dark);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(10,79,63,0.2);
}
/* Geometric Checkmark with CSS */
.check-icon::after {
  content: "";
  display: block;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  margin-top: -2px; /* Visual centering adjustment */
}

.footer-brand-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.footer-logo { height: 40px; margin-bottom: 0; }
.status { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc; /* Default */
}
.open .status-indicator { background: #4caf50; box-shadow: 0 0 8px #4caf50; }
.closed .status-indicator { background: #f44336; box-shadow: 0 0 8px #f44336; }

.navbar {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border-bottom: 1px solid #e8e5e0;
}
.nav-toggle {
  display: none; margin: 10px 16px; font-size: 22px; background: transparent; border: none; color: var(--green-dark);
}
.nav-links {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 16px; margin: 0;
}
.nav-links a {
  display: block; padding: 8px 10px; border-radius: 8px;
  color: var(--green-dark); text-decoration: none; font-weight: 500;
}
ul.nav-links.desktop-white {
  display: flex !important;
}
ul.nav-links.desktop-white a {
  color: #ffffff !important;
}
ul.nav-links.desktop-white a:hover { 
  background: rgba(255, 255, 255, 0.2) !important; 
  color: #ffffff !important; 
}
@media (max-width: 640px) {
  ul.nav-links.desktop-white {
    display: none !important; /* Will be toggled to flex by JS .open */
  }
  ul.nav-links.desktop-white.open {
    display: flex !important;
  }
  ul.nav-links.desktop-white a {
    color: var(--green-dark) !important;
  }
  ul.nav-links.desktop-white a:hover {
    background: var(--green-light) !important;
    color: #093b2f !important;
  }
}
.nav-links a:hover { background: var(--green-light); color: #093b2f; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; }
.hero-media {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(10,79,63,0.65), rgba(10,79,63,0.2)),
    url("data/c6d50f3e-8a97-4b1e-bbf3-feff610d6f88.png");
  background-size: cover; background-position: center;
}
.hero-content {
  position: relative; text-align: center; color: #fff; padding: 24px;
  max-width: 520px; margin: 0 auto;
}
.hero h1 { font-size: 48px; margin: 0 0 10px; color: var(--yellow); text-shadow: 0 2px 8px rgba(0,0,0,0.45); }
.hero p { font-size: 18px; margin: 0 0 10px; text-shadow: 0 1px 5px rgba(0,0,0,0.5); }
.hero-rating {
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: #3c4043; /* Google gray */
  font-size: 14px;
  text-shadow: none; /* Clear text on light bg */
}
.stars-container {
  display: flex;
  align-items: center;
  gap: 6px;
  border-right: 1px solid #dadce0;
  padding-right: 12px;
}
.stars-outer {
  position: relative;
  display: inline-block;
  font-size: 16px;
  line-height: 1;
}
.stars-outer::before {
  content: "\2605\2605\2605\2605\2605";
  color: #dadce0;
}
.stars-inner {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
}
.stars-inner::before {
  content: "\2605\2605\2605\2605\2605";
  color: #fbbc04; /* Google Star Yellow */
}
.rating-text {
  font-weight: 500;
  color: #3c4043;
}
.hero-rating a {
  color: #1a73e8; /* Google Link Blue */
  text-decoration: none;
  font-weight: 600;
}
.hero-rating a:hover {
  text-decoration: underline;
}
.btn-group { display: inline-flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; }

/* Sections */
.section { padding: 64px 20px; }
.section.alt { background: #fff; }
.container { max-width: 1100px; margin: 0 auto; }
.section h2 { margin: 0 0 14px; font-size: 32px; color: var(--green-dark); }
.section-lead { color: var(--muted); margin-bottom: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; border: 2px solid var(--green-dark); color: var(--green-dark); }
.btn:hover { background: var(--green-light); }
.btn.primary { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.btn.primary:hover { background: #093b2f; }
.btn.outline { background: transparent; }
.btn.btn-reservas { background: transparent; }
.btn.btn-reservas:hover { background: #fff9c4; color: var(--green-dark); text-decoration: underline; }
.btn.btn-google { background: transparent; transition: all 0.3s; }
.btn.btn-google:hover { background: #8ab4f8; color: #fff; text-decoration: underline; border-color: transparent; }
/* Botón de direcciones con texto blanco en el hero */
#directionsBtn { color: #fff; border-color: #fff; }
#directionsBtn:hover { background: #ffffff22; }

/* Menu grid */
.menu-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.menu-card {
  background: #fff; border: 1px solid #e8e5e0; border-radius: 14px; padding: 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.menu-card h3 { color: #3a2a1b; margin-top: 0; }
.menu-card ul { list-style: none; padding: 0; margin: 0; }
.menu-card li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #eee; }
.menu-card li:last-child { border-bottom: none; }
.note { margin-top: 16px; background: var(--brown-light); color: #3a2a1b; padding: 12px 14px; border-radius: 12px; }

/* Gallery */
.gallery-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; }

/* Two columns */
.two-cols { display: grid; gap: 20px; grid-template-columns: 2fr 1fr; align-items: start; }
.info-card { background: #fff; border: 1px solid #e8e5e0; border-radius: 14px; padding: 16px; }
.schedule { list-style: none; padding: 0; margin: 0; }
.schedule li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #eee; }
.schedule li.closed { color: #b66; }
.reserve { display: flex; gap: 10px; margin-top: 10px; }
.muted { color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.badge { background: var(--green-light); color: #093b2f; padding: 6px 10px; border-radius: 999px; font-size: 13px; }
.badge.muted { background: #eee; color: #666; }

/* Features */
.features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature { background: #fff; border: 1px solid #e8e5e0; border-radius: 14px; padding: 16px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 6px 0; }

/* Contact */
.contact-form { display: grid; gap: 12px; }
.form-field { display: grid; gap: 6px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d9d6d1; border-radius: 10px; background: #fff;
}
.form-status { margin-top: 8px; font-size: 14px; }

/* Map */
.map-wrap { border-radius: 16px; overflow: hidden; border: 1px solid #e8e5e0; }
.map-link { margin-top: 12px; }

/* Footer */
.footer { background: var(--green-dark); color: #fff; padding: 24px 20px; margin-top: 24px; }
.footer-grid { display: grid; gap: 16px; grid-template-columns: 2fr 1fr; align-items: center; }
.social { display: flex; gap: 8px; justify-content: flex-end; }
.social-btn { color: #fff; border: 2px solid #ffffff33; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.social-btn:hover { background: #ffffff22; }
.tiny { margin-top: 8px; text-align: center; }
/* Highlight brand name in footer */
.handwritten {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  display: inline-block;
  transform: rotate(-2deg); /* Subtle rotation for handwriting feel */
}

/* Adjust sizes for specific contexts */
.brand .handwritten { font-size: 1.2em; }
h1 .handwritten { font-size: 1.1em; }

.footer strong { color: var(--yellow); font-size: 1.3rem; }

/* Floating Buttons */
.floating-btns {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}
.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.floating-btn svg {
  fill: #ffffff !important;
}
.floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
  color: #ffffff !important;
}
.call-btn {
  background: #007AFF; /* Bright blue for better visibility */
}
.wa-btn {
  background: #25D366; /* WhatsApp color */
}
