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

:root {
  --verde: #2d4a2d;
  --verde-claro: #4a7c4a;
  --crema: #f5ede0;
  --crema-oscuro: #e8d9c4;
  --marron: #6b4226;
  --marron-claro: #a0673a;
  --dorado: #c9a84c;
  --texto: #1a1a1a;
  --texto-suave: #5a4a3a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--crema);
  color: var(--texto);
  overflow-x: hidden;
}

/* =====================
   NAV
===================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(245, 237, 224, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107, 66, 38, 0.15);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--verde); letter-spacing: 0.02em;
}
.nav-logo span { color: var(--marron-claro); font-style: italic; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 0.85rem; font-weight: 500;
  color: var(--texto-suave); letter-spacing: 0.08em;
  text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover { color: var(--marron); }
.nav-cta {
  background: var(--verde);
  color: var(--crema) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
}
.nav-cta:hover { background: var(--verde-claro); color: var(--crema) !important; }

/* =====================
   HERO
===================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 0;
  overflow: hidden;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem 3rem 5rem 4rem;
  position: relative;
}
.hero-left::before {
  content: '';
  position: absolute; top: 10%; left: -5%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--marron-claro);
  border-bottom: 1px solid var(--dorado);
  padding-bottom: 0.3rem; margin-bottom: 1.5rem;
  width: fit-content;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1; color: var(--verde); margin-bottom: 1.5rem;
}
.hero-title em { color: var(--marron); font-style: italic; display: block; }
.hero-sub {
  font-size: 1rem; font-weight: 300; line-height: 1.7;
  color: var(--texto-suave); max-width: 400px; margin-bottom: 2.5rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--verde); color: var(--crema);
  padding: 0.9rem 2rem; text-decoration: none;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; transition: all 0.25s; border-radius: 2px;
}
.btn-primary:hover { background: var(--marron); transform: translateY(-2px); }
.btn-secondary {
  border: 1px solid var(--marron-claro); color: var(--marron);
  padding: 0.9rem 2rem; text-decoration: none;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; transition: all 0.25s;
  border-radius: 2px; background: transparent;
}
.btn-secondary:hover { background: var(--marron-claro); color: var(--crema); }
.hero-stats {
  display: flex; gap: 2rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid var(--crema-oscuro);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 700; color: var(--marron);
}
.stat-label { font-size: 0.75rem; color: var(--texto-suave); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-right {
  position: relative; overflow: hidden;
  min-height: 100vh;
}
.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}
.hero-right::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(45,74,45,0.3) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  position: absolute; bottom: 2rem; right: 2rem;
  background: var(--dorado); color: var(--verde);
  padding: 0.8rem 1.4rem; border-radius: 2px;
  font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; z-index: 2;
}

/* =====================
   SECCIONES BASE
===================== */
section { padding: 6rem 4rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--marron-claro);
  display: block; margin-bottom: 1rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--verde); line-height: 1.2;
}
.section-title em { color: var(--marron); font-style: italic; }

/* =====================
   CATEGORIAS
===================== */
.categorias { background: var(--crema); }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.cat-card {
  background: white; border: 1px solid var(--crema-oscuro);
  border-radius: 4px; padding: 2rem 1.5rem;
  text-align: center; cursor: pointer;
  transition: all 0.25s; text-decoration: none;
  display: block; color: inherit;
}
.cat-card:hover {
  border-color: var(--dorado);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(107,66,38,0.12);
}
.cat-emoji { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.cat-icon {
  display: flex; align-items: center; justify-content: center;
  width: 72px; height: 72px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.25);
  transition: all 0.25s;
}
.cat-card:hover .cat-icon {
  background: rgba(201, 168, 76, 0.18);
  border-color: rgba(201, 168, 76, 0.6);
}
.cat-card:hover .cat-icon svg path,
.cat-card:hover .cat-icon svg circle,
.cat-card:hover .cat-icon svg line,
.cat-card:hover .cat-icon svg rect {
  stroke: #a07830;
}
.cat-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--verde); margin-bottom: 0.3rem; }
.cat-count { font-size: 0.8rem; color: var(--texto-suave); }

/* =====================
   PRODUCTOS
===================== */
.productos { background: #f0e8d8; }
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.producto-card {
  background: white; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--crema-oscuro); transition: all 0.25s;
}
.producto-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(107,66,38,0.15);
  border-color: var(--dorado);
}
.producto-img {
  height: 220px; background: var(--verde);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
/*
  PARA USAR FOTOS REALES EN PRODUCTOS:
  Agregá un <img src="img/producto.jpg"> dentro de .producto-img
  con width: 100%; height: 100%; object-fit: cover;
  y eliminá el fondo de color del div
*/
.producto-img::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
}
.producto-img span { font-size: 4rem; position: relative; z-index: 1; }
.producto-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--dorado); color: var(--verde);
  font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem; border-radius: 2px; z-index: 2;
}
.producto-body { padding: 1.5rem; }
.producto-nombre { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--texto); margin-bottom: 0.5rem; }
.producto-desc { font-size: 0.85rem; color: var(--texto-suave); line-height: 1.6; margin-bottom: 1rem; }
.producto-footer { display: flex; align-items: center; justify-content: space-between; }
.producto-precio { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--marron); font-weight: 700; }
.btn-pedir {
  background: var(--verde); color: white; border: none;
  padding: 0.6rem 1.2rem; font-family: 'Jost', sans-serif;
  font-size: 0.8rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.06em; cursor: pointer; border-radius: 2px;
  transition: all 0.2s; text-decoration: none; display: inline-block;
}
.btn-pedir:hover { background: var(--marron); }

/* =====================
   PERSONALIZADOS
===================== */
.personalizados { background: var(--verde); color: white; text-align: center; }
.personalizados .section-title { color: var(--crema); }
.personalizados .section-title em { color: var(--dorado); }
.personalizados p {
  color: rgba(255,255,255,0.75); max-width: 500px;
  margin: 0 auto 3rem; font-size: 1rem; line-height: 1.7; font-weight: 300;
}
.personalizados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; margin-bottom: 3rem;
}
.pers-item {
  border: 1px solid rgba(255,255,255,0.15); border-radius: 4px;
  padding: 1.5rem 1rem; background: rgba(255,255,255,0.06); transition: all 0.2s;
}
.pers-item:hover { background: rgba(255,255,255,0.12); border-color: var(--dorado); }
.pers-icon { font-size: 2rem; margin-bottom: 0.8rem; display: block; }
.pers-name { font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.9); }
.btn-personalizar {
  background: var(--dorado); color: var(--verde);
  padding: 1rem 2.5rem; text-decoration: none;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; border-radius: 2px;
  display: inline-block; transition: all 0.25s;
}
.btn-personalizar:hover { background: white; transform: translateY(-2px); }

/* =====================
   FORMULARIO DE PEDIDO
===================== */
.form-section { background: var(--crema); }
.form-wrapper {
  max-width: 600px; margin: 0 auto;
  background: white; border: 1px solid var(--crema-oscuro);
  border-radius: 4px; padding: 3rem;
}
.form-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--verde); margin-bottom: 0.5rem; }
.form-sub { font-size: 0.9rem; color: var(--texto-suave); margin-bottom: 2rem; }
.form-group { margin-bottom: 1.5rem; }
label {
  display: block; font-size: 0.8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--texto-suave); margin-bottom: 0.5rem;
}
input, select, textarea {
  width: 100%; padding: 0.85rem 1rem;
  border: 1px solid var(--crema-oscuro); border-radius: 2px;
  font-family: 'Jost', sans-serif; font-size: 0.95rem;
  color: var(--texto); background: var(--crema);
  transition: border-color 0.2s; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--dorado); background: white; }
textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-submit {
  width: 100%; background: var(--verde); color: white; border: none;
  padding: 1rem; font-family: 'Jost', sans-serif;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer; border-radius: 2px;
  transition: all 0.25s; margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--marron); }

/* =====================
   FOOTER
===================== */
footer {
  background: #1a2e1a; color: rgba(255,255,255,0.7);
  padding: 4rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: white; font-weight: 700; margin-bottom: 1rem; }
.footer-logo span { color: var(--dorado); font-style: italic; }
footer p { font-size: 0.85rem; line-height: 1.7; max-width: 280px; }
.footer-title { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dorado); margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom {
  background: #111e11; padding: 1.2rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
}
.footer-wa {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #25d366; color: white;
  padding: 0.5rem 1rem; border-radius: 20px;
  text-decoration: none; font-size: 0.8rem; font-weight: 500; transition: opacity 0.2s;
}
.footer-wa:hover { opacity: 0.85; }

/* =====================
   ANIMACIONES
===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-tag  { animation: fadeUp 0.6s 0.0s ease both; }
.hero-title { animation: fadeUp 0.6s 0.1s ease both; }
.hero-sub  { animation: fadeUp 0.6s 0.2s ease both; }
.hero-btns { animation: fadeUp 0.6s 0.3s ease both; }
.hero-stats { animation: fadeUp 0.6s 0.4s ease both; }

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-right { height: 300px; }
  .hero-left { padding: 3rem 1.5rem; }
  section { padding: 4rem 1.5rem; }
  footer { grid-template-columns: 1fr; padding: 3rem 1.5rem; }
  .footer-bottom { padding: 1rem 1.5rem; flex-direction: column; gap: 0.5rem; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .form-wrapper { padding: 2rem 1.5rem; }
}

/* =====================
   FOTOS REALES EN PRODUCTOS
===================== */
.producto-img {
  height: 220px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 10px;
}

.producto-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.producto-card:hover .producto-img img {
  transform: scale(1.03);
}

/* HERO CON FOTO REAL */
.hero-right img {
  width: 100%; height: 100%;
  object-fit: cover;
}