/* ==========================================================================
   LA PAROTA MEXICAN RESTAURANT - STYLESHEET
   Replica exacta y moderna del sitio oficial
   ========================================================================== */

/* --- Fonts & Base Reset --- */
@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Roboto:wght@300;400;500;700&display=swap');

/* Fallback local fonts definition */
@font-face {
  font-family: 'Amatic SC Local';
  src: url('../fonts/amaticsc-tuzyzwprpvbs1izr_voecusf.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Local';
  src: url('../fonts/roboto-kfo5cnqeu92fr1mu53zec9_vu3r1gihoszmkbnka.woff2') format('woff2');
  font-weight: 300 400 700;
  font-display: swap;
}

:root {
  --font-heading: 'Amatic SC', 'Amatic SC Local', cursive, sans-serif;
  --font-body: 'Roboto', 'Roboto Local', sans-serif;
  
  --color-bg-dark: #000000;
  --color-history: #8B5F5B;
  --color-contact: #6C7A81;
  --color-text-white: #FFFFFF;
  --color-tab-inactive: #958686;
  --color-tab-active: #F44336;
  --color-tab-border: #E1D8D8;
  --color-nav-inactive: #7A7A7A;
  --color-accent-blue: #3498db;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-white);
  background-color: var(--color-bg-dark);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ==========================================================================
   1. TOP NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header.scrolled {
  background-color: rgba(0, 0, 0, 0.98);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 15px;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--color-nav-inactive);
  padding: 5px 14px;
  border-radius: 2px;
  transition: all 0.25s ease;
  display: inline-block;
  text-transform: uppercase;
}

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

.nav-link.active {
  background-color: #E2E2E2;
  color: #111111;
  font-weight: 800;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 28px;
  cursor: pointer;
  padding: 4px 8px;
  margin-left: auto;
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: url('../images/logo.png') no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 0 40px 60px 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.hero-btn-container {
  position: relative;
  z-index: 10;
  margin-top: auto;
}

.btn-see-menu {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-see-menu:hover {
  background-color: #1e1e1e;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   3. MENU SECTION
   ========================================================================== */
.menu-section {
  background-color: var(--color-bg-dark);
  padding: 60px 20px 80px;
  position: relative;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 3px;
  text-align: center;
  color: #FFFFFF;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.menu-container {
  max-width: 1000px;
  margin: 0 auto;
}

.menu-layout {
  display: flex;
  align-items: flex-start;
  gap: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Tabs Left Navigation */
.menu-tabs-nav {
  display: flex;
  flex-direction: column;
  flex: 0 0 280px;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--color-tab-border);
  border-right: none;
  color: var(--color-tab-inactive);
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 1px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.tab-btn:hover {
  color: #E2E2E2;
}

.tab-btn.active {
  background-color: #FFFFFF;
  color: var(--color-tab-active);
  font-weight: 800;
  border-right: 1px solid #FFFFFF;
  margin-right: -1px;
  z-index: 5;
}

/* Tabs Right Content */
.menu-tabs-content {
  flex: 1;
  background-color: #FFFFFF;
  border: 1px solid var(--color-tab-border);
  padding: 20px;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tab-panel {
  display: none;
  width: 100%;
  text-align: center;
  animation: fadeIn 0.35s ease;
}

.tab-panel.active {
  display: block;
}

.menu-page-img {
  margin: 0 auto;
  max-width: 100%;
  max-height: 850px;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.menu-page-img:hover {
  opacity: 0.96;
}

.menu-hint {
  margin-top: 10px;
  color: #777777;
  font-size: 13px;
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   4. HISTORY / ABOUT SECTION
   ========================================================================== */
.history-section {
  background-color: var(--color-history);
  padding: 70px 20px 80px;
  position: relative;
}

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

.history-title {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  color: #FFFFFF;
  margin-bottom: 25px;
}

.history-text {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.65;
  color: #FFFFFF;
  text-align: center;
  max-width: 950px;
  margin: 0 auto 50px;
}

.history-details-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
}

.hours-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 1px;
  color: #FFFFFF;
  text-align: center;
}

.hours-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hours-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #FFFFFF;
}

.hours-icon {
  font-size: 18px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.history-image-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.food-dish-img {
  width: 230px;
  height: 290px;
  object-fit: cover;
  border-radius: 131px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}

.food-dish-img:hover {
  transform: scale(1.03);
}

/* ==========================================================================
   5. GOOGLE MAPS SECTION
   ========================================================================== */
.map-section {
  width: 100%;
  line-height: 0;
  background-color: #000000;
}

.map-iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
}

.section-divider {
  width: 100%;
  height: 6px;
  background-color: #000000;
}

/* ==========================================================================
   6. CONTACT SECTION
   ========================================================================== */
.contact-section {
  background-color: var(--color-contact);
  padding: 70px 20px 80px;
  text-align: center;
}

.contact-container {
  max-width: 900px;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--font-heading);
  font-size: 54px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.contact-info {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #FFFFFF;
  line-height: 1.4;
}

.contact-info a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.contact-info a:hover {
  color: #f1c40f;
}

/* ==========================================================================
   7. FOOTER SECTION
   ========================================================================== */
.site-footer {
  background-color: var(--color-bg-dark);
  padding: 50px 20px;
  text-align: center;
}

.footer-text {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #FFFFFF;
}

.footer-text a {
  color: var(--color-accent-blue);
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.footer-text a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* ==========================================================================
   8. LIGHTBOX MODAL (FOR HIGH-RES MENU INSPECTION)
   ========================================================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  cursor: zoom-out;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-img {
  max-width: 95vw;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #FFFFFF;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ==========================================================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 900px) {
  .hero-section {
    padding: 0 20px 40px 0;
    min-height: 80vh;
  }

  .btn-see-menu {
    font-size: 26px;
    padding: 8px 18px;
  }

  .menu-layout {
    flex-direction: column;
  }

  .menu-tabs-nav {
    flex: 1 1 auto;
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    border-right: 1px solid var(--color-tab-border);
  }

  .tab-btn {
    border-right: 1px solid var(--color-tab-border);
    border-bottom: none;
    font-size: 22px;
    padding: 12px 14px;
    flex-shrink: 0;
  }

  .tab-btn.active {
    border-right: 1px solid var(--color-tab-border);
    border-bottom: 2px solid var(--color-tab-active);
    margin-right: 0;
  }

  .menu-tabs-content {
    min-height: 480px;
    padding: 15px;
  }

  .history-details-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 35px;
  }

  .hours-list {
    align-items: center;
  }

  .hours-item {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    font-size: 28px;
  }

  .nav-link.active {
    background-color: #333333;
    color: #FFFFFF;
  }

  .section-title {
    font-size: 48px;
  }

  .history-title {
    font-size: 42px;
  }

  .history-text {
    font-size: 18px;
  }

  .hours-title {
    font-size: 30px;
  }

  .contact-title {
    font-size: 42px;
  }

  .contact-info {
    font-size: 22px;
  }

  .footer-text {
    font-size: 26px;
  }
}
