/* OPTIMIZED BUILD */
/* main.css */
:root {
  --primary: #8B5A2B;    /* marrón dulce de leche / campo */
  --secondary: #D9A066;  /* caramelo / crema */
  --accent: #C94F4F;     /* frutos rojos para contraste */
  --text: #2E241F;
  --bg-light: #FEF9F0;   /* fondo manteca */
  --bg-card: #FFFFFFE0;
  --soft-shadow: 0 8px 20px rgba(0,0,0,0.05);
  --border-radius: 24px;
  --font-family: 'Quicksand', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-light);
  color: var(--text);
  line-height: 1.5;
}

main {
  position: relative;
  z-index: 10;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* NAV */
.nav {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.9);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 0;
}

.nav-logo {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--accent);
}

/* HERO - SIN IMAGEN DE FONDO */
.hero {
  min-height: 90vh;
  background: transparent; /* Fondo transparente para ver el canvas */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  color: var(--primary); /* Cambiamos el texto a color primario */
}

.hero-overlay {
  display: none; /* Eliminamos la capa oscura */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-logo {
  height: 120px;
  width: auto;
  margin-bottom: 1.5rem;
  /* Eliminamos el filtro oscuro */
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary); /* Título en marrón */
  text-shadow: none; /* Sin sombra para que se vea limpio */
}

.hero-tagline {
  font-size: 1.3rem;
  margin: 1rem 0 2rem;
  color: var(--text); /* Texto oscuro */
  text-shadow: none;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(139, 90, 43, 0.3);
}

.btn-primary:hover {
  background-color: #6f451d;
  transform: scale(1.03);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(217, 160, 102, 0.3);
}

.btn-secondary:hover {
  background-color: #c28b4f;
}

/* ITEMS SECTION */
.items-section {
  padding: 5rem 0;
  background: white;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  color: var(--primary);
  margin-bottom: 3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.item-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s;
  padding-bottom: 1.5rem;
  border: 1px solid rgba(139, 90, 43, 0.1);
}

.item-card:hover {
  transform: translateY(-6px);
}

.item-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-bottom: 3px solid var(--secondary);
}

.item-card h3 {
  font-size: 1.5rem;
  margin: 1rem 1rem 0.5rem;
  color: var(--primary);
}

.item-card p {
  margin: 0 1rem 1rem;
  color: #4a3b32;
}

.price {
  display: block;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent);
  margin: 0 1rem;
}

/* ABOUT */
.about-section {
  padding: 5rem 0;
  background: #f5ede2;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  font-size: 1.2rem;
}

.about-highlight {
  margin-top: 2rem;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--primary);
  border-left: 5px solid var(--accent);
  padding-left: 1.5rem;
}

.about-image img {
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 20px 30px -10px rgba(0,0,0,0.2);
}

/* CONTACT */
.contact-section {
  padding: 5rem 0;
  background: white;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--soft-shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #d4c6b8;
  border-radius: 40px;
  font-family: inherit;
  font-size: 1rem;
  background: white;
}

.contact-form textarea {
  border-radius: 30px;
  resize: vertical;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.1rem;
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  color: var(--accent);
}

/* FOOTER */
.footer {
  background: var(--primary);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 25px;
  background-color: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
  z-index: 99;
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

/* HELIX POWERED */
.helix-powered {
  text-align: center;
  padding: 1rem;
  background: #f0e4d5;
  font-size: 0.9rem;
}

.helix-powered a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* TOAST SYSTEM */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  font-weight: 500;
  animation: slideUp 0.3s ease;
  pointer-events: auto;
  max-width: 90vw;
  text-align: center;
}

.toast.success { background: #2E7D32; }
.toast.info { background: var(--primary); }
.toast.error { background: #C94F4F; }

.toast.hiding {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(10px); }
}

/* MOBILE */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    padding: 0.8rem 0;
  }
  .nav-menu {
    gap: 1rem;
    margin-top: 0.5rem;
  }
  .hero-logo {
    height: 80px;
  }
  .about-grid, .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
}