/* ===== VARIABLES & RESET ===== */
:root {
  --primary: #C84B31;
  --primary-dark: #A33D28;
  --secondary: #7D2E2E;
  --gold: #D4A843;
  --gold-light: #E8C96A;
  --dark: #1E1E1E;
  --dark-soft: #5A5A5A;
  --cream: #FFF8F0;
  --cream-dark: #F0E6D6;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 56px rgba(0,0,0,0.12);
  --shadow-glow: 0 8px 32px rgba(212, 168, 67, 0.15);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
  will-change: background, padding;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.navbar.scrolled {
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 4px 24px rgba(0,0,0,0.06);
  padding: 8px 0;
}

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

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

.navbar.scrolled .nav-logo-img {
  height: 56px;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  transition: var(--transition);
}

.navbar.scrolled .nav-links a {
  color: var(--dark);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

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

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Toggle */
.lang-toggle {
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.navbar.scrolled .lang-toggle {
  background: rgba(200, 75, 49, 0.08);
  border-color: var(--primary);
}

.lang-option {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
  transition: var(--transition);
}

.navbar.scrolled .lang-option {
  color: var(--dark-soft);
}

.lang-option.active {
  color: var(--white);
}

.navbar.scrolled .lang-option.active {
  color: var(--primary);
}

.lang-divider {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

.navbar.scrolled .lang-divider {
  color: var(--dark-soft);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .hamburger span {
  background: var(--dark);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #1a0e0e;
  text-align: center;
  overflow: hidden;
}

/* Photo slideshow */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroSlide 24s ease-in-out infinite;
  will-change: opacity, transform;
  transform: scale(1.08);
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }

@keyframes heroSlide {
  0%      { opacity: 0; transform: scale(1.08); }
  4%      { opacity: 1; }
  25%     { opacity: 1; transform: scale(1); }
  29%     { opacity: 0; transform: scale(1.02); }
  100%    { opacity: 0; transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(10, 5, 5, 0.82) 0%,
      rgba(15, 8, 8, 0.65) 40%,
      rgba(10, 5, 5, 0.82) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
  padding: 0 24px;
}

.hero-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--gold-light);
  margin-bottom: 24px;
  font-weight: 700;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  color: var(--white);
  margin-bottom: 28px;
  font-weight: 900;
  text-shadow: 0 4px 32px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.3);
  line-height: 1.1;
}

.hero-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-arrow {
  width: 28px;
  height: 28px;
  border-right: 2px solid rgba(255,255,255,0.4);
  border-bottom: 2px solid rgba(255,255,255,0.4);
  transform: rotate(45deg);
  animation: scrollBounce 2.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.3; }
  50% { transform: rotate(45deg) translateY(10px); opacity: 0.8; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--dark);
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(212, 168, 67, 0.5);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-3px);
}

.btn-full {
  width: 100%;
}

/* ===== SECTIONS ===== */
.section {
  padding: 110px 0;
  position: relative;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  padding-left: 40px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--dark-soft);
  max-width: 520px;
  line-height: 1.8;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-tag::before {
  display: none;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ===== ABOUT ===== */
.about {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

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

.about-text p {
  margin-bottom: 20px;
  color: var(--dark-soft);
  font-size: 1.05rem;
  line-height: 1.85;
}

.about-features {
  display: flex;
  gap: 24px;
  margin-top: 36px;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2rem;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.feature:hover .feature-icon {
  background: var(--gold);
  box-shadow: var(--shadow-glow);
}

.feature span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-lg);
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.02);
}

.about-image-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 140px;
  height: 120px;
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  opacity: 0.3;
  z-index: -1;
}

.cross-decoration {
  position: absolute;
  bottom: 40px;
  right: 60px;
  font-size: 6rem;
  color: var(--gold);
  opacity: 0.06;
  font-weight: 300;
}

/* ===== MENU ===== */
.menu-section {
  background: var(--cream);
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.menu-tab {
  padding: 10px 24px;
  border: 2px solid var(--cream-dark);
  background: var(--white);
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-soft);
  cursor: pointer;
  transition: var(--transition);
}

.menu-tab:hover {
  border-color: var(--gold);
  color: var(--primary);
}

.menu-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

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

.menu-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow);
}

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

.menu-card:hover .menu-card-img {
  transform: scale(1.06);
}

.menu-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.menu-card-content {
  padding: 24px;
}

.menu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.menu-card-header h3 {
  font-size: 1.15rem;
  color: var(--dark);
}

.menu-price {
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  background: rgba(200, 75, 49, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
}

.menu-card p {
  font-size: 0.9rem;
  color: var(--dark-soft);
  line-height: 1.6;
}

/* Menu CTA */
.menu-cta {
  margin-top: 48px;
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 60%, var(--gold) 140%);
  border-radius: var(--radius);
  padding: 56px 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-box h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cta-box p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 24px;
}

.cta-box .btn-primary {
  font-size: 1.05rem;
  padding: 16px 40px;
}

/* ===== GALLERY ===== */
.gallery-section {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.gallery-item:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.gallery-item-lg {
  grid-column: span 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  max-height: 300px;
  transition: transform 0.6s ease;
}

.gallery-note {
  text-align: center;
  margin-top: 32px;
  font-size: 1rem;
  color: var(--dark-soft);
  font-weight: 600;
}

/* ===== LOCATION ===== */
.location-section {
  background: var(--cream);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.info-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 16px;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.info-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 12px;
  flex-shrink: 0;
}

.info-card h3 {
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 6px;
}

.info-card p, .info-card a {
  font-size: 0.95rem;
  color: var(--dark-soft);
  line-height: 1.6;
}

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

.hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  font-size: 0.9rem;
  color: var(--dark-soft);
}

.hours-grid .closed {
  color: var(--primary);
  font-weight: 600;
}

.services-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.badge {
  padding: 8px 16px;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
}

.badge:hover {
  background: var(--gold);
  color: var(--white);
}

.location-map iframe {
  width: 100%;
  min-height: 450px;
}

/* ===== CONTACT ===== */
.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--cream);
  padding: 44px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.03);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-social h3,
.contact-quick h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--dark);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 50%;
  color: var(--primary);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.quick-link {
  display: block;
  padding: 14px 20px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  transition: var(--transition);
}

.quick-link:hover {
  background: var(--cream-dark);
  color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(180deg, var(--dark) 0%, #141414 100%);
  color: var(--white);
  padding: 72px 0 36px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

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

.footer-logo {
  height: 80px;
  margin: 0 auto 12px;
  filter: brightness(1.5);
}

.footer-tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
}

/* Bible Verse */
.footer-verse {
  max-width: 560px;
  margin: 0 auto 40px;
  padding: 32px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(212, 168, 67, 0.15);
  position: relative;
}

.verse-cross {
  font-size: 1.2rem;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 12px;
}

.footer-verse blockquote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-verse cite {
  font-size: 0.85rem;
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 1px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ===== ACTIVE NAV LINK ===== */
.nav-links a.active {
  color: var(--gold) !important;
}

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

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  background:
    linear-gradient(135deg,
      rgba(35, 18, 18, 0.95) 0%,
      rgba(85, 30, 30, 0.92) 35%,
      rgba(125, 46, 46, 0.88) 70%,
      rgba(160, 100, 40, 0.85) 100%
    );
  overflow: hidden;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 24px 60px;
}

.page-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 900;
}

.page-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin: 0 auto;
}

.page-hero-carniceria {
  background:
    linear-gradient(135deg,
      rgba(35, 18, 18, 0.7) 0%,
      rgba(85, 30, 30, 0.65) 35%,
      rgba(125, 46, 46, 0.6) 70%,
      rgba(160, 100, 40, 0.55) 100%
    ),
    url('photos/carniceria_1.jpg') center/cover no-repeat;
}

.page-hero-tienda {
  background:
    linear-gradient(135deg,
      rgba(35, 18, 18, 0.7) 0%,
      rgba(85, 30, 30, 0.65) 35%,
      rgba(125, 46, 46, 0.6) 70%,
      rgba(160, 100, 40, 0.55) 100%
    ),
    url('photos/chimichangas.jpg') center/cover no-repeat;
}

/* Carnicería photo showcase */
.carniceria-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
}

.carniceria-showcase-main {
  grid-row: 1 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}

.carniceria-showcase-main img,
.carniceria-showcase-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.5s ease;
}

.carniceria-showcase-main:hover img,
.carniceria-showcase-side:hover img {
  transform: scale(1.03);
}

.carniceria-showcase-side {
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 768px) {
  .carniceria-showcase {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .carniceria-showcase-main {
    grid-row: auto;
  }
  .carniceria-showcase-main img,
  .carniceria-showcase-side img {
    height: 240px;
  }
}

/* ===== HIGHLIGHT SECTIONS (Homepage carnicería/tienda) ===== */
.highlight-section {
  overflow: hidden;
}

.highlight-carniceria {
  background: var(--white);
}

.highlight-tienda {
  background: var(--cream);
}

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

.highlight-grid-reverse {
  direction: rtl;
}

.highlight-grid-reverse > * {
  direction: ltr;
}

.highlight-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.highlight-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.highlight-image:hover img {
  transform: scale(1.03);
}

.highlight-image-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--dark);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  backdrop-filter: blur(4px);
}

.highlight-text .section-title {
  margin-bottom: 20px;
}

.highlight-text p {
  color: var(--dark-soft);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.8;
}

.highlight-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.highlight-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.highlight-tienda .highlight-feature-item {
  background: var(--white);
}

.highlight-feature-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.highlight-feature-icon {
  font-size: 1.4rem;
}

/* ===== MENU PREVIEW (Homepage) ===== */
.menu-preview-section {
  background: var(--white);
}

.menu-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.menu-preview-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.menu-preview-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.menu-preview-card:hover img {
  transform: scale(1.08);
}

.menu-preview-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.menu-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.05) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  transition: var(--transition);
}

.menu-preview-card:hover .menu-preview-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.2) 55%, rgba(0,0,0,0.1) 100%);
}

.menu-preview-overlay h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 8px;
  transform: translateY(4px);
  transition: transform 0.4s ease;
}

.menu-preview-card:hover .menu-preview-overlay h3 {
  transform: translateY(0);
}

.menu-preview-overlay p {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s ease;
}

.menu-preview-card:hover .menu-preview-overlay p {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BTN UTILITIES ===== */
.btn-lg {
  padding: 18px 48px;
  font-size: 1.05rem;
}

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

/* ===== PAGE INTRO ===== */
.page-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.page-intro-text {
  font-size: 1.1rem;
  color: var(--dark-soft);
  line-height: 1.8;
  margin-top: 16px;
}

/* ===== PRODUCT CARDS (Carnicería & Tienda) ===== */
.carniceria-grid,
.tienda-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow);
}

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

.product-card:hover .product-card-img {
  transform: scale(1.06);
}

.product-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.product-card-body {
  padding: 24px 20px;
}

.product-card-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.product-card h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.product-card p {
  font-size: 0.95rem;
  color: var(--dark-soft);
  line-height: 1.7;
  margin-bottom: 16px;
}

.product-price {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(200, 75, 49, 0.08);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
}

.product-card-cta {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: var(--white);
  border: none;
}

.product-card-cta h3,
.product-card-cta p {
  color: var(--white);
}

.product-card-cta p {
  opacity: 0.9;
}

.product-card-cta:hover {
  transform: translateY(-6px);
}

/* ===== SECTION DARK ===== */
.section-dark {
  background: var(--dark);
  color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.why-item {
  padding: 32px 24px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}

.why-item:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-4px);
  border-color: rgba(212, 168, 67, 0.2);
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.why-item h3 {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.why-item p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ===== TIENDA CTA ===== */
.tienda-cta {
  text-align: center;
  padding: 20px 0;
}

.tienda-cta h2 {
  color: var(--cream);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 12px;
}

.tienda-cta p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.tienda-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.tienda-cta .btn-secondary {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

.tienda-cta .btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered card animations */
.menu-grid .menu-card.fade-in.visible,
.carniceria-grid .product-card.fade-in.visible,
.tienda-grid .product-card.fade-in.visible {
  transition-delay: calc(var(--stagger, 0) * 0.08s);
}

.menu-grid .menu-card:nth-child(1) { --stagger: 0; }
.menu-grid .menu-card:nth-child(2) { --stagger: 1; }
.menu-grid .menu-card:nth-child(3) { --stagger: 2; }
.menu-grid .menu-card:nth-child(4) { --stagger: 3; }
.menu-grid .menu-card:nth-child(5) { --stagger: 4; }
.menu-grid .menu-card:nth-child(6) { --stagger: 5; }

.carniceria-grid .product-card:nth-child(1),
.tienda-grid .product-card:nth-child(1) { --stagger: 0; }
.carniceria-grid .product-card:nth-child(2),
.tienda-grid .product-card:nth-child(2) { --stagger: 1; }
.carniceria-grid .product-card:nth-child(3),
.tienda-grid .product-card:nth-child(3) { --stagger: 2; }
.carniceria-grid .product-card:nth-child(4),
.tienda-grid .product-card:nth-child(4) { --stagger: 3; }
.carniceria-grid .product-card:nth-child(5),
.tienda-grid .product-card:nth-child(5) { --stagger: 4; }
.carniceria-grid .product-card:nth-child(6),
.tienda-grid .product-card:nth-child(6) { --stagger: 5; }

/* Gallery items stagger */
.gallery-grid .gallery-item:nth-child(1) { --stagger: 0; }
.gallery-grid .gallery-item:nth-child(2) { --stagger: 1; }
.gallery-grid .gallery-item:nth-child(3) { --stagger: 2; }
.gallery-grid .gallery-item:nth-child(4) { --stagger: 3; }
.gallery-grid .gallery-item:nth-child(5) { --stagger: 4; }
.gallery-grid .gallery-item:nth-child(6) { --stagger: 5; }

.gallery-grid .gallery-item.fade-in.visible {
  transition-delay: calc(var(--stagger, 0) * 0.1s);
}

/* Subtle section divider line */
.section + .section::before {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item-lg {
    grid-column: span 1;
  }

  .highlight-grid,
  .highlight-grid-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }

  .highlight-image {
    order: -1;
  }

  .menu-preview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .carniceria-grid,
  .tienda-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 45, 45, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 998;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    color: var(--white) !important;
    font-size: 1.3rem;
    letter-spacing: 3px;
  }

  .hamburger {
    display: flex;
    z-index: 999;
  }

  .hamburger.active span {
    background: var(--white) !important;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .about-features {
    flex-wrap: wrap;
    justify-content: center;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-tabs {
    gap: 6px;
  }

  .menu-tab {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .section {
    padding: 70px 0;
  }

  .services-badges {
    justify-content: center;
  }

  .contact-form {
    padding: 24px;
  }

  .menu-preview-grid {
    grid-template-columns: 1fr;
  }

  .carniceria-grid,
  .tienda-grid {
    grid-template-columns: 1fr;
  }

  .highlight-features {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: 35vh;
  }

  .page-hero-content {
    padding: 100px 24px 40px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 2px;
  }

  .location-map iframe {
    min-height: 300px;
  }
}