/* =========================================
   NONNA LINDA · style.css
   =========================================
   Paleta:
   --cream:     #FAF7F2
   --sand:      #EDE3D0
   --tan:       #D9C9B0
   --caramel:   #9B7A52
   --brown:     #7A5230
   --espresso:  #5C3A1E
   --dark:      #2C1A08
   ========================================= */

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

:root {
  --cream:    #FAF7F2;
  --sand:     #EDE3D0;
  --tan:      #D9C9B0;
  --caramel:  #9B7A52;
  --brown:    #7A5230;
  --espresso: #5C3A1E;
  --dark:     #2C1A08;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', system-ui, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: 0.18s ease;
  --max-width: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── UTILIDADES ─────────────────────────── */

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

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--caramel);
  text-align: center;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--tan);
}

/* ── BOTONES ────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 0.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-dark {
  background: var(--dark);
  color: var(--cream);
  border-color: var(--dark);
}
.btn-dark:hover { background: var(--espresso); border-color: var(--espresso); }

.btn-outline {
  background: transparent;
  color: var(--brown);
  border-color: var(--caramel);
}
.btn-outline:hover { background: var(--sand); }

.btn-lg { padding: 13px 28px; font-size: 11px; }

.btn-full { width: 100%; margin-top: 1rem; }

/* ── HEADER ─────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 0.5px solid var(--tan);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo { display: flex; align-items: center; }

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.hero-logo { margin-bottom: 1.25rem; }
.hero-logo-img {
  height: 160px;
  width: auto;
  margin: 0 auto;
  display: block;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  margin: 0 auto 0.5rem;
  display: block;
}

.site-nav {
  display: flex;
  gap: 2rem;
}
.site-nav a {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--caramel);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.site-nav a:hover { color: var(--dark); border-bottom-color: var(--brown); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1px;
  background: var(--dark);
  transition: var(--transition);
}

/* ── HERO ───────────────────────────────── */

.hero {
  position: relative;
  padding: 5rem 1.5rem 4.5rem;
  text-align: center;
  border-bottom: 0.5px solid var(--tan);
  overflow: hidden;
  background: var(--dark);
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  filter: blur(4px) brightness(0.5) sepia(0.45) saturate(0.75);
  transform: scale(1.05);
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(60, 36, 12, 0.45);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.hero-logo { margin-bottom: 1.25rem; }
.hero-logo-img {
  height: 160px;
  width: auto;
  margin: 0 auto;
  display: block;
  filter: brightness(0) invert(1);
}

.hero-eyebrow {
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn-dark {
  background: var(--cream);
  color: var(--dark);
  border-color: var(--cream);
}
.hero .btn-dark:hover { background: var(--sand); border-color: var(--sand); }
.hero .btn-outline {
  border-color: rgba(255,255,255,0.55);
  color: var(--cream);
}
.hero .btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ── DESTACADOS ─────────────────────────── */

.section-destacados {
  padding: 3rem 0 2.5rem;
  border-bottom: 0.5px solid var(--tan);
}

.dest-scroll-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dest-arrow {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0.5px solid var(--tan);
  background: var(--cream);
  color: var(--brown);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  z-index: 1;
}
.dest-arrow:hover { background: var(--sand); border-color: var(--caramel); }
.dest-arrow:disabled { opacity: 0.3; cursor: default; }

.dest-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 1rem;
}
.dest-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--tan);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
.dest-dot.active { background: var(--brown); transform: scale(1.2); }

.dest-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  cursor: grab;
  flex: 1;
  min-width: 0;
}
.dest-scroll:active { cursor: grabbing; }
.dest-scroll::-webkit-scrollbar { display: none; }

.dest-card {
  flex: 0 0 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 0.5px solid var(--tan);
  background: #FFF8F0;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.dest-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(44,26,8,0.10); }

.dest-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.dest-card-img-ph {
  width: 100%;
  height: 160px;
  background: var(--sand);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--caramel);
}
.dest-card-img-ph svg { width: 32px; height: 32px; stroke: var(--caramel); fill: none; stroke-width: 1; }
.dest-card-img-ph span { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; }

.dest-card-info { padding: 0.85rem 1rem 1rem; }
.dest-card-name {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 3px;
}
.dest-card-cat {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--caramel);
}

/* ── CATÁLOGO ───────────────────────────── */

.section-catalogo {
  padding: 3rem 0 3.5rem;
  border-bottom: 0.5px solid var(--tan);
}

.cat-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.cat-tab {
  padding: 6px 15px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 0.5px solid var(--tan);
  border-radius: 20px;
  background: transparent;
  color: var(--brown);
  cursor: pointer;
  transition: var(--transition);
}
.cat-tab:hover { border-color: var(--caramel); }
.cat-tab.active { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }

.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.prod-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 0.5px solid var(--tan);
  background: #FFF8F0;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.prod-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(44,26,8,0.09); }

.prod-card-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}
.prod-card-img-ph {
  width: 100%;
  height: 130px;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-card-img-ph svg { width: 28px; height: 28px; stroke: var(--caramel); fill: none; stroke-width: 1; opacity: 0.6; }

.prod-card-body { padding: 0.65rem 0.75rem 0.8rem; }
.prod-card-name {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 2px;
}
.prod-card-sub {
  font-size: 10px;
  color: var(--caramel);
  margin-bottom: 5px;
  line-height: 1.3;
}
.prod-card-tap {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tan);
}

/* ── PEDIDOS ────────────────────────────── */

.section-pedidos {
  padding: 3.5rem 0;
  background: var(--sand);
  border-bottom: 0.5px solid var(--tan);
}

.pedidos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.pedido-step { }

.step-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--tan);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 14px;
  color: var(--brown);
  line-height: 1.6;
}

.pedidos-nota {
  font-size: 12px;
  color: var(--caramel);
  font-style: italic;
  letter-spacing: 0.03em;
  padding-top: 1.5rem;
  border-top: 0.5px solid var(--tan);
}

/* ── CONTACTO ───────────────────────────── */

.section-contacto {
  padding: 4rem 0;
  border-bottom: 0.5px solid var(--tan);
}

.contacto-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.contacto-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.05;
  margin: 0.5rem 0 0.75rem;
}
.contacto-title em { font-style: italic; color: var(--brown); }

.contacto-sub {
  font-size: 13px;
  color: var(--caramel);
  line-height: 1.7;
}

.contacto-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 200px;
}

/* ── FOOTER ─────────────────────────────── */

.site-footer {
  background: var(--dark);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 4px;
}
.footer-brand em { font-style: italic; color: var(--tan); }

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  color: var(--caramel);
  margin-bottom: 0.5rem;
}

.footer-sub {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: var(--tan);
  margin-bottom: 1.5rem;
}
.footer-links a { color: var(--tan); transition: var(--transition); }
.footer-links a:hover { color: var(--cream); }

.footer-copy {
  font-size: 11px;
  color: var(--caramel);
  opacity: 0.7;
}

/* ── MODAL ──────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44,26,8,0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.modal-overlay.is-open { opacity: 1; }
.modal-overlay[hidden] { display: none; }

.modal-box {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  max-width: 380px;
  border: 0.5px solid var(--tan);
  position: relative;
  transform: translateY(12px);
  transition: transform 0.22s ease;
}
.modal-overlay.is-open .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(250,247,242,0.92);
  border: 0.5px solid var(--tan);
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 15px;
  cursor: pointer;
  color: var(--brown);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: var(--transition);
  line-height: 1;
}
.modal-close:hover { background: var(--sand); }

.modal-img-wrap { position: relative; }

.modal-img {
  width: 100%; height: 220px;
  object-fit: cover;
  display: block;
}
.modal-img-ph {
  width: 100%; height: 220px;
  background: var(--sand);
  display: flex; align-items: center; justify-content: center;
}
.modal-img-ph svg { width: 48px; height: 48px; opacity: 0.5; }

.modal-body { padding: 1.5rem 1.5rem 1.25rem; }

.modal-cat {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 5px;
}
.modal-name {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 4px;
}
.modal-sub {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  color: var(--brown);
  margin-bottom: 0.85rem;
}
.modal-price {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 0.25rem;
}
.modal-nodispo {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tan);
  display: none;
  margin-bottom: 0.25rem;
}

/* ── RESPONSIVE ─────────────────────────── */

@media (max-width: 900px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .pedidos-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 0.5px solid var(--tan);
    padding: 1.5rem;
    gap: 1.25rem;
    z-index: 99;
  }
  .site-nav.is-open a { font-size: 14px; }
  .nav-toggle { display: flex; }

  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .pedidos-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .contacto-inner { flex-direction: column; align-items: flex-start; }
  .contacto-btns { flex-direction: row; width: 100%; }
  .contacto-btns .btn { flex: 1; }

  .hero { padding: 3.5rem 1.5rem 3rem; }
  .dest-card { flex: 0 0 165px; }
}

@media (max-width: 420px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .prod-card-img, .prod-card-img-ph { height: 110px; }
}
