/* Ajustes de la portada (se carga después de site.css) */

/* fotos grandes en arco: la pieza entera y centrada, con los bordes de la foto difuminados en blanco */
.hero-x-arch .slide, .spotlight-img img { object-fit: contain; padding: 11% 6% 5%; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%); -webkit-mask-origin: content-box; mask-origin: content-box; -webkit-mask-clip: content-box; mask-clip: content-box; }
.spotlight-img img { height: 100%; }

/* fotos pequeñas: marco blanco con filo dorado */
.hero-x-float, .mp { padding: 6px; border: 1px solid rgba(168, 131, 79, .38); }
.hero-x-float img, .mp img { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 74%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 74%, transparent 100%); }
.manifesto-pics img { height: 100%; }
.f-b img, .mp-2 img { border-radius: 50%; }
.mp-3 img { border-radius: 999px 999px 0 0; }

/* ---------- cuenta del cliente */
.header-actions .account-link { display: inline-flex; align-items: center; gap: 10px; }
.acc-wrap { min-height: 70vh; display: grid; place-items: center; padding: clamp(48px, 8vw, 110px) var(--gutter); background: radial-gradient(800px 500px at 50% 0%, var(--gold-mist) 0%, rgba(250, 245, 236, 0) 75%), var(--bg); }
.acc-card { width: min(440px, 100%); background: var(--white); border: 1px solid var(--line); padding: clamp(28px, 5vw, 48px); box-shadow: 0 40px 80px -60px rgba(120, 90, 40, .35); }
.acc-card h1 { font-size: clamp(2.4rem, 5vw, 3.2rem); margin-bottom: 18px; }
.acc-lead { color: var(--ink-soft); margin: 0 0 22px; }
.acc-form { display: flex; flex-direction: column; gap: 16px; }
.acc-form label:not(.check) { display: flex; flex-direction: column; gap: 8px; font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.acc-form label small { letter-spacing: .06em; text-transform: none; color: var(--taupe); font-size: .78rem; }
.acc-form input:not([type="checkbox"]) { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); background: var(--white); font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--ink); border-radius: 0; transition: border-color .3s; }
.acc-form input:focus { outline: none; border-color: var(--accent); }
.acc-form input:disabled { background: var(--alt); color: var(--taupe); }
.acc-form .check { margin: 0; }
.acc-form .check a, .cart-points a, .acc-earned a { color: var(--gold-deep); }
.acc-form .btn { margin-top: 6px; align-self: flex-start; }
.acc-form .btn.full { align-self: stretch; }
.acc-alt { margin: 18px 0 0; text-align: center; }
.acc-foot { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; }
.acc-foot p { margin: 0 0 12px; color: var(--taupe); font-size: .9rem; }
.acc-msgs { margin: 18px 0 0; }
.acc-msg { margin: 0 0 16px; padding: 12px 16px; border-left: 2px solid var(--accent); background: var(--gold-mist); font-size: .9rem; color: var(--ink-soft); }
.acc-msg.error { border-left-color: var(--red); background: #fbf1ef; color: var(--red); }
.acc-hero { padding: clamp(60px, 8vw, 110px) 0 clamp(30px, 4vw, 50px); background: radial-gradient(900px 420px at 50% 0%, var(--gold-mist) 0%, rgba(250, 245, 236, 0) 75%), var(--white); text-align: center; }
.acc-hero h1 { font-size: clamp(3rem, 7vw, 5.6rem); }
.acc-hero h1 em { color: var(--gold); }
.acc-mail { margin: 14px 0 0; color: var(--taupe); }
.acc-hero .acc-msgs { max-width: 520px; margin: 24px auto 0; text-align: left; }
.acc-points { padding: 0 0 clamp(50px, 6vw, 80px); background: var(--white); }
.acc-points-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(16px, 2vw, 28px); }
.acc-balance, .acc-how { border: 1px solid var(--line); padding: clamp(26px, 4vw, 48px); }
.acc-balance { background: linear-gradient(160deg, #fff 0%, var(--gold-mist) 100%); }
.acc-big { margin: 0; font-family: var(--serif); font-size: clamp(3.6rem, 9vw, 6.4rem); line-height: 1; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.acc-value { margin: 14px 0 22px; color: var(--ink-soft); }
.acc-value b { font-weight: 400; color: var(--ink); }
.acc-meter { height: 2px; background: var(--line); overflow: hidden; }
.acc-meter span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 1.4s var(--ease-out); }
.acc-pending { margin: 16px 0 0; font-size: .85rem; color: var(--taupe); }
.acc-how ol { margin: 0 0 26px; padding: 0; list-style: none; counter-reset: how; }
.acc-how li { counter-increment: how; position: relative; padding: 0 0 16px 44px; color: var(--ink-soft); }
.acc-how li::before { content: counter(how, decimal-leading-zero); position: absolute; left: 0; top: -.1em; font-family: var(--serif); font-size: 1.4rem; color: var(--gold); }
.acc-how li b { font-weight: 400; color: var(--ink); }
.acc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.acc-h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 20px; }
.acc-list { border-top: 1px solid var(--line); }
.acc-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.acc-row b { display: block; font-weight: 400; }
.acc-row span { display: block; font-size: .8rem; color: var(--taupe); }
.acc-row .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.acc-row .plus { color: var(--gold-deep); }
.acc-row .minus { color: var(--ink-soft); }
.acc-end { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.acc-delete summary { cursor: pointer; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--taupe); }
.acc-delete .acc-form { margin-top: 16px; max-width: 360px; }
.cart-points { margin: 0 0 18px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); font-size: .86rem; color: var(--ink-soft); }
.cart-points p { margin: 0; }
.cart-points .check { margin: 0; }
.cart-earn { margin-top: 8px !important; color: var(--gold-deep); }
.cart-earn:empty { display: none; }
.acc-earned { margin: 0 0 30px; color: var(--ink-soft); }
.acc-earned b { font-weight: 400; color: var(--gold-deep); }
@media (max-width: 900px) {
  .acc-points-grid, .acc-cols { grid-template-columns: 1fr; }
  .header-actions { gap: 16px; }
}

/* ---------- Novedades: piezas alineadas con el ancho de la página (4 en ordenador, 3 en tableta) */
.rail { width: min(1360px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: 4px 0 10px; scroll-padding-inline: 0; gap: 24px; grid-auto-columns: calc((100% - 3 * 24px) / 4); }
@media (max-width: 1100px) { .rail { grid-auto-columns: calc((100% - 2 * 24px) / 3); } }
/* móvil: la pieza queda centrada y se asoman las de los lados */
@media (max-width: 900px) {
  .rail { width: 100%; gap: 14px; padding: 4px 13% 10px; scroll-padding-inline: 13%; grid-auto-columns: 100%; }
  .win-tile { scroll-snap-align: center; }
}

/* ---------- frase de Oucy Studios: centrada, con una foto igual a cada lado */
.manifesto-grid { display: grid; grid-template-columns: 1fr minmax(0, 640px) 1fr; align-items: center; gap: clamp(24px, 4vw, 64px); text-align: center; }
.manifesto-copy { font-size: clamp(1.9rem, 3.4vw, 3.3rem); }
.manifesto-copy .manifesto-text { font-size: 1em; max-width: none; }
.ms-pic { --r: 999px 999px 0 0; border-radius: 999px 999px 0 0; display: block; width: clamp(150px, 15vw, 230px); aspect-ratio: 4 / 5; overflow: hidden; background: #fff; border: 1px solid rgba(168, 131, 79, .38); padding: 8px; }
.ms-pic:first-child { justify-self: end; }
.ms-pic:last-child { justify-self: start; }
.ms-pic img { width: 100%; height: 100%; object-fit: contain; border-radius: 999px 999px 0 0; mix-blend-mode: normal; }
/* pie: sin el bloque de enlaces grandes (ya están en «Tienda») */
.site-footer { padding-top: clamp(56px, 6vw, 90px); }
@media (max-width: 1100px) {
  .manifesto-grid { grid-template-columns: 1fr; }
  .ms-pic { display: none; }
}
@media (max-width: 900px) { .manifesto { padding: 90px 0; } }

/* franja de palabras: más repeticiones y la misma velocidad, para que nunca se vea el final */
.kinetic-track.r2 { animation-duration: 120s; }
.kinetic-track.r3 { animation-duration: 180s; }
/* marco dorado de la foto grande: rodea el arco también por abajo */
.hero-x-ring { bottom: 36px; }
@media (max-width: 900px) { .hero-x-ring { bottom: 36px; } }

/* ---------- canjear puntos en el carrito */
.pts-pick { display: flex; flex-direction: column; gap: 8px; }
.pts-pick > span { display: flex; justify-content: space-between; gap: 10px; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.pts-pick small { letter-spacing: .04em; text-transform: none; font-size: .8rem; color: var(--gold-deep); }
.pts-pick select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); background: var(--white); font: inherit; font-size: 16px; color: var(--ink); border-radius: 0; }
.pts-pick select:focus { outline: none; border-color: var(--gold); }

/* ---------- enlace a la ruleta en «Mi cuenta» */
.acc-wheel-link { text-decoration: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding: 14px 16px; border: 1px solid rgba(168, 131, 79, .45); background: var(--white); color: var(--ink-soft); font-size: .9rem; transition: border-color .3s, background .3s; }
.acc-wheel-link b { font-weight: 400; color: var(--gold-deep); }
.acc-wheel-link svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.2; transition: transform .4s var(--ease-out); }
.acc-wheel-link:hover { border-color: var(--gold); background: var(--gold-mist); }
.acc-wheel-link:hover svg { transform: translateX(4px); }

/* ---------- ruleta */
.wheel-section { padding: 20px 0 clamp(50px, 6vw, 90px); background: var(--white); }
.wheel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(30px, 6vw, 100px); align-items: center; }
.wheel-stage { display: grid; place-items: center; }
.wheel { position: relative; width: min(520px, 100%); aspect-ratio: 1; padding: 14px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fff 60%, var(--gold-mist) 100%); border: 1px solid rgba(168, 131, 79, .45); box-shadow: 0 50px 90px -60px rgba(120, 90, 40, .45); }
.wheel-disc { display: block; width: 100%; height: 100%; transition: transform 6s cubic-bezier(.12, .62, .08, 1); will-change: transform; }
.wheel-disc.calm { transition-duration: 1s; }
.wheel .seg { stroke: rgba(168, 131, 79, .55); stroke-width: .6; transition: fill .5s; }
.wheel .seg-none { fill: #fff; }
.wheel .seg-win.r0 { fill: #f6efe2; }
.wheel .seg-win.r1 { fill: #ead9b9; }
.wheel .seg-win.r2, .wheel .seg-win.r3, .wheel .seg-win.r4 { fill: #d8bd8a; }
.wheel .seg-win.hit { fill: var(--gold); }
.wheel .seg-none.hit { fill: var(--gold-mist); }
.wheel .seg-dot { fill: rgba(168, 131, 79, .55); }
.wheel .seg-lab.hit .seg-txt { fill: #fff; }
.wheel .seg-txt { font-family: var(--serif); font-size: 15px; fill: var(--gold-deep); }
.wheel-pointer { position: absolute; top: -4px; left: 50%; z-index: 2; width: 0; height: 0; transform: translateX(-50%); border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 24px solid var(--gold); filter: drop-shadow(0 4px 6px rgba(120, 90, 40, .3)); }
.wheel-hub { position: absolute; inset: 50% auto auto 50%; width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid rgba(168, 131, 79, .5); }
.wheel-hub svg { width: 46%; height: 46%; fill: var(--gold); }
.wheel-side .acc-big { font-size: clamp(3rem, 7vw, 4.8rem); }
.wheel-form { margin: 26px 0 30px; }
.wheel-form .check a { color: var(--gold-deep); }
.wheel-result { min-height: 1.6em; margin: 4px 0 0; color: var(--ink-soft); font-size: .95rem; }
.wheel-result.win { color: var(--gold-deep); font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; }
.wheel-odds { padding-top: 22px; border-top: 1px solid var(--line); }
.wheel-odds table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: .9rem; }
.wheel-odds td { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.wheel-odds td:nth-child(2) { color: var(--taupe); font-size: .8rem; }
.wheel-odds td.r { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.wheel-odds tr.soft td { color: var(--taupe); }
@media (max-width: 900px) {
  .wheel-grid { grid-template-columns: 1fr; }
  .wheel { width: min(420px, 100%); }
}

/* ---------- ficha: aviso de envío gratis */
.free-hint { margin: -4px 0 18px; padding: 10px 14px; border-left: 2px solid var(--gold); background: var(--gold-mist); font-size: .88rem; color: var(--ink-soft); }
.free-hint b { font-weight: 400; color: var(--gold-deep); }
.free-hint.is-free { border-left-color: var(--gold-deep); }
.theme-urbano .free-hint { border-left-color: var(--brown, #5b3b2f); background: #f6efe6; }
.theme-urbano .free-hint b { color: var(--brown, #5b3b2f); }

/* ---------- ficha: «Completa el look» */
.look-section { background: var(--white); border-top: 1px solid var(--line); }
.look-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.look-item { display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: center; padding: 14px; border: 1px solid var(--line); background: var(--white); transition: border-color .3s, box-shadow .4s var(--ease-out); }
.look-item:hover { border-color: rgba(168, 131, 79, .45); box-shadow: 0 24px 50px -40px rgba(120, 90, 40, .45); }
.look-img { display: block; aspect-ratio: 1; overflow: hidden; border: 1px solid rgba(168, 131, 79, .3); padding: 4px; background: #fff; }
.look-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.look-item:hover .look-img img { transform: scale(1.04); }
.look-info { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.look-name { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; color: var(--ink); text-decoration: none; }
.look-price { margin: 0; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.look-add { min-height: 42px; padding: 10px 20px; font-size: .62rem; }
.look-out { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); }
@media (max-width: 520px) { .look-item { grid-template-columns: 104px 1fr; gap: 14px; } .look-name { font-size: 1.15rem; } }

/* ---------- carrito: envío estándar o rápido */
.ship-speed { display: grid; gap: 8px; margin: -4px 0 18px; }
.speed-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); background: var(--white); cursor: pointer; transition: border-color .3s, background .3s; }
.speed-opt input { accent-color: var(--gold-deep); width: 16px; height: 16px; margin: 0; }
.speed-opt span { display: flex; flex: 1; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.speed-opt b { font-weight: 400; font-size: .9rem; color: var(--ink); }
.speed-opt small { font-size: .82rem; color: var(--ink-soft); }
.speed-opt:has(input:checked) { border-color: var(--gold); background: var(--gold-mist); }
