:root {
  --black: #0d0806;
  --coffee-dark: #1a0f0a;
  --coffee: #3b2418;
  --cream: #f7ead9;
  --yellow: #ffe14d;
  --orange: #ff7a00;
  --red: #ff3d00;
  --text: #f7ead9;
  --muted: #c9b29a;
  --grad: linear-gradient(135deg, var(--yellow), var(--orange) 55%, var(--red));
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container { width: min(1150px, 100% - 32px); margin-inline: auto; }

h1, h2, h3, .logo, .price, .num, .badge {
  font-family: 'Bebas Neue', Impact, sans-serif;
  letter-spacing: 1px;
  font-weight: 400;
}

.highlight {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tag {
  display: inline-block;
  color: var(--yellow);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.tag.center { display: block; text-align: center; }

/* BOTONES */
.btn {
  display: inline-block;
  background: var(--grad);
  color: var(--black);
  font-weight: 700;
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 24px rgba(255, 122, 0, .35);
}
.btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 32px rgba(255, 122, 0, .55); }
.btn-small { padding: 9px 20px; font-size: .9rem; }
.btn-outline {
  background: transparent;
  color: var(--yellow);
  border: 2px solid var(--yellow);
  box-shadow: none;
}
.btn-outline:hover { background: var(--yellow); color: var(--black); }
.btn-dark { background: var(--black); color: var(--yellow); box-shadow: none; }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(16px, calc((100% - 1150px) / 2));
  transition: background .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(13, 8, 6, .92);
  backdrop-filter: blur(10px);
  padding-block: 10px;
  box-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.logo { display: flex; align-items: center; gap: 6px; font-size: 1.9rem; color: var(--cream); }
.logo span { color: var(--orange); }
.logo-icon { width: 40px; height: 40px; margin-right: 4px; filter: drop-shadow(0 0 8px rgba(255,122,0,.6)); transition: transform .4s; }
.logo:hover .logo-icon { transform: rotate(-20deg) scale(1.1); }

.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 500; }
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--grad); transition: width .3s;
}
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--yellow); border-radius: 2px; transition: .3s; }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 60px;
  background:
    radial-gradient(circle at 75% 45%, rgba(255,122,0,.22), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255,225,77,.08), transparent 40%),
    linear-gradient(160deg, var(--coffee-dark), var(--black));
  overflow: hidden;
}
.hero-bg-bolts {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7l1-8z' fill='%23ff7a00' fill-opacity='0.05'/%3E%3C/svg%3E");
  background-size: 120px;
  animation: drift 30s linear infinite;
}
@keyframes drift { to { background-position: 240px 240px; } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }

.hero h1 { font-size: clamp(3.2rem, 8vw, 6.2rem); line-height: .95; margin-bottom: 20px; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats { list-style: none; display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: 'Bebas Neue'; font-size: 2.4rem; color: var(--yellow); line-height: 1; }
.hero-stats span { color: var(--muted); font-size: .85rem; }

.hero-visual { position: relative; display: grid; place-items: center; }
.glow {
  position: absolute; width: 75%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,0,.55), transparent 65%);
  filter: blur(30px);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.12); opacity: .7; } }

.cup { position: relative; width: min(380px, 85%); animation: float 4s ease-in-out infinite; overflow: visible; }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes floatBag { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(-6deg) translateY(-10px); } }

.steam { fill: none; stroke: var(--cream); stroke-width: 5; stroke-linecap: round; opacity: 0; animation: steam 3s ease-in-out infinite; }
.s2 { animation-delay: .8s; } .s3 { animation-delay: 1.6s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(10px); }
  40% { opacity: .5; }
  100% { opacity: 0; transform: translateY(-25px); }
}
.cup-bolt { filter: drop-shadow(0 0 10px var(--orange)); animation: flash 2s infinite; }
@keyframes flash { 0%, 100% { opacity: 1; } 48% { opacity: 1; } 50% { opacity: .5; } 52% { opacity: 1; } }

.hero-bag {
  position: absolute; left: 2%; bottom: -4%;
  width: min(190px, 40%);
  transform: rotate(-10deg);
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.6));
  animation: floatBag 4.5s ease-in-out infinite;
}

.badge {
  position: absolute; top: 8%; right: 6%;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--grad); color: var(--black);
  display: grid; place-items: center; text-align: center;
  font-size: 1.7rem; line-height: .9;
  transform: rotate(12deg);
  box-shadow: 0 8px 30px rgba(255,122,0,.5);
  animation: spin-wobble 6s ease-in-out infinite;
}
.badge small { font-size: .9rem; }
@keyframes spin-wobble { 50% { transform: rotate(-8deg) scale(1.05); } }

/* MARQUESINA */
.marquee { background: var(--grad); color: var(--black); overflow: hidden; padding: 14px 0; transform: rotate(-1.5deg); margin: -10px 0; position: relative; z-index: 2; }
.marquee-track { display: flex; gap: 50px; width: max-content; animation: scroll 20s linear infinite; font-family: 'Bebas Neue'; font-size: 1.8rem; letter-spacing: 2px; }
@keyframes scroll { to { transform: translateX(-33.33%); } }

/* SECCIONES */
.section { padding: 110px 0; }
.section-dark { background: linear-gradient(180deg, var(--coffee-dark), var(--black)); }
.section-title { text-align: center; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1; margin-bottom: 60px; }

/* BENEFICIOS */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.card {
  background: linear-gradient(160deg, rgba(59,36,24,.6), rgba(26,15,10,.6));
  border: 1px solid rgba(255,122,0,.2);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-8px); border-color: var(--orange); box-shadow: 0 12px 40px rgba(255,122,0,.2); }
.card .icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: var(--grad); display: grid; place-items: center;
  font-size: 1.8rem; margin-bottom: 18px;
}
.card h3 { font-size: 1.7rem; margin-bottom: 8px; color: var(--yellow); }
.card p { color: var(--muted); font-size: .95rem; }

/* PRODUCTOS */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; align-items: center; }
.product {
  position: relative;
  background: var(--coffee-dark);
  border: 1px solid rgba(255,122,0,.2);
  border-radius: var(--radius);
  padding: 30px; text-align: center;
  transition: transform .3s;
  overflow: hidden;
}
.product:hover { transform: translateY(-6px); }
.product.featured { border: 2px solid var(--orange); box-shadow: 0 0 50px rgba(255,122,0,.3); padding-block: 44px; }
.ribbon {
  position: absolute; top: 18px; right: -38px;
  background: var(--grad); color: var(--black);
  font-weight: 700; font-size: .75rem; text-transform: uppercase;
  padding: 6px 44px; transform: rotate(45deg);
}
.product-img {
  height: 250px; margin-bottom: 18px;
  display: grid; place-items: center;
}
.product-img img { height: 250px; width: auto; max-width: 100%; transition: transform .4s; filter: drop-shadow(0 14px 20px rgba(0,0,0,.5)); }
.product:hover .product-img img { transform: rotate(-5deg) scale(1.06); }
.product-img { background: radial-gradient(circle at 50% 60%, rgba(255,122,0,.18), transparent 65%); }
.product h3 { font-size: 2rem; }
.level { display: flex; justify-content: center; gap: 6px; margin: 6px 0 12px; }
.level i { width: 34px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.12); }
.level i.on { background: var(--grad); }
.product p { color: var(--muted); font-size: .95rem; }
.price { font-size: 2.6rem; color: var(--yellow); margin: 16px 0; }

/* PASOS */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; counter-reset: none; }
.steps li { text-align: center; padding: 20px; }
.num {
  display: inline-grid; place-items: center;
  width: 80px; height: 80px; border-radius: 50%;
  border: 3px solid var(--orange);
  font-size: 2.6rem; color: var(--yellow);
  margin-bottom: 16px;
  box-shadow: 0 0 25px rgba(255,122,0,.4), inset 0 0 20px rgba(255,122,0,.25);
}
.steps h3 { font-size: 1.9rem; }
.steps p { color: var(--muted); }

/* OPINIONES */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
blockquote {
  background: rgba(59,36,24,.45);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 28px;
}
blockquote p { font-size: 1.05rem; margin-bottom: 14px; }
cite { color: var(--yellow); font-style: normal; font-weight: 600; font-size: .9rem; }

/* CTA */
.cta { background: var(--grad); color: var(--black); padding: 90px 0; text-align: center; }
.cta h2 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; margin-bottom: 12px; }
.highlight-dark { text-decoration: underline wavy var(--black) 3px; text-underline-offset: 8px; }
.cta p { font-size: 1.1rem; margin-bottom: 28px; }
.cta-form { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-form input {
  padding: 14px 22px; border-radius: 50px; border: 2px solid var(--black);
  font-family: inherit; font-size: 1rem; width: min(360px, 100%);
  background: rgba(255,255,255,.85);
}
.cta-form input:focus { outline: 3px solid var(--black); }
.form-msg { margin-top: 16px; font-weight: 600; min-height: 1.5em; }

/* FOOTER */
.footer { background: var(--black); padding: 60px 0 24px; border-top: 1px solid rgba(255,122,0,.2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer p { color: var(--muted); margin-top: 8px; }
.footer h4 { color: var(--yellow); margin-bottom: 10px; }
.footer-grid > div:not(:first-child) a { display: block; color: var(--muted); margin-bottom: 6px; transition: color .2s; }
.footer-grid a:hover { color: var(--orange); }
.copy { text-align: center; font-size: .85rem; margin-top: 40px; }

/* TOAST */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translate(-50%, 120px);
  white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis;
  background: var(--grad); color: var(--black);
  font-weight: 700; padding: 14px 26px; border-radius: 50px;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
  transition: transform .4s cubic-bezier(.2,1.4,.4,1);
  z-index: 300;
}
.toast.show { transform: translate(-50%, 0); }

/* CARRITO */
.nav-links { margin-left: auto; margin-right: 22px; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.cart-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,122,0,.12); border: 2px solid var(--orange);
  display: grid; place-items: center; cursor: pointer; transition: transform .2s, background .2s;
}
.cart-btn:hover { background: var(--orange); }
.cart-btn:hover svg { stroke: var(--black); fill: none; }
.cart-btn:hover svg circle { fill: var(--black); }
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn svg circle { fill: var(--yellow); stroke: none; }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px;
  border-radius: 11px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--black);
  transform: scale(0); transition: transform .25s;
}
.cart-count.has { transform: scale(1); }
.cart-btn.bump { animation: bump .45s; }
@keyframes bump { 30% { transform: scale(1.25) rotate(-10deg); } 60% { transform: scale(.95) rotate(6deg); } }

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 150; }
.overlay.show { opacity: 1; pointer-events: auto; }

.cart {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--coffee-dark); border-left: 2px solid var(--orange);
  z-index: 160; display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .4s cubic-bezier(.2,.9,.3,1);
  box-shadow: -20px 0 60px rgba(0,0,0,.6);
}
.cart.open { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid rgba(255,122,0,.2); }
.cart-head h2 { font-size: 2.2rem; }
.icon-btn { background: none; border: none; color: var(--cream); font-size: 1.3rem; cursor: pointer; width: 38px; height: 38px; border-radius: 50%; transition: background .2s; }
.icon-btn:hover { background: rgba(255,255,255,.1); }

.cart-step { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cart-step[hidden] { display: none; }

.ship-bar { padding: 14px 22px; background: rgba(255,122,0,.08); font-size: .85rem; }
.ship-bar p { margin-bottom: 8px; }
.ship-bar strong { color: var(--yellow); }
.ship-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.ship-fill { height: 100%; width: 0; background: var(--grad); transition: width .4s; }

.cart-items { list-style: none; flex: 1; overflow-y: auto; padding: 10px 22px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); animation: slideIn .3s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } }
.cart-item img { width: 64px; height: 80px; object-fit: contain; }
.cart-item h4 { font-family: 'Bebas Neue'; font-size: 1.35rem; letter-spacing: 1px; font-weight: 400; line-height: 1; }
.cart-item .unit { color: var(--muted); font-size: .8rem; }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid rgba(255,122,0,.4); border-radius: 30px; }
.qty button { width: 30px; height: 28px; background: none; border: none; color: var(--yellow); font-size: 1.1rem; cursor: pointer; }
.qty button:hover { color: var(--orange); }
.qty span { min-width: 24px; text-align: center; font-weight: 600; }
.item-right { text-align: right; }
.item-total { font-family: 'Bebas Neue'; font-size: 1.4rem; color: var(--yellow); }
.remove { display: block; margin-left: auto; margin-top: 6px; background: none; border: none; color: var(--muted); font-size: .75rem; cursor: pointer; text-decoration: underline; }
.remove:hover { color: var(--red); }

.cart-empty { flex: 1; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 30px; color: var(--muted); }
.cart-empty img { width: 90px; opacity: .8; animation: float 3s ease-in-out infinite; }
.cart.empty .cart-empty { display: flex; }
.cart.empty .cart-items, .cart.empty .cart-foot, .cart.empty .ship-bar { display: none; }

.cart-foot { padding: 18px 22px 22px; border-top: 1px solid rgba(255,122,0,.2); background: rgba(0,0,0,.25); }
.row { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--muted); }
.row.total { color: var(--cream); font-weight: 700; font-size: 1.15rem; margin: 10px 0 16px; }
.row.total span:last-child { font-family: 'Bebas Neue'; font-size: 1.8rem; color: var(--yellow); font-weight: 400; }
.btn-block { width: 100%; text-align: center; }

.checkout { padding: 18px 22px; overflow-y: auto; gap: 12px; }
.checkout h3 { font-size: 1.8rem; }
.checkout label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
.checkout input:not([type=radio]) {
  padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(255,122,0,.3);
  background: rgba(0,0,0,.3); color: var(--cream); font-family: inherit; font-size: .95rem;
}
.checkout input:focus { outline: 2px solid var(--orange); border-color: transparent; }
.back-link { align-self: flex-start; background: none; border: none; color: var(--yellow); cursor: pointer; font-family: inherit; }
.mp-info { display: grid; gap: 4px; padding: 12px 14px; border-radius: 10px; background: rgba(0,158,227,.1); border: 1px solid rgba(0,158,227,.4); font-size: .82rem; color: var(--muted); }
.mp-info strong { color: var(--cream); font-size: .9rem; }
.btn-mp { background: #009ee3; color: #fff; box-shadow: 0 6px 24px rgba(0,158,227,.35); }
.btn-mp:hover { box-shadow: 0 10px 32px rgba(0,158,227,.55); }
.btn-mp:disabled { opacity: .7; cursor: wait; transform: none; }
.pay-error { color: #ff6b5a; font-size: .85rem; text-align: center; min-height: 1.2em; }

.done { align-items: center; justify-content: center; text-align: center; padding: 30px; gap: 10px; }
.done-icon { width: 100px; height: 100px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 3rem; animation: pulse 1.6s infinite; margin-bottom: 10px; }
.done h3 { font-size: 2.4rem; }
.done p { color: var(--muted); }
.done strong { color: var(--yellow); }
.done .btn { margin-top: 16px; }

body.no-scroll { overflow: hidden; }

/* ANIMACIÓN AL HACER SCROLL */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .cup { width: min(260px, 70%); }
  .badge { width: 76px; height: 76px; font-size: 1.3rem; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(280px, 80%);
    flex-direction: column; justify-content: center;
    background: var(--coffee-dark);
    transform: translateX(100%); transition: transform .35s;
    box-shadow: -10px 0 40px rgba(0,0,0,.6);
  }
  .nav-links.open { transform: none; }
  .nav-toggle { z-index: 101; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid .logo { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
