/* LO VEO LO QUIERO — style.css (v4) · paleta del manual de marca
   v4: pulido visual + checkout por WhatsApp (sin Mercado Pago). */
:root {
  --navy: #22324C;
  --navy-deep: #19263B;
  --gold: #C9A163;
  --gold-light: #E3C88F;
  --cream: #F2E3BA;
  --paper: #FBF7EE;
  --ink: #1F2937;
  --muted: #6a6f78;
  --line: #E6DAC3;
  --wa: #25D366;
  --wa-dark: #1E9E55;
  --error: #b3261e;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(25, 38, 59, .06);
  --shadow-md: 0 14px 34px -12px rgba(25, 38, 59, .28);
  --maxw: 1120px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Figtree', system-ui, sans-serif;
  --eyes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='70' viewBox='0 0 120 70'%3E%3Cg fill='none' stroke='%23C9A163' stroke-width='1.2' opacity='.22'%3E%3Cpath d='M20 35 Q60 5 100 35 Q60 65 20 35Z'/%3E%3Cpath d='M48 32 Q54 24 60 32 Q66 24 72 32 Q72 40 60 46 Q48 40 48 32Z'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.55; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.1; color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .98rem var(--sans); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover:not(:disabled) { background: var(--gold-light); box-shadow: 0 8px 20px -8px rgba(201, 161, 99, .7); }
.btn--outline { border-color: var(--gold); color: var(--cream); background: transparent; }
.btn--outline:hover { background: rgba(201, 161, 99, .15); }
.btn--full { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn__icon { width: 22px; height: 22px; flex: none; }

/* Botón WhatsApp del checkout */
.btn--wa {
  background: var(--wa); color: #fff; padding: 16px 26px; font-size: 1.05rem; letter-spacing: .01em;
  box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .8), inset 0 -2px 0 rgba(0, 0, 0, .12);
}
.btn--wa:hover:not(:disabled) { background: var(--wa-dark); box-shadow: 0 14px 28px -10px rgba(30, 158, 85, .85); }
.btn--wa:disabled { background: #9aa5a0; box-shadow: none; }

/* Barra superior */
.topbar { background: var(--navy-deep); color: var(--cream); font-size: .85rem; }
.topbar__inner { max-width: var(--maxw); margin: 0 auto; padding: 8px 24px; display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; }
.topbar__link { color: var(--gold-light); font-weight: 600; }
.topbar__link:hover { text-decoration: underline; }

/* Header */
.header { background: rgba(34, 50, 76, .97); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(201, 161, 99, .35); }
.header__inner { max-width: var(--maxw); margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 28px; }
.logo { margin-right: auto; display: block; }
.logo__img { display: block; height: 54px; width: auto; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--cream); font-weight: 500; padding: 6px 0; border-bottom: 1.5px solid transparent; transition: border-color .2s, color .2s; }
.nav a:hover { border-color: var(--gold); color: var(--gold-light); }
.nav-toggle { display: none; }
.nav-toggle-label { display: none; color: var(--cream); cursor: pointer; }
.nav-toggle__icon { width: 28px; height: 28px; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: var(--gold); color: var(--navy-deep); font-weight: 700; transition: background .2s; }
.cart-btn:hover { background: var(--gold-light); }
.cart-btn__icon { width: 20px; height: 20px; }
.cart-btn__count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--navy); color: var(--cream); font-size: .78rem; display: inline-flex; align-items: center; justify-content: center; }
.cart-btn__count.bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* Hero */
.hero { background: radial-gradient(ellipse at 80% 20%, rgba(201, 161, 99, .18), transparent 55%), var(--eyes), var(--navy); color: var(--cream); }
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 88px 24px 96px; display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
.hero__text { text-align: left; max-width: 760px; }
.hero__eyebrow { margin: 0 0 14px; color: var(--gold); font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero__title { font-size: clamp(2.8rem, 6vw, 4.8rem); color: var(--cream); font-weight: 500; letter-spacing: -.01em; }
.hero__title em { color: var(--gold-light); font-style: italic; }
.hero__subtitle { margin: 20px 0 0; font-size: 1.15rem; max-width: 38ch; color: rgba(242, 227, 186, .85); }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__logo { justify-self: center; width: 100%; max-width: 420px; border: 1px solid rgba(201, 161, 99, .45); border-radius: 220px 220px 14px 14px; padding: 64px 32px 44px; background: linear-gradient(180deg, rgba(25, 38, 59, .6), var(--navy-deep)); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.hero__logo img { display: block; width: 100%; height: auto; }

/* Franja de confianza */
.trust { background: var(--cream); border-bottom: 1px solid var(--line); }
.trust__inner { max-width: var(--maxw); margin: 0 auto; padding: 16px 24px; display: flex; flex-wrap: wrap; gap: 8px 40px; justify-content: center; color: var(--navy); font-weight: 600; font-size: .95rem; }

/* Catálogo */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0 56px; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; margin-bottom: 36px; }
.section__title { font-size: clamp(2.2rem, 4vw, 3rem); }
.section__desc { margin: 6px 0 0; color: var(--muted); }
.categories { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pill { padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--gold); background: transparent; color: var(--navy); font: 600 .92rem var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.cat-pill:hover { background: var(--cream); }
.cat-pill.active, .cat-pill[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--cream); }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; width: 100%; }
.product {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 18px;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
  animation: fadeUp .35s ease both;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.product--in-cart { border-color: var(--gold); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.product__img { position: relative; aspect-ratio: 1 / 1; border-radius: 999px 999px 10px 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .18); overflow: hidden; }
.product__emoji { font-size: 4rem; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25)); transition: transform .3s; }
.product:hover .product__emoji { transform: scale(1.1) rotate(-4deg); }
.product__badge { position: absolute; bottom: 10px; right: 10px; padding: 3px 10px; border-radius: 999px; background: var(--navy-deep); color: var(--cream); font-size: .8rem; font-weight: 700; }
.product__cat { color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.product__name { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.15; color: var(--navy); margin: 4px 0 12px; min-height: 2.3em; }
.product__prices { margin-top: auto; }
.product__price { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--navy); }
.product__actions { margin-top: 12px; }
.add-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 0; border-radius: 999px; background: var(--navy); color: var(--cream); font: 600 .92rem var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.add-btn:hover { background: var(--gold); color: var(--navy-deep); }
.add-btn__icon { width: 18px; height: 18px; }

/* Cómo comprar */
.steps { padding: 8px 0 80px; }
.steps__title { font-size: clamp(2rem, 3.5vw, 2.6rem); text-align: center; margin-bottom: 32px; }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; text-align: center; box-shadow: var(--shadow-sm); }
.steps__num { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); display: flex; align-items: center; justify-content: center; font: 700 1.1rem var(--sans); }
.steps__item h3 { font-size: 1.5rem; }
.steps__item p { margin: 6px 0 0; color: var(--muted); }

/* Contacto */
.contact { background: var(--eyes), var(--navy); padding: 80px 0; }
.contact__head { max-width: var(--maxw); margin: 0 auto 36px; padding: 0 24px; text-align: center; }
.contact__head h2 { color: var(--cream); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 500; }
.contact__head p { margin: 8px 0 0; color: rgba(242, 227, 186, .8); }
.contact__grid { max-width: 520px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr; gap: 24px; }
.contact__card { background: var(--paper); border-radius: var(--radius); padding: 32px 24px; text-align: center; border-top: 4px solid var(--gold); }
.contact__icon { width: 48px; height: 48px; margin: 0 auto 14px; color: var(--gold); }
.contact__icon svg { width: 100%; height: 100%; }
.contact__card h3 { font-size: 1.8rem; }
.contact__card p { margin: 6px 0 0; color: var(--muted); }
.contact__cta { max-width: 760px; margin: 24px auto 0; padding: 0 24px; }
.contact__cta-inner { border: 1px solid rgba(201, 161, 99, .5); border-radius: var(--radius); padding: 36px 24px; text-align: center; background: rgba(25, 38, 59, .7); }
.contact__cta-inner h3 { color: var(--gold-light); font-size: 1.9rem; font-weight: 500; }
.contact__cta-inner p { margin: 6px 0 24px; color: rgba(242, 227, 186, .85); }
.contact__buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.contact-btn { display: flex; flex-direction: column; min-width: 260px; padding: 16px 28px; border-radius: 999px; text-align: center; color: #fff; transition: transform .2s, box-shadow .2s; }
.contact-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .5); }
.contact-btn__label { font-size: .85rem; opacity: .9; }
.contact-btn__value { font-size: 1.15rem; font-weight: 700; }
.contact-btn--wa { background: var(--wa-dark); }
.contact-btn--ig { background: linear-gradient(45deg, #E9892B, #D62A5B 55%, #A6258F); }

/* Footer */
.footer { background: var(--navy-deep); color: var(--cream); }
.footer__top { max-width: var(--maxw); margin: 0 auto; padding: 48px 24px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 32px; }
.footer__logo-svg { height: 56px; width: auto; display: block; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__nav a { color: rgba(242, 227, 186, .8); font-weight: 500; }
.footer__nav a:hover { color: var(--gold-light); }
.footer__copy { max-width: var(--maxw); margin: 0 auto; padding: 24px 24px 30px; text-align: center; font-size: .85rem; color: rgba(242, 227, 186, .7); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .35); transition: transform .2s, background .2s;
}
.wa-float:hover { transform: scale(1.08); background: var(--wa-dark); }
.wa-float svg { width: 30px; height: 30px; }

/* Carrito y checkout */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; transition: visibility 0s linear .28s; }
.drawer--open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(15, 22, 36, .6); backdrop-filter: blur(2px); opacity: 0; transition: opacity .25s; }
.drawer--open .drawer__overlay { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(430px, 100%); background: var(--paper); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s ease; box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .4); }
.drawer--open .drawer__panel { transform: none; }
.drawer--checkout .drawer__panel { width: min(860px, 100%); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; background: var(--navy); }
.drawer__head h2 { color: var(--cream); font-size: 1.7rem; font-weight: 500; }
.drawer__close { width: 36px; height: 36px; border-radius: 50%; background: none; border: 0; color: var(--cream); font-size: 1.2rem; cursor: pointer; transition: background .2s; }
.drawer__close:hover { background: rgba(242, 227, 186, .12); }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 22px; }
.drawer__empty { text-align: center; color: var(--muted); padding: 48px 0; }
.drawer__item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer__item__img, .checkout__item__img { width: 58px; height: 58px; flex: none; border-radius: 999px 999px 6px 6px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.drawer__item__info, .checkout__item__info { flex: 1; }
.drawer__item__name, .checkout__item__name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--navy); line-height: 1.15; }
.drawer__item__price, .checkout__item__price { color: var(--muted); font-size: .88rem; }
.checkout__item__qty { color: var(--navy); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.drawer__item__qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-btn { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--gold); background: transparent; color: var(--navy); font-weight: 700; cursor: pointer; transition: background .2s; }
.qty-btn:hover { background: var(--cream); }
.qty-value { min-width: 20px; text-align: center; font-weight: 600; }
.drawer__remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; }
.drawer__remove:hover { color: var(--error); }
.drawer__foot { padding: 18px 22px; border-top: 1px solid var(--line); display: grid; gap: 14px; background: #fff; }
.drawer__subtotal { display: flex; justify-content: space-between; align-items: baseline; }
.drawer__subtotal strong { font-family: var(--serif); font-size: 1.8rem; color: var(--navy); }

.checkout { flex: 1; overflow-y: auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; padding: 24px; }
.checkout__step { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-weight: 600; color: var(--navy); }
.step { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.field { display: grid; gap: 5px; margin-bottom: 14px; }
.field span { font-size: .88rem; font-weight: 600; color: var(--navy); }
.field input, .field textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 161, 99, .2); }
.field--error input, .field--error textarea { border-color: var(--error); box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.field--error span { color: var(--error); }
.checkout__summary { align-self: start; position: sticky; top: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.checkout__summary-title { font-size: 1.6rem; margin-bottom: 12px; }
.checkout__item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.checkout__total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; margin-top: 8px; border-top: 2px solid var(--navy); }
.checkout__total-row strong { font-family: var(--serif); font-size: 1.8rem; color: var(--navy); }
.checkout__actions { display: grid; gap: 12px; }
.checkout__note { margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }

/* Responsive */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; padding: 56px 24px; gap: 36px; }
  .hero__logo { order: -1; max-width: 300px; padding: 40px 20px 28px; }
  .nav-toggle-label { display: inline-flex; order: 3; }
  .cart-btn { order: 2; }
  .header__inner { flex-wrap: wrap; gap: 12px; }
  .nav { display: none; order: 4; width: 100%; flex-direction: column; gap: 4px; padding-bottom: 8px; }
  .nav.open { display: flex; }
  .checkout { grid-template-columns: 1fr; }
  .checkout__summary { position: static; }
  .steps__list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .logo__img { height: 42px; }
  .topbar__inner { justify-content: center; text-align: center; }
  .cart-btn span:not(.cart-btn__count) { display: none; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product { padding: 10px 10px 14px; }
  .product__name { font-size: 1.15rem; }
  .product__price { font-size: 1.4rem; }
  .product__emoji { font-size: 3rem; }
  .add-btn { font-size: .82rem; padding: 10px 8px; }
  .add-btn__icon { display: none; }
  .contact-btn { width: 100%; min-width: 0; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
