/* ============ MANTEQUITA · squishys de mantequilla ============ */
:root {
  --cream: #FFF3D6;        /* fondo mantequilla claro */
  --cream-deep: #FBE7AE;   /* crema más intensa */
  --butter: #F7C948;       /* amarillo mantequilla */
  --butter-deep: #E8AE1B;  /* dorado tostado */
  --toast: #3E2C1C;        /* marrón tostada (texto) */
  --toast-soft: #7A6248;   /* marrón suave (texto secundario) */
  --blue: #2B4EA2;         /* azul del empaque BUTTER */
  --blue-deep: #1E3A7B;
  --white: #FFFDF6;
  --dark: #2B2013;         /* fondo zona subasta */
  --dark-2: #3A2C1A;
  --green: #25D366;        /* WhatsApp */
  --red: #D64545;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(62, 44, 28, 0.12);
  --shadow-big: 0 24px 60px rgba(62, 44, 28, 0.18);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--toast);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, .btn, .brand-text { font-family: 'Baloo 2', cursive; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }

.skip-link { position: absolute; top: -60px; left: 12px; z-index: 999; background: var(--toast); color: var(--cream); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* ---- Barra superior ---- */
.top-bar { background: var(--toast); overflow: hidden; padding: 8px 0; }
.top-bar-track { display: flex; gap: 42px; width: max-content; animation: slide 28s linear infinite; }
.top-bar span { color: var(--cream); font-size: .82rem; font-weight: 700; letter-spacing: .4px; white-space: nowrap; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255, 243, 214, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(62, 44, 28, 0.08);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--toast); margin-right: auto; }
.brand-butter { font-size: 1.9rem; filter: drop-shadow(0 3px 4px rgba(62,44,28,.2)); }
.brand-text { font-size: 1.45rem; font-weight: 800; line-height: 1; display: flex; flex-direction: column; }
.brand-text small { font-family: 'Nunito', sans-serif; font-size: .62rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--toast-soft); }
.main-nav ul { display: flex; gap: 6px; list-style: none; align-items: center; }
.main-nav a {
  text-decoration: none; color: var(--toast); font-weight: 800; font-size: .92rem;
  padding: 8px 14px; border-radius: 100px; transition: background .2s;
}
.main-nav a:hover { background: var(--cream-deep); }
.nav-subasta { background: var(--dark); color: var(--cream) !important; }
.nav-subasta:hover { background: var(--dark-2) !important; }
.nav-apreta { background: var(--butter); color: var(--toast) !important; }
.nav-apreta:hover { background: var(--butter-deep) !important; }
.footer-nav { display: flex; gap: 8px 18px; flex-wrap: wrap; justify-content: center; margin: 14px 0; }
.footer-nav a { color: var(--cream); text-decoration: none; font-weight: 700; font-size: .9rem; opacity: .85; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.btn-wsp {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #06341C; text-decoration: none;
  font-weight: 800; font-size: .9rem; padding: 10px 18px; border-radius: 100px;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .35); transition: transform .15s;
}
.btn-wsp:hover { transform: translateY(-2px); }
.nav-toggle { display: none; background: var(--butter); border: none; font-size: 1.3rem; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; color: var(--toast); }

/* ---- Hero ---- */
.hero {
  display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(24px, 5vw, 64px);
  align-items: center; padding: clamp(32px, 6vw, 80px) clamp(16px, 5vw, 64px);
  max-width: 1200px; margin: 0 auto;
}
.hero-kicker { font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; font-size: .78rem; color: var(--blue); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: .98; font-weight: 800; letter-spacing: -1px; }
.hero h1 em { font-style: normal; color: var(--butter-deep); position: relative; }
.hero-sub { margin: 20px 0 26px; font-size: 1.12rem; color: var(--toast-soft); max-width: 46ch; }
.hero-sub strong { color: var(--red); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 800; font-size: 1rem; padding: 14px 26px; border-radius: 100px;
  border: none; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--butter); color: var(--toast); box-shadow: 0 8px 24px rgba(232, 174, 27, .4); }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 30px rgba(232, 174, 27, .5); }
.btn-ghost { background: transparent; color: var(--toast); border: 3px solid var(--toast); }
.btn-ghost:hover { background: var(--toast); color: var(--cream); }
.hero-badges { display: flex; gap: 18px; list-style: none; margin-top: 26px; flex-wrap: wrap; }
.hero-badges li { font-weight: 800; font-size: .85rem; color: var(--toast-soft); }
.hero-img { position: relative; overflow: visible; display: flex; justify-content: center; }
.hero-img img {
  width: 100%; height: auto;
  transform-origin: center center; will-change: transform;
  cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 20px 26px rgba(62, 44, 28, 0.22));
}
.hero-canvas {
  width: 100%; height: auto; display: block; cursor: pointer;
  filter: drop-shadow(0 20px 26px rgba(62, 44, 28, 0.22));
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.hero-sticker {
  position: absolute; top: -12px; right: -8px; z-index: 3; pointer-events: none;
  background: var(--blue); color: #fff; font-family: 'Baloo 2', cursive; font-weight: 800;
  padding: 10px 18px; border-radius: 100px; transform: rotate(8deg);
  box-shadow: 0 8px 20px rgba(43, 78, 162, .4); font-size: 1.05rem;
}

/* ---- Separador goteo ---- */
.drip { line-height: 0; margin-top: -1px; }
.drip svg { width: 100%; height: 44px; display: block; }
.drip.flip svg { transform: none; }

/* ---- Secciones ---- */
.section { padding: clamp(44px, 7vw, 90px) clamp(16px, 5vw, 64px); max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; }
.section-head p { color: var(--toast-soft); max-width: 60ch; margin: 10px auto 0; font-size: 1.05rem; }
.live-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--green); margin-left: 8px; vertical-align: middle; animation: pulse 1.6s ease infinite; }
.live-label { display: inline-block; margin-left: 8px; font-family: 'Nunito'; font-size: .7rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #0E6B3B; vertical-align: middle; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.25); } }

/* ---- Catálogo ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 290px)); justify-content: center; gap: clamp(18px, 3vw, 32px); max-width: 900px; margin: 0 auto; }
.loading-card { grid-column: 1/-1; text-align: center; padding: 60px 0; font-weight: 800; color: var(--toast-soft); }
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 3px solid transparent; transition: transform .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--butter); }
.pc-img { position: relative; aspect-ratio: 1; background: var(--cream-deep); overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.product-card:active .pc-img img { transform: scale(1.06, .92); }
.pc-size {
  position: absolute; top: 14px; left: 14px; background: var(--blue); color: #fff;
  font-family: 'Baloo 2'; font-weight: 700; font-size: .82rem; padding: 6px 14px; border-radius: 100px;
}
.pc-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pc-body h3 { font-size: 1.35rem; font-weight: 800; line-height: 1.15; }
.pc-price { font-family: 'Baloo 2'; font-size: 1.7rem; font-weight: 800; color: var(--toast); }
.pc-price small { font-size: .95rem; color: var(--toast-soft); font-weight: 600; }
.stock-pill {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-weight: 800; font-size: .85rem; padding: 7px 14px; border-radius: 100px;
}
.stock-ok { background: rgba(37, 211, 102, .14); color: #157a3d; }
.stock-low { background: rgba(232, 174, 27, .18); color: #8a6206; }
.stock-out { background: rgba(214, 69, 69, .12); color: var(--red); }
.stock-bar { display: flex; gap: 4px; margin: 2px 0 4px; }
.stock-bar i { flex: 1; height: 8px; border-radius: 4px; background: var(--butter); }
.stock-bar i.off { background: rgba(62, 44, 28, .12); }
.restock-note { font-size: .92rem; color: var(--toast-soft); font-weight: 700; }
.pc-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 8px; }
.pc-actions .btn { justify-content: center; font-size: .98rem; padding: 14px 10px; white-space: nowrap; }
.btn-buy { background: var(--green); color: #06341C; box-shadow: 0 6px 18px rgba(37, 211, 102, .3); }
.btn-buy:hover { transform: translateY(-2px); }
.btn-sep { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(43, 78, 162, .3); }
.btn-sep:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(43, 78, 162, .4); }

/* ---- Preventa ---- */
.preventa { background: transparent; }
.preventa-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto 34px; }
.step { background: var(--white); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); text-align: center; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--butter);
  font-family: 'Baloo 2'; font-weight: 800; font-size: 1.3rem; margin-bottom: 10px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { font-size: .95rem; color: var(--toast-soft); }
.preventa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 290px)); justify-content: center; gap: 20px; max-width: 900px; margin: 0 auto; }
.preventa-cta { text-align: center; margin-top: 30px; }

/* ---- Subasta ---- */
.subasta { background: var(--dark); max-width: none; color: var(--cream); }
.subasta .section-head h2 { color: var(--cream); }
.subasta .section-head p { color: rgba(255, 243, 214, .75); }
.auction-zone { max-width: 980px; margin: 0 auto; }
.dark-load { color: rgba(255, 243, 214, .6); }
.auction-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden;
  background: var(--dark-2); border-radius: 22px; box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
  border: 2px solid rgba(247, 201, 72, .25);
}
.ac-img { position: relative; min-height: 280px; }
.ac-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ac-badge {
  position: absolute; top: 16px; left: 16px; background: var(--red); color: #fff;
  font-family: 'Baloo 2'; font-weight: 800; font-size: .8rem; letter-spacing: 1px;
  padding: 7px 16px; border-radius: 100px; text-transform: uppercase;
}
.ac-badge.ended { background: rgba(62,44,28,.85); }
.ac-body { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; }
.ac-body h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); color: var(--cream); line-height: 1.15; }
.ac-desc { color: rgba(255, 243, 214, .7); font-size: .95rem; }
.ac-countdown { display: flex; gap: 10px; }
.cd-box { background: rgba(0, 0, 0, .35); border-radius: 12px; padding: 8px 0; text-align: center; flex: 1; border: 1px solid rgba(247, 201, 72, .2); }
.cd-box b { display: block; font-family: 'Baloo 2'; font-size: 1.5rem; color: var(--butter); line-height: 1; }
.cd-box span { font-size: .62rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255, 243, 214, .55); }
.ac-top-bid { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ac-top-bid .label { font-size: .78rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255, 243, 214, .55); }
.ac-top-bid .amount { font-family: 'Baloo 2'; font-size: 2.3rem; font-weight: 800; color: var(--butter); line-height: 1; }
.ac-top-bid .who { font-size: .95rem; color: rgba(255, 243, 214, .75); font-weight: 700; }
.bid-history { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.bid-history li { display: flex; justify-content: space-between; font-size: .9rem; color: rgba(255, 243, 214, .7); background: rgba(0, 0, 0, .22); padding: 7px 14px; border-radius: 10px; }
.bid-history li b { color: var(--cream); }
.bid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.bid-form input {
  background: rgba(0, 0, 0, .3); border: 2px solid rgba(247, 201, 72, .25); border-radius: 12px;
  padding: 12px 14px; color: var(--cream); font-family: 'Nunito'; font-weight: 700; font-size: 16px; /* 16px evita el auto-zoom de iOS */
  min-width: 0;
}
.bid-form input::placeholder { color: rgba(255, 243, 214, .66); }
.bid-form input:focus { border-color: var(--butter); outline: none; }
.bid-form .full { grid-column: 1/-1; }
.bid-form button {
  grid-column: 1/-1; background: var(--butter); color: var(--toast);
  font-family: 'Baloo 2'; font-weight: 800; font-size: 1.1rem;
  border: none; border-radius: 100px; padding: 14px; cursor: pointer;
  box-shadow: 0 10px 26px rgba(247, 201, 72, .35); transition: transform .15s;
}
.bid-form button:hover { transform: translateY(-2px); }
.bid-form button:disabled { opacity: .5; cursor: wait; transform: none; }
.bid-msg { font-weight: 800; font-size: .92rem; min-height: 1.3em; }
.bid-msg.ok { color: #7de8a5; }
.bid-msg.err { color: #ff9c9c; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.auction-rules { max-width: 980px; margin: 22px auto 0; background: rgba(0, 0, 0, .25); border-radius: 14px; border: 1px solid rgba(247, 201, 72, .18); }
.auction-rules summary { cursor: pointer; padding: 16px 20px; font-weight: 800; color: var(--cream); display: flex; justify-content: space-between; list-style: none; }
.auction-rules summary::-webkit-details-marker { display: none; }
.auction-rules ol { padding: 0 20px 18px 40px; color: rgba(255, 243, 214, .75); font-size: .95rem; display: flex; flex-direction: column; gap: 6px; }
.auction-empty { text-align: center; padding: 40px 20px; color: rgba(255,243,214,.6); font-weight: 800; }

/* ---- Envíos ---- */
.envio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 0 auto; }
.envio-card { background: var(--white); border-radius: var(--radius); padding: 30px 24px; text-align: center; box-shadow: var(--shadow); border-top: 6px solid var(--butter); }
.envio-card.free { border-top-color: var(--green); }
.envio-icon { font-size: 2.4rem; margin-bottom: 10px; }
.envio-card h3 { font-size: 1.3rem; }
.envio-tag { font-weight: 800; letter-spacing: 2px; font-size: .78rem; color: var(--blue); margin: 4px 0 10px; }
.envio-card.free .envio-tag { color: #157a3d; }
.envio-card p:last-child { font-size: .95rem; color: var(--toast-soft); }
.pago-strip {
  max-width: 980px; margin: 30px auto 0; background: var(--cream-deep);
  border-radius: 100px; padding: 14px 26px; display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap; justify-content: center;
}
.pago-strip span { font-weight: 800; }
.pago-strip ol { display: flex; gap: 20px; list-style: none; counter-reset: paso; flex-wrap: wrap; }
.pago-strip li { font-weight: 700; font-size: .92rem; color: var(--toast-soft); counter-increment: paso; }
.pago-strip li::before { content: counter(paso) '. '; font-weight: 800; color: var(--blue); }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-list details { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); border: 2px solid transparent; }
.faq-list details[open] { border-color: var(--butter); }
.faq-list summary { cursor: pointer; padding: 18px 22px; font-weight: 800; font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list p { padding: 0 22px 18px; color: var(--toast-soft); font-size: .98rem; }

/* ---- Footer ---- */
.site-footer { background: var(--toast); color: var(--cream); text-align: center; padding: 50px 20px 34px; margin-top: 40px; }
.footer-brand { font-family: 'Baloo 2'; font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.footer-inner p { margin-bottom: 14px; opacity: .85; }
.footer-fine { font-size: .8rem; opacity: .55 !important; margin-top: 18px; }

/* ---- Flotante WhatsApp ---- */
.wsp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .45); transition: transform .15s;
}
.wsp-float:hover { transform: scale(1.08); }

/* ---- Toast ---- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 150%);
  background: var(--toast); color: var(--cream); font-weight: 800;
  padding: 14px 26px; border-radius: 100px; z-index: 99;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  max-width: 90vw; text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

/* ---- Móvil ---- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .hero-img { order: -1; transform: rotate(0); max-width: 480px; margin: 0 auto; }
  .auction-card { grid-template-columns: 1fr; }
  .ac-img { min-height: 220px; }
  .envio-grid, .preventa-steps { grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 480px) {
  /* una sola columna: los placeholders no se cortan en celulares chicos */
  .bid-form { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .header-wsp { display: none; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; }
  .main-nav ul {
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--white); margin: 0 12px; border-radius: 16px; padding: 10px;
    box-shadow: var(--shadow-big);
    max-height: 0; overflow: hidden; opacity: 0; padding: 0 10px;
    transition: max-height .3s ease, opacity .25s, padding .3s;
  }
  .site-header.open .main-nav ul { max-height: 60vh; opacity: 1; padding: 10px; }
  .main-nav a { display: block; padding: 13px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .01ms !important; }
  .top-bar-track { animation: none !important; }
  html { scroll-behavior: auto; }
}
