/* ══════════════════════════════════════════
   endulzArte Cake Studio — Catálogo Web
   style.css
   ══════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --burgundy:    #6B1A2A;
  --burgundy-dk: #4A0F1C;
  --burgundy-lt: #8B2A3E;
  --gold:        #C4975A;
  --gold-lt:     #E8C98A;
  --cream:       #FAF5EE;
  --rose:        #E8C4C4;
  --rose-dk:     #C49090;
  --text-dark:   #2C1A1A;
  --text-mid:    #6B4A4A;
  --white:       #ffffff;
  --nav-h:       64px;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

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

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 24px 120px;

  /* Imagen original como fondo */
  background-image: url('26523.jpg');
  background-size: cover;
  background-position: center 30%;
}

/* Capa oscura sobre la imagen para legibilidad */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(74, 15, 28, 0.72) 0%,
    rgba(74, 15, 28, 0.55) 50%,
    rgba(74, 15, 28, 0.82) 100%
  );
}

/* Anillos decorativos de fondo */
.hero-bg-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-bg-rings circle {
  fill: none;
  stroke: var(--gold);
  opacity: 0.08;
}

/* Contenido del hero encima de overlay */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── Logo ── */
.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: fadeUp 1.2s ease 0.1s both;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.5));
}

/* Ícono SVG del gorro de chef-corazón */
.logo-icon {
  width: 80px;
  height: 72px;
  margin-bottom: 4px;
}

/* Nombre endulzArte */
.logo-wordmark {
  font-family: 'Nunito', 'Jost', sans-serif;
  font-weight: 900;
  font-size: clamp(3.2rem, 9vw, 7rem);
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* Subtítulo Cake Studio */
.logo-subtitle {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  color: var(--white);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  margin-top: -4px;
  opacity: 0.92;
}

/* Tagline debajo del logo */
.hero-tagline {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  color: var(--gold-lt);
  margin-top: 32px;
  animation: fadeUp 1.2s ease 0.4s both;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-location {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  color: var(--rose);
  text-transform: uppercase;
  margin-top: 14px;
  animation: fadeUp 1.2s ease 0.6s both;
}

.hero-divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 32px auto 0;
  animation: fadeUp 1.2s ease 0.7s both;
}

/* Flecha scroll al fondo */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--rose);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: fadeUp 1.5s ease 1s both;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ══════════════════════════════════════════
   NAVEGACIÓN
   ══════════════════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--burgundy-dk);
  border-bottom: 1px solid rgba(196, 151, 90, 0.22);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

/* Logo pequeño en nav */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 30px;
  height: 28px;
}
.nav-brand {
  font-family: 'Nunito', 'Jost', sans-serif;
  font-weight: 900;
  font-size: 1.45rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-lt); }

/* ══════════════════════════════════════════
   SECCIONES GENERALES
   ══════════════════════════════════════════ */
section {
  padding: 100px 48px;
  max-width: 1440px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.8rem);
  color: var(--burgundy-dk);
  line-height: 1.1;
  margin-bottom: 14px;
}
.section-title em {
  font-style: italic;
  color: var(--burgundy-lt);
}

.section-desc {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 56px;
}

.gold-line {
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin: 18px 0 36px;
}

/* ══════════════════════════════════════════
   FILTROS
   ══════════════════════════════════════════ */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.filter-btn {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.73rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mid);
  border: 1px solid var(--rose-dk);
  background: transparent;
  padding: 8px 22px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--burgundy);
  color: var(--gold-lt);
  border-color: var(--burgundy);
}

/* ══════════════════════════════════════════
   TARJETAS DE PRODUCTO
   ══════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.card {
  background: var(--white);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(107, 26, 42, 0.07);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  position: relative;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(107, 26, 42, 0.16);
}
.card:hover .card-overlay  { opacity: 1; }
.card:hover .card-img      { transform: scale(1.05); }

/* Imagen */
.card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
}

/* Overlay hover */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74, 15, 28, 0.78) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.card-overlay-tag {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-lt);
  border: 1px solid var(--gold-lt);
  padding: 5px 14px;
}

/* Badge de número/especial */
.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--burgundy);
  color: var(--gold-lt);
  font-family: 'Pinyon Script', cursive;
  font-size: 1.15rem;
  padding: 3px 14px;
  border-radius: 20px;
  z-index: 1;
}

/* Cuerpo de la card */
.card-body {
  padding: 22px 24px 12px;
  border-top: 2px solid var(--cream);
}
.card-category {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.67rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}
.card-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--burgundy-dk);
  line-height: 1.2;
  margin-bottom: 9px;
}
.card-desc {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.84rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* Footer de la card */
.card-footer {
  padding: 12px 24px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.card-tag {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-mid);
}

/* ══════════════════════════════════════════
   TARJETA DESTACADA (grande)
   ══════════════════════════════════════════ */
.featured-large {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  box-shadow: 0 8px 40px rgba(107, 26, 42, 0.1);
  margin-bottom: 36px;
  overflow: hidden;
}
.featured-large-img {
  aspect-ratio: 1;
  overflow: hidden;
}
.featured-large-img .card-img-placeholder {
  height: 100%;
  font-size: 5.5rem;
}
.featured-large-content {
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-large-content .card-category { margin-bottom: 10px; }
.featured-large-content .card-name     { font-size: 2.2rem; margin-bottom: 16px; }
.featured-large-content .card-desc     { font-size: 0.94rem; margin-bottom: 28px; }

.featured-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.featured-tag {
  border: 1px solid var(--rose-dk);
  color: var(--text-mid);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 14px;
}

/* ══════════════════════════════════════════
   BANDA CENTRAL
   ══════════════════════════════════════════ */
.feature-band {
  background: var(--burgundy-dk);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.feature-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 110%, rgba(196, 151, 90, 0.14) 0%, transparent 65%);
}

.feature-band-script {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(2rem, 5vw, 4.2rem);
  color: var(--gold-lt);
  margin-bottom: 16px;
  position: relative;
}
.feature-band-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.1rem, 2.5vw, 1.75rem);
  color: var(--rose);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
}
.feature-band-divider {
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 22px auto;
  position: relative;
}
.feature-band-desc {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: rgba(232, 196, 196, 0.75);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
  position: relative;
}

/* ══════════════════════════════════════════
   CONTACTO
   ══════════════════════════════════════════ */
.contact-section {
  background: var(--burgundy);
  padding: 100px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-section::after {
  content: 'endulzArte';
  position: absolute;
  bottom: -48px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Nunito', 'Jost', sans-serif;
  font-weight: 900;
  font-size: 9rem;
  color: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  letter-spacing: -0.02em;
  pointer-events: none;
}

.contact-script {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--gold-lt);
  margin-bottom: 14px;
  position: relative;
}
.contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
  color: var(--white);
  letter-spacing: 0.07em;
  margin-bottom: 44px;
  position: relative;
}

.contact-items {
  display: flex;
  gap: 56px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.contact-item-icon {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(196, 151, 90, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--gold-lt);
  margin-bottom: 4px;
}
.contact-item-label {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
}
.contact-item-value {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--white);
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
footer {
  background: var(--burgundy-dk);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(196, 151, 90, 0.15);
}
.footer-brand {
  font-family: 'Nunito', 'Jost', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--white);
}
.footer-copy {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.73rem;
  color: rgba(232, 196, 196, 0.5);
  letter-spacing: 0.1em;
}

/* ══════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 6, 10, 0.92);
  align-items: center;
  justify-content: center;
  padding: 40px;
  backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }

.lightbox-inner {
  max-width: 680px;
  width: 100%;
  background: var(--white);
  position: relative;
}
.lightbox-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.lightbox-img-wrap .card-img-placeholder {
  font-size: 6rem;
  height: 100%;
}
.lightbox-body {
  padding: 32px 36px;
}
.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  color: var(--rose);
  font-size: 1.3rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.lightbox-close:hover { color: var(--gold-lt); }

/* ══════════════════════════════════════════
   ANIMACIONES
   ══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollLine {
  0%, 100% { opacity: 1;   transform: scaleY(1);   }
  50%       { opacity: 0.3; transform: scaleY(0.5); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 900px) {
  .featured-large { grid-template-columns: 1fr; }
  .featured-large-content { padding: 36px 28px; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  section { padding: 60px 20px; }
  .feature-band { padding: 60px 20px; }
  .contact-section { padding: 60px 20px; }
  footer { flex-direction: column; text-align: center; padding: 24px 20px; }
  .contact-items { gap: 32px; }
}
