/* ==========================================================
   GUS CAKE — Pastelería de autor
   Paleta: navy nocturno, dorado, crema cálido
   ========================================================== */

:root{
  --cream: #F6F1E7;
  --cream-deep: #EDE3CE;
  --espresso: #2E1D14;
  --espresso-soft: #5A4736;
  --navy: #1C2438;
  --navy-deep: #12182A;
  --navy-soft: #2B3555;
  --gold: #D9A94F;
  --gold-deep: #B98935;
  --gold-pale: #F0D9A0;
  --line: rgba(46,29,20,0.14);
  --line-navy: rgba(217,169,79,0.22);
  --white: #FFFCF6;

  --font-display: "Fraunces", serif;
  --font-mono: "Space Mono", monospace;
  --font-body: "Work Sans", sans-serif;

  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(46,29,20,0.10);
  --shadow-navy: 0 20px 50px rgba(10,14,26,0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--cream);
  color:var(--espresso);
  font-family:var(--font-body);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;}
.wrap{
  max-width:1160px;
  margin:0 auto;
  padding:0 28px;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity:0.5;
  background-image:radial-gradient(rgba(46,29,20,0.035) 1px, transparent 1px);
  background-size:3px 3px;
}

h1,h2,h3{
  font-family:var(--font-display);
  font-weight:700;
  margin:0 0 0.4em;
  letter-spacing:-0.01em;
}
h1{
  font-size:clamp(1.9rem, 6vw, 4rem);
  line-height:1.08;
  font-weight:600;
  font-style:italic;
  color:var(--white);
}
h2{
  font-size:clamp(1.8rem, 3vw, 2.5rem);
  font-weight:600;
  font-style:italic;
  color:var(--espresso);
}

.eyebrow{
  font-family:var(--font-mono);
  text-transform:uppercase;
  letter-spacing:0.14em;
  font-size:0.72rem;
  color:var(--gold-deep);
  margin:0 0 0.9em;
}
.hero .eyebrow{color:var(--gold);}

.accent{color:var(--gold); font-style:italic;}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 26px;
  border-radius:999px;
  font-family:var(--font-body);
  font-weight:600;
  font-size:0.95rem;
  text-decoration:none;
  border:2px solid transparent;
  cursor:pointer;
  transition:transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.btn:hover{transform:translateY(-2px);}
.btn:active{transform:translateY(0) scale(0.98);}
.btn-primary{
  background:var(--gold);
  color:var(--navy-deep);
  box-shadow:0 6px 18px rgba(217,169,79,0.35);
}
.btn-primary:hover{box-shadow:0 12px 26px rgba(217,169,79,0.45); background:var(--gold-pale);}
.btn-ghost{
  background:transparent;
  border-color:var(--espresso);
  color:var(--espresso);
}
.btn-ghost:hover{background:var(--espresso); color:var(--cream);}
.btn-link{
  background:none;
  border:none;
  padding:14px 6px;
  color:var(--cream-deep);
  font-weight:500;
}
.btn-link:hover{color:var(--gold); transform:translateX(3px);}
.btn-cta{
  background:var(--cream);
  color:var(--navy-deep);
  padding:11px 22px;
  font-size:0.88rem;
}
.btn-cta:hover{background:var(--gold-pale); box-shadow:0 8px 18px rgba(217,169,79,0.3);}

/* ---------- scroll-reveal animation ---------- */
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view{
  opacity:1;
  transform:translateY(0);
}
.reveal-delay-1.in-view{transition-delay:0.12s;}
.reveal-delay-2.in-view{transition-delay:0.24s;}

/* hero: entra siempre al cargar, no depende de scroll ni de JS */
.hero-enter{
  animation:heroIn 0.9s var(--ease) both;
}
.hero-enter-delay{
  animation-delay:0.15s;
}
@keyframes heroIn{
  from{opacity:0; transform:translateY(22px);}
  to{opacity:1; transform:translateY(0);}
}

@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1; transform:none; transition:none;}
}

/* ---------- TOPBAR ---------- */
.topbar{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(28,36,56,0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line-navy);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:14px;
  padding-bottom:14px;
  gap:24px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}
.brand-mark{
  width:40px;height:40px;
  border-radius:50%;
  object-fit:cover;
  object-position:center 38%;
  border:1.5px solid var(--line-navy);
  background:var(--navy-deep);
}
.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}
.brand-name{
  font-family:var(--font-display);
  font-style:italic;
  font-weight:600;
  font-size:1.2rem;
  color:var(--white);
}
.brand-sub{
  font-family:var(--font-mono);
  font-size:0.6rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--gold);
}
.nav{
  display:flex;
  gap:30px;
}
.nav a{
  text-decoration:none;
  font-size:0.9rem;
  font-weight:500;
  color:rgba(246,241,231,0.85);
  position:relative;
  padding-bottom:4px;
}
.nav a::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width:0%;
  height:1.5px;
  background:var(--gold);
  transition:width 0.3s var(--ease);
}
.nav a:hover{color:var(--white);}
.nav a:hover::after{width:100%;}

.topbar-actions{
  display:flex;
  align-items:center;
  gap:14px;
}
.cart-btn{
  font-family:var(--font-mono);
  background:transparent;
  border:1.5px solid var(--line-navy);
  color:var(--cream);
  border-radius:999px;
  padding:9px 15px;
  font-size:0.85rem;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:6px;
  transition:border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.cart-btn:hover{border-color:var(--gold); background:rgba(217,169,79,0.1);}

/* ---------- MENÚ MÓVIL (hamburguesa) ---------- */
.nav-toggle{
  display:none;
  width:38px;
  height:38px;
  border:none;
  background:none;
  padding:0;
  cursor:pointer;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
}
.nav-toggle span{
  display:block;
  width:22px;
  height:2px;
  background:var(--cream);
  border-radius:2px;
  transition:transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.active span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav-toggle.active span:nth-child(2){opacity:0;}
.nav-toggle.active span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

.mobile-nav{
  display:none;
  flex-direction:column;
  gap:2px;
  max-height:0;
  overflow:hidden;
  background:var(--navy-deep);
  border-top:1px solid var(--line-navy);
  transition:max-height 0.4s var(--ease);
}
.mobile-nav.open{max-height:400px;}
.mobile-nav a{
  text-decoration:none;
  color:rgba(246,241,231,0.88);
  font-size:0.98rem;
  padding:15px 28px;
  border-bottom:1px solid rgba(217,169,79,0.10);
  transition:background 0.3s var(--ease), color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.mobile-nav a:hover{background:rgba(217,169,79,0.08); color:var(--gold); padding-left:34px;}
.mobile-nav-cta{
  margin:14px 28px 18px;
  text-align:center;
  border-bottom:none !important;
}

@media (max-width:900px){
  .nav{display:none;}
  .nav-toggle{display:flex;}
  .mobile-nav{display:flex;}
  .btn-cta{display:none;}
}

@media (max-width:480px){
  .wrap{padding:0 20px;}
  .topbar-inner{gap:12px;}
  .brand-sub{display:none;}
  .cart-btn{padding:8px 12px; font-size:0.8rem;}
}

/* ---------- HERO ---------- */
.hero{
  padding:88px 0 110px;
  position:relative;
  z-index:1;
  background:
    radial-gradient(ellipse 900px 500px at 85% 30%, rgba(217,169,79,0.10), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  overflow:hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns:1fr 0.95fr;
  gap:64px;
  align-items:start;
}
.hero-text{
  font-size:1.08rem;
  color:rgba(246,241,231,0.72);
  max-width:46ch;
  margin:0 0 2em;
}
#heroEyebrow, #heroTitle, #heroText{
  transition:opacity 0.3s var(--ease);
}
#heroTitle{
  min-height:2.6em;
}
#heroText{
  min-height:4.8em;
}
.hero-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:2em;
}
.hero-facts{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  gap:24px;
  flex-wrap:wrap;
  font-size:0.85rem;
  color:rgba(246,241,231,0.65);
}
.hero-facts li{display:flex; align-items:center; gap:8px;}
.hero-facts .dot{
  width:6px; height:6px;
  border-radius:50%;
  background:var(--gold);
  display:inline-block;
}

/* signature element: the candlelit cake scene */
.hero-scene{position:relative; align-self:start;}
.scene-card{
  position:relative;
  aspect-ratio:4/3.1;
  min-height:320px;
  border-radius:20px;
  background:radial-gradient(ellipse at 60% 20%, #262f4a 0%, #10141f 70%);
  box-shadow:var(--shadow-navy);
  overflow:hidden;
  border:1px solid var(--line-navy);
  animation:float 6s ease-in-out infinite;
}
@keyframes float{
  0%, 100%{transform:translateY(0);}
  50%{transform:translateY(-10px);}
}
.scene-illustration{
  display:none;
}

/* ---------- CARRUSEL DE FOTOS DEL HERO ---------- */
.scene-slides{
  position:absolute;
  inset:0;
  z-index:1;
}
.scene-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity 1s var(--ease);
}
.scene-slide.active{
  opacity:1;
}
.scene-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.scene-dots{
  position:absolute;
  bottom:16px;
  right:18px;
  z-index:2;
  display:flex;
  gap:7px;
}
.scene-dot{
  width:7px;
  height:7px;
  padding:0;
  border:none;
  border-radius:50%;
  background:rgba(246,241,231,0.4);
  cursor:pointer;
  transition:background 0.35s var(--ease), transform 0.35s var(--ease);
}
.scene-dot.active{
  background:var(--gold);
  transform:scale(1.35);
}
.scene-plate{
  position:absolute;
  left:50%; top:56%;
  transform:translate(-50%,-50%);
  width:64%;
  aspect-ratio:1;
  border-radius:50%;
  background:radial-gradient(circle at 42% 60%, #d8d8dc, #9a9aa2 55%, #6c6c76 100%);
  box-shadow:0 20px 40px rgba(0,0,0,0.5);
}
.scene-cake{
  position:absolute;
  inset:10%;
  border-radius:50%;
  background:
    radial-gradient(circle at 35% 30%, #e8b565, #c8863a 55%, #a5651f 100%);
  box-shadow:inset 0 -8px 18px rgba(80,40,10,0.35), 0 8px 20px rgba(0,0,0,0.35);
  overflow:hidden;
}
.scene-drip{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 30% 70%, transparent 45%, rgba(160,90,20,0.4) 46%, transparent 60%),
    radial-gradient(circle at 65% 75%, transparent 40%, rgba(160,90,20,0.35) 42%, transparent 58%);
}
.scene-sugar{
  position:absolute;
  inset:0;
  background-image:
    radial-gradient(rgba(255,255,255,0.9) 1.5px, transparent 1.5px),
    radial-gradient(rgba(255,255,255,0.7) 1px, transparent 1px);
  background-size:14px 14px, 9px 9px;
  background-position:0 0, 5px 6px;
  opacity:0.55;
  mix-blend-mode:screen;
}
.scene-flame{
  position:absolute;
  width:10px; height:16px;
  border-radius:50% 50% 50% 50% / 60% 60% 40% 40%;
  background:radial-gradient(circle at 50% 30%, #fff3c4, var(--gold) 55%, #c9781f 100%);
  box-shadow:0 0 16px 4px rgba(217,169,79,0.55);
  animation:flicker 2.4s ease-in-out infinite;
  transform-origin:bottom center;
}
.scene-flame::before{
  content:"";
  position:absolute;
  bottom:-14px; left:50%;
  transform:translateX(-50%);
  width:5px; height:14px;
  background:#3a2c1c;
  border-radius:2px;
}
.f1{top:14%; left:16%; animation-delay:0s;}
.f2{top:22%; left:30%; animation-delay:0.6s; transform:scale(0.85);}
.f3{top:10%; left:44%; animation-delay:1.1s; transform:scale(1.1);}
@keyframes flicker{
  0%, 100%{transform:scaleY(1) rotate(-1deg); opacity:1;}
  30%{transform:scaleY(1.08) rotate(1.5deg); opacity:0.92;}
  55%{transform:scaleY(0.94) rotate(-2deg); opacity:1;}
  80%{transform:scaleY(1.05) rotate(1deg); opacity:0.95;}
}
.scene-caption{
  position:absolute;
  left:20px; bottom:-18px;
  background:var(--navy-deep);
  border:1px solid var(--line-navy);
  color:var(--cream);
  font-family:var(--font-mono);
  font-size:0.76rem;
  padding:10px 16px;
  border-radius:999px;
  box-shadow:var(--shadow-navy);
  transition:opacity 0.3s var(--ease);
}

@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr; gap:52px;}
  .hero-scene{max-width:420px; margin:0 auto;}
  .scene-caption{left:50%; transform:translateX(-50%); white-space:nowrap;}
}

@media (max-width:600px){
  .hero { text-align: center; }
  .hero-grid { display: flex; flex-direction: column; align-items: center; text-align: center; }
  h1 { font-size: 2.0rem; text-align: center; }
  .hero-text { font-size: 0.95rem; text-align: center; margin-left: auto; margin-right: auto; margin-bottom: 1.5em; max-width: 100%; }
  .hero-actions { justify-content: center; width: 100%; flex-direction: column; align-items: center; }
  .hero-actions .btn { width: auto; }
  .hero-facts { justify-content: center; width: 100%; }

  /* Corrección de la tarjeta y la imagen hero-torta */
  .hero-scene { width: 100%; max-width: 320px; margin: 0 auto; }
  .scene-card { width: 100%; min-height: 0; aspect-ratio: 4/3; }

  .hero { padding: 52px 0 76px; }
  .vitrina, .nosotros, .pedidos, .ubicacion { padding: 64px 0; }
  .order-form { padding: 22px; }
}

/* ---------- VITRINA ---------- */
.vitrina{
  padding:88px 0;
  background:var(--cream-deep);
  position:relative;
  z-index:1;
}
.section-head{
  max-width:640px;
  margin-bottom:36px;
}
/* ---------- COLUMNAS DE CATEGORÍAS ---------- */
.product-columns{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:32px;
  align-items:start;
}
.product-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
}

@media (max-width:1000px){
  .product-columns{grid-template-columns:repeat(2, 1fr);}
}
@media (max-width:600px){
  .product-columns{grid-template-columns:1fr;}
}

/* ---------- SECCIONES AGRUPADAS DE PRODUCTOS ---------- */
.product-section{
  min-width:0;
}
.product-section-title{
  font-family:var(--font-display);
  font-style:italic;
  font-weight:600;
  font-size:1.35rem;
  color:var(--espresso);
  display:inline-block;
  margin:0 0 22px;
  padding-bottom:8px;
  border-bottom:2px solid var(--gold);
  animation:sectionIn 0.5s var(--ease) both;
}
.product-section-title--premium{
  position:relative;
  border-bottom:none;
  background:linear-gradient(90deg, var(--gold-deep), var(--gold), #fff5da, var(--gold), var(--gold-deep));
  background-size:250% auto;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
  animation:sectionIn 0.5s var(--ease) both, premiumShimmer 2.8s linear infinite;
}
.product-section-title--premium::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:2px;
  background:var(--gold);
  box-shadow:0 0 10px 2px rgba(217,169,79,0.6);
  animation:premiumGlow 2s ease-in-out infinite;
}
@keyframes premiumShimmer{
  to{background-position:250% center;}
}
@keyframes premiumGlow{
  0%, 100%{opacity:0.55;}
  50%{opacity:1;}
}
@keyframes sectionIn{
  from{opacity:0; transform:translateY(14px);}
  to{opacity:1; transform:translateY(0);}
}
.product-empty{
  font-family:var(--font-mono);
  font-size:0.82rem;
  line-height:1.6;
  color:var(--espresso-soft);
  text-align:center;
  padding:36px 16px;
  border:1.5px dashed var(--line);
  border-radius:var(--radius);
  animation:sectionIn 0.5s var(--ease) both;
}

/* ---------- SELECTOR DE TAMAÑO / PRECIO ---------- */
.price-options{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:2px 0 10px;
}
.price-chip{
  font-family:var(--font-mono);
  font-size:0.68rem;
  padding:6px 11px;
  border-radius:999px;
  border:1.5px solid var(--line);
  background:var(--cream);
  color:var(--espresso-soft);
  cursor:pointer;
  transition:background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.2s var(--ease);
}
.price-chip:hover{
  border-color:var(--gold-deep);
  color:var(--gold-deep);
}
.price-chip.active{
  background:var(--espresso);
  border-color:var(--espresso);
  color:var(--cream);
  transform:scale(1.04);
}
.cart-item-label{
  font-weight:400;
  color:var(--espresso-soft);
  font-size:0.85em;
}
.product-card{
  background:var(--white);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow-soft);
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  transition:transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation:cardIn 0.5s var(--ease) both;
}
.product-card:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 34px rgba(46,29,20,0.16);
}
@keyframes cardIn{
  from{opacity:0; transform:translateY(16px);}
  to{opacity:1; transform:translateY(0);}
}
.product-media{
  height:150px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:3.4rem;
  background:linear-gradient(135deg, var(--cream) 0%, var(--cream-deep) 100%);
  position:relative;
  overflow:hidden;
  transition:transform 0.4s var(--ease);
}
.product-photo{
  width:100%;
  height:100%;
  object-fit:cover;
}
.product-emoji-fallback{
  display:none;
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
}
.product-card:hover .product-media{transform:scale(1.03);}
.product-tag{
  position:absolute;
  top:10px; left:10px;
  background:var(--gold);
  color:var(--navy-deep);
  font-family:var(--font-mono);
  font-size:0.62rem;
  font-weight:700;
  padding:4px 9px;
  border-radius:999px;
  text-transform:uppercase;
}
.product-body{
  padding:18px 18px 20px;
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1;
}
.product-name{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.05rem;
  margin:0;
}
.product-desc{
  font-size:0.85rem;
  color:var(--espresso-soft);
  margin:0 0 8px;
  flex:1;
}
.product-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:auto;
}
.product-price{
  font-family:var(--font-mono);
  font-weight:700;
  color:var(--gold-deep);
  display:inline-block;
}
.product-price.price-pulse{
  animation:pricePulse 0.35s var(--ease);
}
@keyframes pricePulse{
  0%{transform:scale(1);}
  40%{transform:scale(1.15);}
  100%{transform:scale(1);}
}
.add-btn{
  background:var(--espresso);
  color:var(--cream);
  border:none;
  border-radius:8px;
  padding:8px 14px;
  font-family:var(--font-mono);
  font-size:0.78rem;
  cursor:pointer;
  transition:background 0.35s var(--ease), transform 0.3s var(--ease);
}
.add-btn:hover{background:var(--gold-deep); transform:translateY(-1px);}
.add-btn.added{background:var(--gold); color:var(--navy-deep);}

/* ---------- NOSOTROS ---------- */
.nosotros{
  padding:96px 0;
  position:relative;
  z-index:1;
}
.nosotros-grid{
  display:grid;
  grid-template-columns:1.3fr 0.7fr;
  gap:56px;
  align-items:center;
}
.nosotros-copy p{
  color:var(--espresso-soft);
  max-width:56ch;
  text-align: justify;
}
.nosotros-list{
  list-style:none;
  padding:0;
  margin:28px 0 0;
  display:flex;
  flex-direction:column;
  gap:12px;
  font-family:var(--font-mono);
  font-size:0.85rem;
}
.nosotros-list strong{
  color:var(--gold-deep);
  margin-right:6px;
}
.nosotros-badge{
  display:flex;
  justify-content:center;
  position:relative;
}
.badge-circle{
  width:280px; height:280px;
  border-radius:50%;
  background:var(--navy);
  color:var(--cream);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  font-family:var(--font-display);
  border:1px solid var(--line-navy);
  transition:transform 0.4s var(--ease);
  overflow:hidden;
  position:relative;
}
.badge-circle:hover{transform:rotate(-4deg) scale(1.03);}
.badge-photo{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 45%;
}
.badge-fallback{
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.badge-fallback span{font-size:2.6rem; font-weight:900; color:var(--gold);}
.badge-fallback small{font-family:var(--font-mono); font-size:0.75rem; letter-spacing:0.05em;}
.badge-tag{
  position:absolute;
  bottom:-6px;
  left:50%;
  transform:translateX(-50%);
  background:var(--gold);
  color:var(--navy-deep);
  font-family:var(--font-mono);
  font-size:0.68rem;
  font-weight:700;
  letter-spacing:0.03em;
  padding:6px 14px;
  border-radius:999px;
  box-shadow:0 6px 14px rgba(46,29,20,0.2);
  white-space:nowrap;
}

@media (max-width:820px){
  .nosotros-grid{grid-template-columns:1fr; text-align:left;}
  .nosotros-badge{order:-1;}
}

/* ---------- PEDIDOS ---------- */
.pedidos{
  padding:96px 0;
  background:linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color:var(--cream);
  position:relative;
  z-index:1;
}
.pedidos .eyebrow{color:var(--gold);}
.pedidos h2{color:var(--white);}
.pedidos-text{
  color:rgba(246,241,231,0.72);
  max-width:44ch;
  text-align: justify;
}
.pedidos-grid{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:56px;
  align-items:start;
}
.order-form{
  background:var(--cream);
  border-radius:var(--radius);
  padding:30px;
  display:flex;
  flex-direction:column;
  gap:16px;
  box-shadow:var(--shadow-navy);
}
.order-form label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:0.85rem;
  font-weight:600;
  color:var(--espresso);
}
.order-form input,
.order-form textarea{
  font-family:var(--font-body);
  font-size:0.95rem;
  padding:11px 13px;
  border-radius:8px;
  border:1.5px solid var(--line);
  background:var(--white);
  color:var(--espresso);
  resize:vertical;
  transition:border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.order-form input:focus,
.order-form textarea:focus{
  outline:none;
  border-color:var(--gold-deep);
  box-shadow:0 0 0 3px rgba(217,169,79,0.22);
}
.form-note{
  font-family:var(--font-mono);
  font-size:0.82rem;
  color:var(--gold-deep);
  min-height:1.2em;
  margin:0;
}

@media (max-width:980px){
  .pedidos-grid{grid-template-columns:1fr;}
}

/* ---------- UBICACION ---------- */
.ubicacion{
  padding:96px 0;
  position:relative;
  z-index:1;
}
.ubicacion-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  align-items:center;
}
.ubicacion-text{color:var(--espresso-soft);}
.mapa-embed{
  height:280px;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  transition:transform 0.4s var(--ease);
}
.mapa-embed:hover{transform:scale(1.015);}
.mapa-embed iframe{
  display:block;
  width:100%;
  height:100%;
}

@media (max-width:980px){
  .ubicacion-grid{grid-template-columns:1fr;}
}

/* ---------- FOOTER ---------- */
.footer{
  padding:32px 0;
  border-top:1px solid var(--line);
  position:relative;
  z-index:1;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
  font-size:0.82rem;
  color:var(--espresso-soft);
  font-family:var(--font-mono);
}
.footer-author{
  display: inline-block;
  margin-top: 5px;
  font-weight: 600;
  color: var(--espresso);
  letter-spacing: 0.03em;
}
.footer-author strong{
  color: var(--gold-deep);
  font-weight: 700;
}

@media (max-width:600px){
  .footer-inner{flex-direction:column; align-items:flex-start; gap:16px;}
}

/* ---------- CARRITO LATERAL ---------- */
.cart-panel{
  position:fixed;
  top:0; right:0;
  height:100%;
  width:360px;
  max-width:90vw;
  background:var(--white);
  box-shadow:-12px 0 30px rgba(46,29,20,0.18);
  z-index:60;
  padding:26px;
  display:flex;
  flex-direction:column;
  transform:translateX(100%);
  transition:transform 0.35s var(--ease);
}
.cart-panel.open{transform:translateX(0);}
.cart-panel-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}
.cart-panel-head h3{margin:0; font-style:italic;}
#cartClose{
  background:none;
  border:none;
  font-size:1.1rem;
  cursor:pointer;
  color:var(--espresso);
  transition:transform 0.35s var(--ease);
}
#cartClose:hover{transform:rotate(90deg);}
.cart-items{
  flex:1;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.cart-empty{
  color:var(--espresso-soft);
  font-size:0.9rem;
  font-family:var(--font-mono);
}
.cart-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  font-size:0.88rem;
  border-bottom:1px dashed var(--line);
  padding-bottom:10px;
  animation:cardIn 0.3s var(--ease) both;
}
.cart-item-name{font-weight:600;}
.cart-item-qty{
  font-family:var(--font-mono);
  color:var(--espresso-soft);
  font-size:0.8rem;
}
.cart-item-remove{
  background:none;
  border:none;
  color:var(--gold-deep);
  cursor:pointer;
  font-size:0.85rem;
  transition:color 0.3s var(--ease);
}
.cart-item-remove:hover{color:#a33;}
.cart-total{
  display:flex;
  justify-content:space-between;
  font-family:var(--font-mono);
  font-weight:700;
  padding:16px 0;
  border-top:1.5px solid var(--espresso);
  margin-top:10px;
}
.cart-checkout{width:100%;}

.cart-overlay{
  position:fixed;
  inset:0;
  background:rgba(18,24,42,0.45);
  z-index:50;
  opacity:0;
  pointer-events:none;
  transition:opacity 0.35s var(--ease);
}
.cart-overlay.open{
  opacity:1;
  pointer-events:auto;
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  .btn, .cart-panel, .cart-overlay, .scene-card, .scene-flame, .product-card{animation:none; transition:none;}
}

/* ---------- WHATSAPP FLOTANTE ---------- */
.whatsapp-float{
  position:fixed;
  right:24px;
  bottom:24px;
  width:58px;
  height:58px;
  border-radius:50%;
  background:#25D366;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 26px rgba(37,211,102,0.45);
  z-index:45;
  transition:transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation:whatsappPulse 2.6s ease-in-out infinite;
}
.whatsapp-float svg{width:32px; height:32px;}
.whatsapp-float:hover{
  transform:translateY(-4px) scale(1.06);
  box-shadow:0 14px 32px rgba(37,211,102,0.55);
  animation-play-state:paused;
}
@keyframes whatsappPulse{
  0%, 100%{box-shadow:0 10px 26px rgba(37,211,102,0.45);}
  50%{box-shadow:0 10px 26px rgba(37,211,102,0.45), 0 0 0 10px rgba(37,211,102,0.12);}
}

@media (max-width:600px){
  .whatsapp-float{
    right:16px;
    bottom:16px;
    width:52px;
    height:52px;
  }
  .whatsapp-float svg{width:28px; height:28px;}
}

/* ---------- REDES SOCIALES (FOOTER) ---------- */
.footer-social{
  display:flex;
  align-items:center;
  gap:20px;
}
.social-icon{
  width:38px;
  height:38px;
  border-radius:50%;
  border:1.5px solid var(--line);
  color:var(--espresso-soft);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.social-icon svg{width:19px; height:19px;}
.social-icon:hover{
  color:var(--white);
  background:linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7);
  border-color:transparent;
  transform:translateY(-3px);
}

@media (prefers-reduced-motion: reduce){
  .whatsapp-float{animation:none;}
}

/* ---------- ÍCONO DE AMPLIAR AL PASAR EL MOUSE ---------- */
.product-media{cursor:pointer;}
.product-zoom-hint{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(18,24,42,0);
  opacity:0;
  pointer-events:none;
  transition:opacity 0.35s var(--ease), background 0.35s var(--ease);
}
.product-zoom-hint svg{
  width:26px;
  height:26px;
  color:var(--white);
  transform:scale(0.8);
  transition:transform 0.35s var(--ease);
}
.product-card:hover .product-zoom-hint{
  opacity:1;
  background:rgba(18,24,42,0.3);
}
.product-card:hover .product-zoom-hint svg{
  transform:scale(1);
}

/* ---------- LIGHTBOX (ampliar foto) ---------- */
.lightbox-overlay{
  position:fixed;
  inset:0;
  background:rgba(18,24,42,0.82);
  backdrop-filter:blur(6px);
  z-index:70;
  opacity:0;
  pointer-events:none;
  transition:opacity 0.4s var(--ease);
}
.lightbox-overlay.open{
  opacity:1;
  pointer-events:auto;
}
.lightbox{
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%) scale(0.9);
  z-index:71;
  max-width:96vw;
  max-height:94vh;
  width:min(96vw, 1200px);
  opacity:0;
  pointer-events:none;
  transition:opacity 0.45s var(--ease), transform 0.45s var(--ease);
  display:flex;
  flex-direction:column;
  align-items:center;
}
.lightbox.open{
  opacity:1;
  pointer-events:auto;
  transform:translate(-50%,-50%) scale(1);
}
.lightbox img{
  max-width:100%;
  max-height:86vh;
  border-radius:var(--radius);
  box-shadow:var(--shadow-navy);
  display:block;
}
.lightbox-caption{
  margin-top:16px;
  color:var(--cream);
  font-family:var(--font-mono);
  font-size:0.9rem;
  text-align:center;
}
.lightbox-close{
  position:fixed;
  top:20px;
  right:24px;
  z-index:72;
  width:42px;
  height:42px;
  border-radius:50%;
  border:1.5px solid var(--line-navy);
  background:rgba(28,36,56,0.85);
  color:var(--cream);
  font-size:1.1rem;
  cursor:pointer;
  opacity:0;
  transform:scale(0.8);
  pointer-events:none;
  transition:opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.lightbox-close.open{
  opacity:1;
  transform:scale(1);
  pointer-events:auto;
}
.lightbox-close:hover{transform:scale(1) rotate(90deg);}

@media (max-width:600px){
  .lightbox{width:94vw; max-height:90vh;}
  .lightbox img{max-height:74vh;}
}
