/* OPTIMIZED BUILD */
/* main.css - Versión corregida */
:root {
  --color-beige-light: #FDF8F2;
  --color-beige: #F5E6D3;
  --color-beige-dark: #E8D5BF;
  --color-red: #B22222;
  --color-red-dark: #8B1A1A;
  --color-red-soft: #D44A4A;
  --color-text-dark: #2C1810;
  --color-text-body: #4A3B2F;
  --color-white: #FFFFFF;
  --color-black: #1A1A1A;

  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Lora', serif;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  color: var(--color-text-body);
  background-color: var(--color-beige-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

main { 
  position: relative; 
  z-index: 10; 
}

/* ===== HEADER (logo sin filtro) ===== */
.site-header {
  background-color: var(--color-red);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: block;
  max-width: 120px;
  transition: var(--transition);
}

.logo-link:hover {
  transform: scale(1.05);
}

.site-logo {
  width: 100%;
  height: auto;
  /* SIN FILTRO - color original */
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.main-nav a {
  color: white;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  border-bottom-color: white;
}

.btn-small {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

/* Toast system */
.toast-container {
  position: fixed; top: 1.5rem; right: 1.5rem;
  z-index: 9000; display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
  padding: 0.75rem 1rem; border-radius: 8px;
  color: white; font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: toastIn 0.3s ease;
}
.toast.success { background: #10B981; }
.toast.error { background: #EF4444; }
.toast.hiding { animation: toastOut 0.3s ease; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
  z-index: 9999; transition: all 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,0.6);
}

/* Powered by HELIX */
.helix-powered {
  text-align: center; padding: 1rem;
}
.helix-powered a {
  font-size: 10px; color: #999; opacity: 0.35;
  text-decoration: none; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
  transition: opacity 0.2s;
}
.helix-powered a:hover { opacity: 0.7; }

/* Botones */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background-color: var(--color-red);
  color: white;
}
.btn-primary:hover {
  background-color: var(--color-red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-secondary {
  background-color: var(--color-beige-dark);
  color: var(--color-red);
  border: 2px solid var(--color-red);
}
.btn-secondary:hover {
  background-color: var(--color-red);
  color: white;
}
.btn-outline {
  background-color: transparent;
  color: white;
  border-color: white;
}
.btn-outline:hover {
  background-color: white;
  color: var(--color-red);
}

/* ===== HERO - overlay SOLO en textos ===== */
.hero {
  background: url('https://zwjpboamxuusvaygnhdt.supabase.co/storage/v1/object/public/PTPS/IMPERIO%20BG.png') center/cover fixed;
  min-height: 85vh;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-text-container {
  background: linear-gradient(135deg, rgba(178,34,34,0.9) 0%, rgba(139,0,0,0.8) 100%);
  padding: var(--space-lg);
  border-radius: var(--border-radius);
  backdrop-filter: blur(2px);
  display: inline-block;
  width: 100%;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: white;
  margin-bottom: var(--space-sm);
}

.hero-title span {
  color: var(--color-beige);
  display: block;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* Secciones generales */
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: var(--space-xs);
}
.section-title span {
  color: var(--color-red);
}
.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
  color: var(--color-text-body);
}

/* Items Grid */
.items-section {
  padding: var(--space-xl) 0;
  background-color: white;
}
.empanadas-section {
  background-color: var(--color-beige-light);
}
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}
.item-card {
  background: var(--color-beige-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.item-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.item-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.item-card h3 {
  font-size: 1.5rem;
  margin: var(--space-sm) var(--space-sm) var(--space-xs);
  color: var(--color-red);
}
.item-card p {
  padding: 0 var(--space-sm);
  margin-bottom: var(--space-xs);
}
.item-card .price {
  display: block;
  padding: 0 var(--space-sm) var(--space-sm);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-text-dark);
  font-family: var(--font-primary);
}

/* About Section */
.about-section {
  padding: var(--space-xl) 0;
  background-color: var(--color-beige);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.about-content .section-title {
  text-align: left;
}
.about-content p {
  margin-bottom: var(--space-md);
}
.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 400px;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact Section */
.contact-section {
  padding: var(--space-xl) 0;
  background-color: white;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
.contact-info address {
  font-style: normal;
  margin: var(--space-md) 0;
}
.contact-info address p {
  margin-bottom: var(--space-xs);
}
.contact-info address a {
  color: var(--color-red);
  text-decoration: underline;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid var(--color-beige-dark);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-secondary);
  background-color: var(--color-beige-light);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-red-soft);
}
.contact-map {
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 350px;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --space-xl: 3rem;
  }
  
  .header-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
  }
  
  .main-nav ul {
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-text-container {
    padding: var(--space-md);
  }
  
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .about-image {
    order: -1;
    height: 300px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .hero-cta .btn {
    width: 80%;
  }
}