/* ===== Madrecitas 3D · estilos de la tienda (estilo marketplace) =====
   Para cambiar los colores de toda la tienda edita las variables de :root
   Colores tomados del logo: azul marino #1F193F, coral #FF6C4B y crema #FFF7EC */
:root {
  --bg: #F3F1F6;
  --surface: #FFFFFF;
  --ink: #1F193F;
  --text: #33304A;
  --muted: #6B6880;
  --primary: #6A3FCC;
  --primary-dark: #4F2DA3;
  --primary-soft: #EFE9FB;
  --ring: rgba(106, 63, 204, .22);
  --accent: #FF6C4B;
  --accent-dark: #D94E2E;
  --accent-soft: #FFE9E2;
  --cream: #FFF7EC;
  --border: #E3DEEA;
  --ok: #1F8A4C;
  --warn: #B7791F;
  --danger: #C0392B;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(31, 25, 63, .10), 0 6px 18px rgba(31, 25, 63, .06);
  --font: ui-rounded, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .84rem; margin: .35rem 0 0; }

/* ===== Encabezado ===== */
.topbar { background: var(--primary-dark); color: #fff; font-size: .82rem; text-align: center; padding: .3rem 1rem; }
.preview-banner { background: #FFF4D6; border-bottom: 1px solid #F0D58A; color: #6B4E00; padding: .6rem 1rem; text-align: center; font-weight: 600; font-size: .92rem; }
.site-header { background: var(--cream); border-bottom: 1px solid #EBDDC9; box-shadow: 0 1px 3px rgba(31, 25, 63, .08); position: sticky; top: 0; z-index: 50; }
.hdr { display: flex; align-items: center; gap: 1.25rem; padding: .7rem 0 .4rem; }
.brand { display: block; flex: none; }
.brand img { height: 46px; width: auto; }
.search { flex: 1; display: flex; max-width: 740px; margin: 0 auto 0 .5rem; }
.search input { flex: 1; min-width: 0; height: 44px; padding: 0 1rem; border: 0; border-radius: 8px 0 0 8px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(31, 25, 63, .18); }
.search input::placeholder { color: #8C88A0; }
.search button { width: 54px; height: 44px; border: 0; border-radius: 0 8px 8px 0; background: var(--primary); color: #fff; cursor: pointer; display: grid; place-items: center; }
.search button:hover { background: var(--primary-dark); }
.cart-link { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: var(--ink); text-decoration: none; flex: none; }
.cart-link:hover { background: rgba(106, 63, 204, .12); color: var(--primary-dark); }
.cart-badge { position: absolute; top: 2px; right: 0; background: var(--accent); color: var(--ink); border-radius: 999px; font-size: .72rem; font-weight: 800; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; }
.menu-btn { display: none; background: none; border: 1px solid #E5D3BB; border-radius: 10px; padding: .5rem .7rem; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.subnav { display: flex; align-items: center; gap: .2rem; padding: 0 0 .5rem; font-size: .92rem; }
.subnav a, .dd-btn { text-decoration: none; color: var(--ink); padding: .35rem .75rem; border-radius: 8px; font-weight: 600; background: none; border: 0; font-family: inherit; font-size: inherit; cursor: pointer; }
.subnav a:hover, .dd-btn:hover, .subnav a[aria-current="page"] { background: rgba(106, 63, 204, .12); color: var(--primary-dark); }
.subnav .push { margin-left: auto; }
.subnav .strong { color: var(--primary-dark); }
.dd { position: relative; }
.dd-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border-radius: var(--radius); box-shadow: 0 8px 28px rgba(31, 25, 63, .2); padding: .4rem; z-index: 60; }
.dd:hover .dd-menu, .dd.open .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-menu a { display: block; padding: .5rem .8rem; font-weight: 500; }

/* ===== Botones ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.4rem; border-radius: 10px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .1s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-soft { background: var(--primary-soft); color: var(--primary-dark); }
.btn-soft:hover { background: #E2D8F7; color: var(--primary-dark); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #ff8265; color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--primary); color: var(--primary-dark); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-wa { background: #fff; border-color: #1FA855; color: #14783B; }
.btn-wa:hover { background: #E7F6EC; color: #14783B; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ===== Portada ===== */
.hero { background: linear-gradient(115deg, #4F2DA3 0%, #6A3FCC 55%, #8B5CF0 100%); color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; padding: clamp(2rem, 5vw, 3.2rem) 0 clamp(4rem, 8vw, 5.5rem); }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.12rem; color: #E9E1FA; max-width: 52ch; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.hero .btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.hero-art { display: grid; place-items: center; }
.hero-art img { width: min(250px, 70%); border-radius: 28px; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); transform: rotate(3deg); }
.perks { margin-top: -2.6rem; position: relative; z-index: 2; }
.perks-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(3, 1fr); }
.perk { padding: 1.1rem 1.25rem; display: flex; gap: .9rem; align-items: flex-start; }
.perk + .perk { border-left: 1px solid var(--border); }
.perk .ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: var(--primary-soft); border-radius: 12px; font-size: 1.35rem; }
.perk h3 { margin: 0 0 .1rem; font-size: .98rem; }
.perk p { margin: 0; color: var(--muted); font-size: .9rem; }
.section { padding: clamp(1.5rem, 4vw, 2.5rem) 0; }
.section.tight { padding-top: 0; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.panel-head a { font-weight: 700; text-decoration: none; font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { text-decoration: none; padding: .45rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--ink); font-weight: 600; font-size: .92rem; }
.chip:hover { border-color: var(--primary); color: var(--primary-dark); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip small { opacity: .7; font-weight: 500; }

/* ===== Tarjetas de producto ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.card-img { position: relative; aspect-ratio: 1; background: #F6F2EE; border-bottom: 1px solid var(--border); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.card .old { font-size: .85rem; color: var(--muted); text-decoration: line-through; min-height: 1.3em; }
.card .price { font-size: 1.45rem; font-weight: 700; color: var(--ink); line-height: 1.15; }
.off { font-size: .8rem; font-weight: 800; color: var(--primary); margin-left: .35rem; white-space: nowrap; }
.card-title { font-size: .95rem; color: var(--text); line-height: 1.3; margin-top: .3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-cat { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.low { font-size: .82rem; font-weight: 700; color: var(--accent-dark); margin-top: auto; padding-top: .3rem; }
.badge { position: absolute; top: .6rem; left: .6rem; padding: .25rem .65rem; border-radius: 6px; font-size: .76rem; font-weight: 800; background: var(--accent); color: var(--ink); }
.badge.soldout { background: var(--ink); color: #fff; }

/* ===== Catálogo ===== */
.page-head { padding: 1.5rem 0 .75rem; }
.breadcrumbs { font-size: .86rem; color: var(--muted); margin-bottom: .5rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); text-decoration: underline; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.toolbar select { padding: .5rem .8rem; border-radius: 8px; border: 1px solid var(--border); font: inherit; background: #fff; }
.result-count { color: var(--muted); font-size: .92rem; }
.empty { text-align: center; padding: 3rem 1rem; background: #fff; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: .4rem; margin: 2rem 0 0; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; text-align: center; padding: .5rem .8rem; border-radius: 8px; border: 1px solid var(--border); background: #fff; text-decoration: none; font-weight: 700; color: var(--ink); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Producto ===== */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.gallery { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: .8rem; align-items: start; }
.gallery.single { grid-template-columns: minmax(0, 1fr); }
.thumbs { display: flex; flex-direction: column; gap: .5rem; }
.thumb { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 2px solid var(--border); padding: 0; background: #fff; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { border-color: var(--primary); }
.gallery-main { aspect-ratio: 1; background: #F6F2EE; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.p-info h1 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-bottom: .6rem; }
.p-old { color: var(--muted); text-decoration: line-through; font-size: 1rem; }
.p-price { font-size: 2.2rem; font-weight: 600; color: var(--ink); line-height: 1.1; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; margin: .2rem 0 .8rem; }
.p-price .off { font-size: 1rem; margin: 0; }
.stock { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .92rem; margin-bottom: .8rem; }
.stock::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.stock.low { color: var(--warn); } .stock.low::before { background: var(--warn); }
.stock.out { color: var(--danger); } .stock.out::before { background: var(--danger); }
.buybox { border-top: 1px solid var(--border); margin-top: 1rem; padding-top: 1rem; display: grid; gap: .7rem; }
.qty-row { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.qty-row select, .qty-select { padding: .55rem .8rem; border-radius: 8px; border: 1px solid #CFC8DB; font: inherit; background: #fff; color: var(--ink); }
.notice { background: var(--primary-soft); border: 1px solid #D9CCF3; color: var(--primary-dark); padding: .8rem 1rem; border-radius: 10px; font-size: .92rem; }
.prose { white-space: pre-line; }
.video-box { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-box iframe, .video-box video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tabs-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem 1.5rem; margin-top: 1.25rem; }

/* ===== Carrito ===== */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
.cart-item { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.ci-name { font-weight: 600; color: var(--ink); text-decoration: none; }
.ci-name:hover { color: var(--primary); }
.ci-meta { display: flex; align-items: center; gap: .8rem; margin-top: .45rem; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); cursor: pointer; font-size: .92rem; }
.link-btn:hover { text-decoration: underline; }
.ci-price { text-align: right; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.ci-price small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.ci-warn { color: var(--danger); font-size: .86rem; font-weight: 600; margin-top: .3rem; }
.summary { position: sticky; top: 140px; }
.summary h2 { font-size: 1.15rem; margin-bottom: .9rem; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.sum-row.discount { color: var(--ok); font-weight: 600; }
.sum-total { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 800; color: var(--ink); border-top: 1px solid var(--border); margin-top: .5rem; padding-top: .8rem; }
.coupon-box { border-top: 1px solid var(--border); margin-top: 1rem; padding-top: 1rem; }
.coupon-form { display: flex; gap: .5rem; }
.coupon-form input { flex: 1; min-width: 0; height: 44px; padding: 0 .8rem; border: 1px solid #CFC8DB; border-radius: 8px; font: inherit; text-transform: uppercase; }
.coupon-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); outline: none; }
.coupon-form .btn { height: 44px; padding: 0 1rem; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; gap: .6rem; background: var(--primary-soft); border-radius: 8px; padding: .55rem .8rem; font-weight: 700; color: var(--primary-dark); }
.empty-cart { text-align: center; padding: 3rem 1rem; }
.empty-cart .big-ico { font-size: 3rem; }

/* ===== Páginas de texto ===== */
.text-page { max-width: 760px; }
.text-page .card-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; margin-bottom: 1rem; }
.text-page h3 { margin: 1rem 0 .25rem; }

/* ===== Pie ===== */
.site-footer { background: var(--ink); color: #D6D2E6; margin-top: 3rem; padding: 2.5rem 0 1.5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.footer-brand img { width: 52px; height: 52px; border-radius: 12px; }
.footer-brand strong { color: #fff; font-size: 1.15rem; }
.site-footer h4 { color: #fff; margin: 0 0 .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.copy { border-top: 1px solid #3a3560; margin-top: 2rem; padding-top: 1rem; font-size: .85rem; color: #9b97b8; }

/* ===== Cuentas de clientes ===== */
.alert { padding: .8rem 1rem; border-radius: 10px; margin: 0 0 1rem; border: 1px solid; font-size: .94rem; line-height: 1.45; }
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert-success { background: #E7F6EC; border-color: #B9E2C7; color: #14532D; }
.alert-error { background: #FDECEA; border-color: #F2B8B0; color: #7F1D1D; }
.alert-warning { background: #FFF4D6; border-color: #F0D58A; color: #6B4E00; }
.auth-wrap { background: linear-gradient(180deg, var(--primary) 0, var(--primary) 150px, var(--bg) 150px); padding: 2rem 0 3rem; }
.auth-card { max-width: 440px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.75rem; box-shadow: 0 10px 34px rgba(31, 25, 63, .18); }
.auth-card.center { text-align: center; }
.auth-card h1 { font-size: 1.45rem; margin: 0 0 .3rem; }
.auth-sub { color: var(--muted); margin: 0 0 .6rem; font-size: .95rem; }
.big-ico { font-size: 2.6rem; margin-bottom: .4rem; }
.auth-card .btn { width: 100%; height: 52px; margin-top: 1.1rem; font-size: 1rem; }
.auth-card form + .btn { margin-top: .7rem; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 1.4rem 0 0; }
.auth-links { text-align: center; margin: 1rem 0 0; font-size: .94rem; }
.forgot { margin: .7rem 0 0; font-size: .92rem; text-align: right; }
.secure-note { display: flex; justify-content: center; align-items: center; gap: .4rem; color: var(--muted); font-size: .85rem; margin: 1rem 0 0; }
.field { margin-top: 1rem; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: #4A4663; margin-bottom: .3rem; }
.field input { width: 100%; height: 52px; padding: 0 .9rem; border: 1px solid #CFC8DB; border-radius: 10px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
.field input::placeholder { color: #A29DB5; }
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); outline: none; }
.field input:disabled { background: #F1EEF6; color: var(--muted); }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 3.2rem; }
.eye { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 8px; color: #6B6880; cursor: pointer; display: grid; place-items: center; }
.eye:hover { background: #F1EEF6; color: var(--primary-dark); }
.eye .eye-off { display: none; }
.eye.on { color: var(--primary); }
.eye.on .eye-on { display: none; }
.eye.on .eye-off { display: block; }
.phone-wrap { display: flex; }
.phone-prefix { display: flex; align-items: center; gap: .45rem; padding: 0 .8rem; border: 1px solid #CFC8DB; border-right: 0; border-radius: 10px 0 0 10px; background: #F7F4FB; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.phone-wrap input { border-radius: 0 10px 10px 0; flex: 1; min-width: 0; }
.consent { display: flex; gap: .65rem; align-items: flex-start; margin-top: 1.2rem; font-size: .9rem; color: #4A4663; line-height: 1.45; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: .1rem; flex: none; accent-color: var(--primary); }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; margin-bottom: 0; }
.account-grid .tabs-box { margin-top: 0; }
.form-box .btn { height: 48px; margin-top: 1.2rem; }

/* ===== Responsivo ===== */
@media (max-width: 900px) {
  .hero-inner, .pdp, .footer-grid, .cart-layout, .account-grid { grid-template-columns: minmax(0, 1fr); }
  .perks-box { grid-template-columns: 1fr; } .perk + .perk { border-left: 0; border-top: 1px solid var(--border); }
  .hero-art { display: none; }
  .summary { position: static; }
  .menu-btn { display: block; margin-left: auto; }
  .hdr { flex-wrap: wrap; gap: .6rem; }
  .brand { order: 1; } .cart-link { order: 2; } .menu-btn { order: 3; margin-left: 0; }
  .brand { margin-right: auto; }
  .search { order: 4; flex-basis: 100%; max-width: none; margin: 0; }
  .subnav { display: none; flex-direction: column; align-items: stretch; padding: .4rem 0 .8rem; }
  .subnav.open { display: flex; }
  .subnav .push { margin-left: 0; }
  .dd-menu { position: static; display: block; box-shadow: none; padding: 0 0 0 .8rem; background: transparent; min-width: 0; }
  .dd-btn { display: none; }
  .gallery { grid-template-columns: 1fr; } .thumbs { flex-direction: row; order: 2; flex-wrap: wrap; }
  .pdp { padding: 1rem; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .card-body { padding: .65rem; } .card .price { font-size: 1.2rem; } .card-title { font-size: .88rem; }
  .cart-item { grid-template-columns: 72px minmax(0, 1fr); } .cart-item img { width: 72px; height: 72px; } .ci-price { grid-column: 2; text-align: left; }
  .auth-card { padding: 1.25rem; border-radius: 14px; } .auth-wrap { padding-top: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.hero .btn-primary { background: var(--accent); color: var(--ink); } .hero .btn-primary:hover { background: #ff8265; color: var(--ink); }

/* ===== Checkout y pedidos ===== */
.addr-opt { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem; border: 1px solid var(--border); border-radius: 10px; margin-bottom: .6rem; cursor: pointer; }
.addr-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.addr-opt input { margin-top: .25rem; accent-color: var(--primary); }
.form-box:has(#addr-new:not(:checked)) .newaddr.has-saved { display: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field select.sel { width: 100%; height: 52px; padding: 0 .9rem; border: 1px solid #CFC8DB; border-radius: 10px; font: inherit; background: #fff; }
.pill-st { display: inline-block; font-size: .8rem; vertical-align: middle; padding: .2rem .7rem; border-radius: 999px; background: #FFF0CC; color: #7A5200; font-weight: 700; margin-left: .4rem; }
.st-pagado, .st-entregado { background: #DDF3E6; color: #14532D; } .st-enviado { background: var(--primary-soft); color: var(--primary-dark); } .st-cancelado { background: #FBDCD7; color: #8F2316; }
.order-row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--border); align-items: center; flex-wrap: wrap; }
.order-row:last-child { border-bottom: 0; }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 3px solid var(--primary-soft); display: grid; gap: 1rem; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.1rem - 7px); top: .35rem; width: 11px; height: 11px; border-radius: 50%; background: var(--primary); }
.st-creando, .st-preparando { background: #E0F2FE; color: #075985; }
.ci-custom { font-size: .88rem; color: var(--muted); margin-top: .3rem; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); }
.swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; inset: 0; }
.swatch span { display: block; width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #CFC8DB; }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--primary); }
.swatch input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.color-name { font-weight: 600; margin-left: .3rem; }
.custom-box { border: 1px solid var(--border); border-radius: 10px; padding: .9rem 1rem; display: grid; gap: .8rem; background: #FBFAFD; }
.custom-box label.t { font-weight: 700; display: block; margin-bottom: .3rem; }
.custom-box input[type=text] { width: 100%; height: 46px; padding: 0 .8rem; border: 1px solid #CFC8DB; border-radius: 8px; font: inherit; }
.ship-meta { font-size: .82rem; color: var(--muted); margin: -.2rem 0 .3rem; }
.ship-meta.loading::after { content: " …"; }
.ship-meta.err { color: var(--danger); }
[hidden] { display: none !important; }

/* ===== Reseñas ===== */
.stars { --r: 0; display: inline-block; font-size: 1.05rem; line-height: 1; letter-spacing: 2px; vertical-align: -1px;
  background: linear-gradient(90deg, #F5A623 calc(var(--r) / 5 * 100%), #D9D4E3 calc(var(--r) / 5 * 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars::before { content: "★★★★★"; }
.stars.sm { font-size: .85rem; letter-spacing: 1px; }
.rating-line { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; color: var(--text); margin: -.2rem 0 .6rem; font-size: .92rem; }
.card-rating { display: flex; align-items: center; gap: .3rem; margin-top: .2rem; }
.review { border-top: 1px solid var(--border); padding: .9rem 0; }
.review:first-of-type { border-top: 0; }
.review p { margin: .35rem 0 0; }
.verified { color: var(--ok); font-size: .8rem; font-weight: 700; margin-left: .3rem; }
.review-form { border-top: 1px solid var(--border); margin-top: 1rem; padding-top: 1rem; display: grid; gap: .7rem; max-width: 560px; }
.review-form h3 { margin: 0; }
.review-form textarea { width: 100%; padding: .7rem .8rem; border: 1px solid #CFC8DB; border-radius: 10px; font: inherit; resize: vertical; }
.review-form .btn { justify-self: start; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2rem; color: #D9D4E3; cursor: pointer; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #F5A623; }
.star-input input:focus-visible + label { outline: 3px solid var(--accent); border-radius: 4px; }
.share-link { display: block; text-align: center; font-size: .9rem; margin-top: .2rem; }
