:root {
  --verde: #2f4a3a;
  --verde-oscuro: #22362a;
  --terracota: #ab6f47;
  --terracota-oscuro: #8f5b38;
  --crema: #f8f3e6;
  --crema-alterna: #f1e9d6;
  --texto: #2b2b28;
  --texto-suave: #6b6459;
  --blanco: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-oscuro: #1da851;
  --sombra: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 8px rgba(0, 0, 0, 0.04);
  --radio: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--texto);
  background: var(--crema);
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.contenedor {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  margin: 0 0 0.5em;
  color: var(--verde-oscuro);
}

h2 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 0.3em;
}

.seccion-texto {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--texto-suave);
}

.boton {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none;
  cursor: pointer;
}

.boton:hover {
  transform: translateY(-1px);
}

.boton-whatsapp {
  background: var(--whatsapp);
  color: var(--blanco);
  box-shadow: var(--sombra);
}

.boton-whatsapp:hover {
  background: var(--whatsapp-oscuro);
}

.boton-secundario {
  background: var(--blanco);
  color: var(--verde-oscuro);
  box-shadow: var(--sombra);
}

.boton-grande {
  padding: 1em 2em;
  font-size: 1.05rem;
}

/* Encabezado */

.encabezado {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 243, 230, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.encabezado-interior {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.marca-logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.marca-texto {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--verde-oscuro);
}

.nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  color: var(--texto);
  font-weight: 500;
}

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

.nav-cta {
  padding: 0.55em 1.3em;
}

.menu-boton {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-boton span {
  display: block;
  height: 2px;
  background: var(--verde-oscuro);
  border-radius: 2px;
}

.nav.abierto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--crema);
  padding: 20px;
  box-shadow: var(--sombra);
}

/* Hero */

.hero {
  padding: 56px 0 48px;
  text-align: center;
}

.hero-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 16px;
}

.hero-tagline {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracota);
  font-weight: 700;
  margin: 0 0 6px;
}

.hero h1 {
  font-size: 1.9rem;
  max-width: 620px;
  margin: 0 auto 14px;
}

.hero-descripcion {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--texto-suave);
}

.hero-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Secciones generales */

.seccion {
  padding: 48px 0;
}

.seccion-alterna {
  background: var(--crema-alterna);
}

.tarjetas-destacadas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

.tarjeta {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  border: none;
  padding: 24px;
  text-align: center;
}

.tarjeta-icono {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

.tarjeta h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.tarjeta p {
  color: var(--texto-suave);
  margin: 0;
}

/* Productos */

.categoria-productos {
  margin-bottom: 32px;
}

.categoria-productos:last-of-type {
  margin-bottom: 0;
}

.categoria-titulo {
  font-size: 1.1rem;
  color: var(--terracota-oscuro);
  margin-bottom: 14px;
}

.grid-productos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.producto {
  background: var(--blanco);
  border-radius: 999px;
  box-shadow: var(--sombra);
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
}

.productos-cta {
  text-align: center;
  margin-top: 32px;
}

/* Ubicación */

.ubicacion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}

.ubicacion-info h3 {
  font-size: 1rem;
  margin-top: 18px;
}

.ubicacion-info h3:first-child {
  margin-top: 0;
}

.ubicacion-info p {
  margin: 0 0 4px;
  color: var(--texto-suave);
}

.ubicacion-nota {
  color: var(--terracota-oscuro) !important;
  font-weight: 600;
}

.ubicacion-mapa {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  min-height: 280px;
}

.ubicacion-mapa iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

/* Contacto */

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

.contacto-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
}

/* Pie */

.pie {
  background: var(--verde-oscuro);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0;
  text-align: center;
}

.pie-interior p {
  margin: 4px 0;
}

.pie-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 14px;
  border-radius: 12px;
}

.pie a {
  color: var(--blanco);
  text-decoration: underline;
}

.pie-copyright {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Botón flotante de WhatsApp */

.whatsapp-flotante {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.whatsapp-flotante:hover {
  background: var(--whatsapp-oscuro);
}

/* Escritorio */

@media (min-width: 860px) {
  .nav {
    display: flex;
  }

  .menu-boton {
    display: none;
  }

  h2 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .tarjetas-destacadas {
    grid-template-columns: repeat(3, 1fr);
  }

  .ubicacion-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: stretch;
  }

  .ubicacion-mapa {
    min-height: 100%;
  }
}
