/* ============================================================
   LA CUARTA ESTRELLA — by PALMITO
   ============================================================ */

/* Oculta visualmente el widget de Tiendanube sin desmontarlo: sigue
   funcionando (recibe los add-to-cart programáticos) pero el cliente
   nunca lo ve ni lo usa a mano. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --celeste: #75aadb;
  --celeste-100: #e2eefa;
  --celeste-200: #cde2f4;
  --celeste-300: #b5d4ee;
  --celeste-600: #3579b8;
  --sol: #f4a72c;
  --sol-deep: #d98814;
  --ink: #0c2038;
  --ink-soft: #3d5876;
  --paper: #d9e9f8;
  --paper-2: #cde2f4;
  --line: #b9d3ea;
  --shadow: 0 10px 40px -18px rgba(12, 32, 56, .35);
  --radius: 18px;
  --maxw: 1160px;
  --font-display: "Anton", "Archivo Black", Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: .5px;
}

/* ---------- PREVENTA BAR ---------- */
.preventa-bar {
  background: linear-gradient(135deg, #ffd56a, var(--sol));
  background-size: 200% 200%;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 16px;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: 14px; letter-spacing: 1px;
  animation: preventa-shimmer 3s ease-in-out infinite;
}
.preventa-bar .preventa-star { width: 15px; height: 15px; flex-shrink: 0; }
.preventa-bar .preventa-sep { margin: 0 2px; opacity: .6; }
@keyframes preventa-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) { .preventa-bar { animation: none; } }
@media (max-width: 480px) {
  .preventa-bar { font-size: 11.5px; padding: 9px 12px; letter-spacing: .5px; gap: 6px; }
  .preventa-bar .preventa-star { width: 11px; height: 11px; }
  .preventa-bar .preventa-star:nth-of-type(2) { display: none; }
  .preventa-bar .preventa-star:nth-last-of-type(2) { display: none; }
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(217,233,248,.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; letter-spacing: 1px; text-transform: uppercase; }
.brand .sol { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 600; }
.nav-links a { color: var(--ink-soft); transition: color .18s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 10px;
  font-weight: 700; font-size: 14px;
}
.nav-cta:hover { background: var(--celeste-600); }
@media (max-width: 720px){
  .nav-links a:not(.nav-cta){ display:none; }
  .brand { font-size: 16px; }
  .nav-cta { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--celeste-200) 0%, var(--paper) 100%);
  padding: 68px 0 40px;
  overflow: hidden; isolation: isolate;
}
.hero-background {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .18; filter: saturate(.85) contrast(.92);
  pointer-events: none;
}
.hero .hero-grid { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(46px, 8vw, 92px); }
.hero h1 .accent { color: var(--celeste-600); }
.hero p.lead { margin: 20px 0 28px; font-size: 18px; color: var(--ink-soft); max-width: 30ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: 12px; font-weight: 700; font-size: 15px;
  cursor: pointer; border: 0; transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--celeste-600); box-shadow: var(--shadow); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--celeste); }
.btn-block { width: 100%; }

.hero-card {
  position: relative; border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 4/5; background: var(--celeste-100);
}
.hero-card img,
.hero-card video { width: 100%; height: 100%; object-fit: cover; }
.hero-tag {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(14,23,38,.82); color: #fff; padding: 9px 15px; border-radius: 10px;
  font-size: 13px; font-weight: 700; backdrop-filter: blur(4px);
}
@media (max-width: 860px){
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 440px; margin: 0 auto; }
  .hero p.lead { max-width: none; }
}
@media (max-width: 720px){
  .hero { padding: 28px 0 32px; }
  .hero-background { display: none; }
  .hero-grid { gap: 30px; }
  .hero h1 { font-size: clamp(44px, 14vw, 66px); }
  .hero p.lead { margin: 16px 0 22px; font-size: 17px; }
}

/* ---------- MARQUEE ---------- */
.marquee {
  background: var(--ink); color: #fff; overflow: hidden; white-space: nowrap;
  border-top: 3px solid var(--sol); border-bottom: 3px solid var(--sol);
}
.marquee-track { display: inline-flex; gap: 40px; padding: 13px 0; animation: scroll 90s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: 18px; letter-spacing: 1.5px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 40px; }
.marquee span::after { content: "★"; color: var(--sol); }
@keyframes scroll { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ---------- SECTION HEADS ---------- */
.section { padding: 76px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .kicker { font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--sol-deep); }
.section-head h2 { font-size: clamp(32px, 5vw, 52px); margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 17px; }

/* ---------- PRODUCT GRID ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px){ .products { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 600px){ .products { grid-template-columns: 1fr;} }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4/5; background: var(--celeste-100); overflow: hidden; cursor: pointer; }
.card-limited { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 7px 10px; border: 1px solid rgba(255,255,255,.65); border-radius: 999px; background: linear-gradient(135deg, #ffd56a, var(--sol)); color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; animation: limited-glow 2.4s ease-in-out infinite; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transform-origin: var(--zoom-x, center) var(--zoom-y, center); transition: transform .3s ease, opacity .3s; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-media img { transform: scale(2); }
}
.card-badge {
  position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ink);
  font-size: 11.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  padding: 6px 11px; border-radius: 8px; box-shadow: var(--shadow);
}
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 19px; font-weight: 800; letter-spacing: -.2px; }
.card-body .desc { color: var(--ink-soft); font-size: 14px; flex: 1; }
.card-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.price { font-family: var(--font-display); font-size: 26px; letter-spacing: .5px; }
.price small { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--ink-soft); display: block; letter-spacing: 0; }
.card .btn { margin-top: 14px; }

/* ---------- MANIFESTO ---------- */
.manifesto {
  background: linear-gradient(160deg, var(--celeste-600), var(--celeste));
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.manifesto .wrap { position: relative; }
.manifesto h2 { font-size: clamp(18px, 5vw, 54px); max-width: none; margin: 0 auto; white-space: nowrap; }
.manifesto p { margin: 20px auto 0; max-width: 52ch; font-size: 18px; opacity: .95; }

/* ---------- LOOKBOOK / VIDEOS ---------- */

/* ---------- INFO STRIP ---------- */
.info { background: var(--paper-2); }
.info-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px 32px; }
@media (max-width: 720px){ .info-grid { grid-template-columns: 1fr; } }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item .ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--celeste-600); }
.info-item h4 { font-size: 16px; font-weight: 800; }
.info-item p { font-size: 14px; color: var(--ink-soft); }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: #cdd6e4; padding: 56px 0 30px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand { color: #fff; margin-bottom: 12px; }
.footer p { max-width: 34ch; font-size: 14px; }
.footer-links { display: flex; gap: 46px; flex-wrap: wrap; }
.footer-col h5 { color: #fff; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 14px; padding: 4px 0; color: #cdd6e4; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #8a97ad; }
.footer-claim { white-space: nowrap; }

/* ---------- MODAL / QUICK VIEW ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(14,23,38,.6); backdrop-filter: blur(4px);
  z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 22px; overflow: hidden; width: 100%; max-width: 900px;
  max-height: 92vh; display: grid; grid-template-columns: 1fr 1fr; box-shadow: var(--shadow);
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-gallery { background: var(--celeste-100); display: flex; flex-direction: column; }
.modal-main { flex: 1; aspect-ratio: 4/5; overflow: hidden; cursor: zoom-in; background: #f5f5f5; }
.modal-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.modal-main:hover img { transform: scale(1.65); }
.modal-main img.product-only { object-fit: cover; object-position: center; }
.modal-thumbs { display: flex; gap: 8px; padding: 10px; background: #fff; overflow-x: auto; }
.modal-thumbs img { width: 58px; height: 58px; border-radius: 9px; object-fit: cover; cursor: pointer; border: 2px solid transparent; }
.modal-thumbs img.active { border-color: var(--celeste); }
.modal-info { padding: 26px 26px 24px; overflow-y: auto; display: flex; flex-direction: column; }
.modal-info .kicker { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sol-deep); }
.modal-info h3 { font-size: 26px; font-weight: 800; margin: 6px 0 4px; letter-spacing: -.3px; }
.modal-info .m-price { font-family: var(--font-display); font-size: 30px; margin: 6px 0 14px; }
.modal-limited { width: fit-content; margin: -6px 0 16px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.75); border-radius: 999px; background: linear-gradient(135deg, #ffd56a, var(--sol)); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; animation: limited-glow 2.4s ease-in-out infinite; }
@keyframes limited-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(244,167,44,0), 0 3px 12px rgba(12,32,56,.14); }
  50% { box-shadow: 0 0 18px rgba(255,196,70,.7), 0 3px 14px rgba(12,32,56,.18); }
}
@media (prefers-reduced-motion: reduce) {
  .card-limited, .modal-limited { animation: none; }
}
.modal-info .m-desc { font-size: 15px; color: var(--ink-soft); margin-bottom: 18px; }
.size-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.sizes { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 22px; }
.size {
  min-width: 46px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 11px;
  background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; transition: .15s;
}
.size:hover { border-color: var(--celeste); }
.size.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 0; font-size: 20px; cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow);
}
@media (max-width: 720px){
  .modal-overlay { padding: 10px; }
  .modal { grid-template-columns: 1fr; max-height: calc(100dvh - 20px); overflow-y: auto; border-radius: 16px; }
  .modal-main:hover img { transform: none; }
  .modal-info { padding: 20px 18px 18px; }
  .modal-info h3 { font-size: 23px; }
  .modal-thumbs { padding: 8px; }
  .modal-thumbs img { width: 52px; height: 52px; }
}

/* ---------- FLOATING LINKS ---------- */
.floating-links {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; flex-direction: column; gap: 10px;
}
.fab {
  width: 58px; height: 58px; border-radius: 50%; color: #fff;
  display: grid; place-items: center;
  transition: transform .2s;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 30px; height: 30px; }
.fab-youtube { background: #ff0000; box-shadow: 0 8px 26px -6px rgba(255,0,0,.55); }
.fab-spotify { background: #1db954; box-shadow: 0 8px 26px -6px rgba(29,185,84,.55); }
.fab-instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcb045); box-shadow: 0 8px 26px -6px rgba(225,48,108,.65); }

/* ---------- CART ---------- */
.cart-trigger { border: 0; border-radius: 999px; padding: 10px 14px; background: var(--ink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 720px) { .nav-links > a:not(.nav-cta) { display: none; } .cart-trigger { padding: 8px 10px; } }

/* ---------- MOBILE AUDIT ---------- */
@media (max-width: 720px) {
  .wrap { padding-inline: 16px; }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 30px; }
  .section-head p { font-size: 15px; }
  .products { gap: 20px; }
  .card-limited { padding: 6px 9px; font-size: 9px; letter-spacing: .45px; }
  .card-limited .limited-long { display: none; }
  .card-badge { padding: 5px 9px; font-size: 10px; }
  .floating-links { right: 12px; bottom: 12px; gap: 8px; }
  .fab { width: 46px; height: 46px; }
  .fab svg { width: 24px; height: 24px; }
  .manifesto.section { padding: 26px 0; }
  .manifesto .wrap { padding-inline: 10px; }
  .manifesto h2 { font-size: clamp(16px, 6.6vw, 25px); line-height: 1; letter-spacing: 0; white-space: nowrap !important; }
  .footer { padding: 44px 0 24px; }
  .footer-top, .footer-bottom { flex-direction: column; }
  .footer-links { width: 100%; gap: 30px; }
  .footer-bottom { font-size: 11px; }
  .footer-claim { font-size: 16px; font-weight: 700; white-space: normal; line-height: 1.3; color: #cdd6e4; padding-right: 64px; }
}

@media (max-width: 360px) {
  .brand { font-size: 14px; gap: 7px; }
  .brand .sol { width: 22px; height: 22px; }
  .nav-inner { height: 60px; }
  .cart-trigger { font-size: 13px; }
  .hero h1 { font-size: 42px; }
  .hero-card { border-radius: 18px; }
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
