/* MINKU — identidad visual: Marrón Tierra, Verde Cafetal, Dorado Especial */
:root {
  --marron-tierra: #221713;
  --verde-cafetal: #46763A;
  --dorado-especial: #E4D223;
  --blanco: #FFFFFF;
  --negro: #050505;
  --crema: #FAF6EE;
  --font-titulo: Cambria, Georgia, 'Times New Roman', serif;
  --font-texto: Manrope, -apple-system, Segoe UI, Roboto, sans-serif;
  --radius: 10px;
  --max-width: 1140px;
}

* { box-sizing: border-box; }

/* Animaciones de aparición al hacer scroll (ver assets/js/main.js) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card, .btn, .card img { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-texto);
  color: var(--negro);
  background: var(--crema);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-titulo);
  color: var(--marron-tierra);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

a { color: var(--marron-tierra); text-decoration: none; }
a:hover { color: var(--verde-cafetal); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--marron-tierra);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 18px;
  flex: 1;
  flex-wrap: wrap;
}

.main-nav a, .header-actions a {
  color: var(--blanco) !important;
  font-size: 0.95rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover, .header-actions a:hover {
  color: var(--dorado-especial) !important;
}

.main-nav a.active {
  color: var(--dorado-especial) !important;
  font-weight: 700;
  border-bottom: 2px solid var(--dorado-especial);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-menu-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  flex-shrink: 0;
}

.user-avatar-initial {
  background: var(--dorado-especial);
  color: var(--negro) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-titulo);
  line-height: 1;
}

.cart-count {
  background: var(--dorado-especial);
  color: var(--negro);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blanco);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(34,23,19,0.88), rgba(34,23,19,0.75)),
    url('/assets/img/hero-paisaje-acevedo.webp') center/cover no-repeat;
  color: var(--blanco);
  padding: 90px 0;
  text-align: center;
}
.hero h1 { color: var(--dorado-especial); font-size: 2.6rem; }
.hero p { color: var(--blanco); max-width: 640px; margin: 0 auto 1.2em; font-size: 1.1rem; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: var(--font-texto);
  font-size: 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary { background: var(--dorado-especial); color: var(--negro); }
.btn-primary:hover { background: #c9b91d; color: var(--negro); }
.btn-secondary { background: var(--verde-cafetal); color: var(--blanco); }
.btn-secondary:hover { background: #5a6622; color: var(--blanco); }
.btn-outline { background: transparent; border: 2px solid var(--marron-tierra); color: var(--marron-tierra); }
.btn-whatsapp { background: #25D366; color: var(--negro); }
.btn-whatsapp:hover { background: #1ebc59; color: var(--negro); }
.btn-block { width: 100%; text-align: center; }

.oauth-buttons { display: flex; flex-direction: column; gap: 10px; max-width: 480px; margin-bottom: 18px; }
.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  border: 1px solid #d8cdbf;
  background: var(--blanco);
  color: var(--negro) !important;
  font-weight: 600;
}
.btn-oauth:hover { background: #f3ede1; color: var(--negro) !important; }
.oauth-icon { width: 20px; height: 20px; flex-shrink: 0; }
.btn-oauth-google { border-color: #4285F4; }
.btn-oauth-facebook { border-color: #1877F2; }
.btn-oauth-x { border-color: var(--negro); }
.oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8a7f6c;
  font-size: 0.85rem;
  max-width: 480px;
  margin-bottom: 18px;
}
.oauth-divider::before, .oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6dcc9;
}

section { padding: 60px 0; }
section.alt { background: var(--blanco); }

.section-title { text-align: center; margin-bottom: 40px; }
.section-title p { color: var(--verde-cafetal); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; }

/* Grids */
.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: var(--blanco);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(52, 23, 14, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(52, 23, 14, 0.16); }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--marron-tierra); transition: transform 0.5s ease; }
.card:hover img { transform: scale(1.05); }
.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card-price { color: var(--verde-cafetal); font-weight: 800; font-size: 1.2rem; margin: 8px 0; }

/* Nuestro origen: texto + imagen + texto */
.origin-grid {
  grid-template-columns: 1.2fr 1fr;
  grid-template-areas: "t1 img" "t2 img";
  row-gap: 0;
  align-items: center;
}
.origin-text-1 { grid-area: t1; align-self: end; }
.origin-img { grid-area: img; }
.origin-text-2 { grid-area: t2; align-self: start; }
@media (max-width: 820px) {
  .origin-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "t1" "img" "t2";
    row-gap: 24px;
  }
  .origin-text p:last-child { margin-bottom: 0; }
}

/* Secciones a las que se llega desde el menú (compensa el menú fijo) */
.anchor-section { scroll-margin-top: 90px; }

.value-card { text-align: center; padding: 24px; }

/* Páginas de texto legal (política de privacidad) */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal ul, .legal ol { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4em; }
.legal a { color: var(--verde-cafetal); text-decoration: underline; }
.value-card h3 { color: var(--verde-cafetal); }

/* Forms */
form.stack { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
label { font-weight: 700; font-size: 0.9rem; }
input, textarea, select {
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid #d8cdbf;
  font-family: var(--font-texto);
  font-size: 1rem;
  width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--verde-cafetal); }

.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.alert-error { background: #fdeceb; color: #8a2b21; border: 1px solid #f1b6ad; }
.alert-success { background: #eef3e0; color: var(--verde-cafetal); border: 1px solid #cdd9a0; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid #e6dcc9; }

/* Footer */
.site-footer {
  background: var(--negro);
  color: #d8cdbf;
  padding: 40px 0 10px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo { height: 64px; width: auto; margin-bottom: 12px; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a, .site-footer a { color: #d8cdbf; }
.footer-nav a:hover { color: var(--dorado-especial); }
.footer-copy { text-align: center; margin-top: 30px; font-size: 0.8rem; color: #8a7f6c; }

.whatsapp-fab {
  background: #25D366;
  color: var(--negro) !important;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  align-self: flex-start;
}

.checkout-options { display: flex; gap: 20px; flex-wrap: wrap; }
.checkout-option {
  flex: 1;
  min-width: 240px;
  background: var(--blanco);
  border-radius: var(--radius);
  padding: 24px;
  border: 2px solid #e6dcc9;
}

.gallery-grid {
  /* Computador: 3 columnas */
  grid-template-columns: repeat(3, minmax(0, 380px));
  justify-content: center;
}
/* Tablet: 2 columnas */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 380px)); }
}
/* Teléfono: 1 columna */
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: minmax(0, 380px); }
}
.gallery-item {
  margin: 0 auto;
  width: 100%;
  max-width: 380px;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(52,23,14,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(52,23,14,0.18);
}
.gallery-item figcaption {
  margin-top: 10px;
  text-align: center;
  color: var(--marron-tierra);
  font-family: var(--font-titulo);
  font-style: italic;
  font-size: 0.95rem;
}
.video-frame {
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(52,23,14,0.08);
}

.video-frame { width: 100%; aspect-ratio: 16/9; border: none; }

/* Visor de imágenes (lightbox) de la galería */
body.lightbox-lock { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.92);
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}

.lightbox-figure {
  margin: 0;
  max-width: 90vw;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-caption {
  color: var(--blanco);
  margin-top: 12px;
  font-size: 0.95rem;
  text-align: center;
  max-width: 90vw;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #d8cdbf;
  font-size: 0.85rem;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  color: var(--blanco);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.18);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-prev, .lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2.2rem;
  line-height: 1;
}
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.6rem; }
  .lightbox-close { width: 36px; height: 36px; font-size: 1.4rem; top: 10px; right: 10px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox { transition: none; }
}

@media (max-width: 820px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: block; }
  .header-inner.nav-open .main-nav,
  .header-inner.nav-open .header-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
}
