/* ==============================================================
   Pulseras Tiendecitas - paleta pastel + minimalismo + diversion
   ============================================================== */

:root {
    /* Paleta pastel */
    --c-cream:      #FFF7F0;
    --c-peach:      #FFD9C2;
    --c-pink:       #F8C8D5;
    --c-mint:       #BFE5D1;
    --c-lavender:   #DCD0F2;
    --c-sky:        #BEDFF0;
    --c-yellow:     #FFE7A8;

    /* Mascota labrador chocolate */
    --c-choco:      #6B4226;
    --c-choco-soft: #8C5A38;
    --c-choco-deep: #3D2515;

    --c-text:       #2D1F14;
    --c-text-soft:  #6B5A4A;
    --c-bg:         #FFFCF8;
    --c-border:     #EFE5DA;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    --shadow-sm: 0 2px 8px rgba(107, 66, 38, 0.06);
    --shadow-md: 0 8px 24px rgba(107, 66, 38, 0.10);

    --font-display: 'Fredoka', system-ui, sans-serif;
    --font-body: 'Quicksand', system-ui, sans-serif;

    --container: 1120px;
}

/* Reset minimo */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
a { color: var(--c-choco); text-decoration: none; }
a:hover { color: var(--c-choco-deep); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 252, 248, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-border);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--c-text); }
.brand__logo { width: 44px; height: 44px; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.brand__dot { color: var(--c-pink); }

.site-nav { display: flex; gap: 28px; }
.site-nav a {
    color: var(--c-text-soft); font-weight: 500;
    padding: 6px 0; position: relative;
}
.site-nav a:hover { color: var(--c-choco); }
.site-nav a:hover::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
    background: var(--c-pink); border-radius: 3px;
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.cart-link, .fav-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: var(--radius-pill);
    font-weight: 600; transition: background .15s, color .15s;
}
.cart-link { background: var(--c-peach); color: var(--c-choco); }
.cart-link:hover { background: var(--c-pink); color: var(--c-choco-deep); }
.cart-link__count { font-size: .9rem; }

.fav-link { background: transparent; color: var(--c-text-soft); }
.fav-link:hover { background: var(--c-cream); color: var(--c-pink); }
.fav-link__count {
    font-size: .8rem; background: var(--c-pink); color: var(--c-choco-deep);
    border-radius: 999px; min-width: 20px; height: 20px;
    display: inline-grid; place-items: center; padding: 0 6px;
    font-weight: 700;
}

/* ---------- Favorite heart buttons ---------- */
.fav-heart {
    background: white; border: 0; padding: 8px;
    border-radius: 50%; cursor: pointer;
    color: var(--c-text-soft);
    box-shadow: var(--shadow-sm);
    transition: color .15s, transform .12s, background .15s;
    display: inline-grid; place-items: center;
}
.fav-heart svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: fill .15s; }
.fav-heart:hover { color: var(--c-pink); transform: scale(1.06); }
.fav-heart--on { color: #E64C7B; }
.fav-heart--on svg { fill: currentColor; }
.fav-heart--card {
    position: absolute; top: 10px; right: 10px; z-index: 2;
}
.fav-heart--lg {
    background: transparent; box-shadow: none; padding: 4px;
}
.fav-heart--lg:hover { background: var(--c-cream); }

.product-card { position: relative; }
.product-detail__title-row {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.product-detail__title-row h1 { margin: 8px 0 12px; }

@media (max-width: 720px) {
    .site-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    padding: 56px 0 72px;
    background: linear-gradient(180deg, var(--c-cream) 0%, var(--c-bg) 100%);
    overflow: hidden;
}
.hero__inner {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.eyebrow {
    display: inline-block; background: var(--c-mint); color: var(--c-choco-deep);
    padding: 6px 14px; border-radius: var(--radius-pill);
    font-weight: 600; font-size: .85rem; letter-spacing: .02em;
    margin: 0 0 18px;
}
.hero__title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 18px;
}
.hero__title .accent {
    background: linear-gradient(120deg, var(--c-pink) 0%, var(--c-peach) 100%);
    padding: 0 .15em; border-radius: 12px;
}
.hero__lead { font-size: 1.15rem; color: var(--c-text-soft); max-width: 46ch; margin-bottom: 28px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__art { position: relative; min-height: 320px; display: grid; place-items: center; }
.hero__blob {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 30% 30%, var(--c-pink) 0, transparent 50%),
        radial-gradient(circle at 70% 60%, var(--c-mint) 0, transparent 55%),
        radial-gradient(circle at 50% 80%, var(--c-yellow) 0, transparent 55%);
    filter: blur(8px); opacity: .65;
    border-radius: var(--radius-lg);
}
.hero__mascot { position: relative; width: min(320px, 70%); }

@media (max-width: 800px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__art { order: -1; min-height: 220px; }
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 26px; border-radius: var(--radius-pill);
    font-weight: 600; font-family: var(--font-display);
    border: 2px solid transparent; transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--c-choco); color: var(--c-cream); }
.btn--primary:hover { background: var(--c-choco-deep); color: var(--c-cream); }
.btn--ghost { background: transparent; border-color: var(--c-choco); color: var(--c-choco); }
.btn--ghost:hover { background: var(--c-choco); color: var(--c-cream); }

/* ---------- Features ---------- */
.features { padding: 72px 0; }
.features__grid {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature {
    background: white; border: 1px solid var(--c-border);
    border-radius: var(--radius-md); padding: 28px;
    box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature__icon {
    font-size: 1.6rem; color: var(--c-choco);
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--c-peach);
    display: grid; place-items: center; margin-bottom: 16px;
}
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--c-text-soft); margin: 0; }

@media (max-width: 800px) {
    .features__grid { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */
.cta-band {
    margin: 32px 0 80px;
}
.cta-band__inner {
    background: linear-gradient(135deg, var(--c-pink) 0%, var(--c-peach) 100%);
    border-radius: var(--radius-lg);
    padding: 56px 32px; text-align: center;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.cta-band p { max-width: 50ch; margin: 0 auto 24px; color: var(--c-choco-deep); }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--c-border);
    padding: 32px 0; background: var(--c-cream);
}
.site-footer__inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
}
.site-footer p { margin: 0; color: var(--c-text-soft); font-size: .92rem; }
.site-footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer__links a { color: var(--c-text-soft); font-size: .9rem; }
.site-footer__links a:hover { color: var(--c-choco); }

/* ---------- Botones extra ---------- */
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn--block { display: block; width: 100%; }

/* ---------- Pills de disponibilidad ---------- */
.pill {
    display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill);
    font-size: .78rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 12px;
}
.pill--ready { background: var(--c-mint); color: var(--c-choco-deep); }
.pill--last  { background: var(--c-yellow); color: var(--c-choco-deep); }
.pill--lead  { background: var(--c-lavender); color: var(--c-choco-deep); }
.pill--out   { background: #ECECEC; color: #555; }

/* ---------- Catálogo ---------- */
.catalog-head { padding: 56px 0 16px; }
.catalog-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }
.catalog-head .lead { color: var(--c-text-soft); max-width: 60ch; margin-bottom: 24px; }

.cat-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
    background: white; border: 1px solid var(--c-border);
    padding: 8px 16px; border-radius: var(--radius-pill);
    color: var(--c-text-soft); font-weight: 500; font-size: .92rem;
    transition: all .15s;
}
.chip:hover { border-color: var(--c-choco); color: var(--c-choco); }
.chip--active { background: var(--c-choco); border-color: var(--c-choco); color: var(--c-cream); }
.chip--active:hover { color: var(--c-cream); }

.catalog { padding: 32px 0 80px; }

.product-grid {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
}
.product-card {
    background: white; border: 1px solid var(--c-border);
    border-radius: var(--radius-md); overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-card__link { display: block; color: inherit; }
.product-card__media { aspect-ratio: 1; background: var(--c-cream); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 18px; }
.product-card__name { font-size: 1.05rem; margin: 4px 0 12px; }
.product-card__row {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.product-card__price { font-family: var(--font-display); font-weight: 600; color: var(--c-choco); font-size: 1.1rem; }

.swatches { display: inline-flex; gap: 4px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid white; box-shadow: 0 0 0 1px var(--c-border); }
.swatch--lg { width: 22px; height: 22px; }

.empty { text-align: center; padding: 60px 0; color: var(--c-text-soft); }

/* ---------- Ficha de producto ---------- */
.product-detail { padding: 40px 0 80px; }
.breadcrumb { font-size: .9rem; color: var(--c-text-soft); margin-bottom: 24px; }
.breadcrumb a { color: var(--c-text-soft); }
.breadcrumb a:hover { color: var(--c-choco); }
.breadcrumb span { margin: 0 8px; }

.product-detail__grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    align-items: start;
}
.product-detail__media {
    background: white; border: 1px solid var(--c-border);
    border-radius: var(--radius-lg); overflow: hidden;
    aspect-ratio: 1;
}
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }

.product-detail__info h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 8px 0 12px;
}
.product-detail__info .price {
    font-family: var(--font-display); font-weight: 600;
    font-size: 1.6rem; color: var(--c-choco); margin-bottom: 16px;
}
.product-detail__info .lead { color: var(--c-text-soft); }

@media (max-width: 800px) {
    .product-detail__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Formulario de compra ---------- */
.buy-form { margin-top: 24px; display: flex; flex-direction: column; gap: 20px; }
.buy-form fieldset { border: 0; padding: 0; margin: 0; }
.buy-form legend {
    font-family: var(--font-display); font-weight: 600;
    font-size: .95rem; color: var(--c-choco-deep); margin-bottom: 10px;
}

.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio {
    cursor: pointer; user-select: none;
    border: 2px solid var(--c-border); background: white;
    padding: 10px 16px; border-radius: var(--radius-md);
    font-size: .92rem; transition: all .15s;
    display: inline-flex; gap: 8px; align-items: center;
}
.radio input { accent-color: var(--c-choco); }
.radio:has(input:checked) { border-color: var(--c-choco); background: var(--c-cream); }
.radio em { color: var(--c-text-soft); font-style: normal; font-size: .85rem; }

.radio--card {
    display: flex; padding: 16px; width: 100%;
}
.radio--card span { line-height: 1.4; }

.input {
    width: 100%; padding: 12px 14px;
    border: 2px solid var(--c-border); border-radius: var(--radius-md);
    background: white; font: inherit; color: var(--c-text);
    transition: border-color .15s;
}
.input:focus { outline: none; border-color: var(--c-choco); }
.input--sm { width: 90px; }
textarea.input { min-height: 80px; resize: vertical; }

.qty-row { display: flex; align-items: center; gap: 12px; }
.qty-row label { font-weight: 500; }

.muted { color: var(--c-text-soft); }
.muted small, small.muted { font-size: .85rem; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 500; }
.error { color: #B33A3A; font-size: .85rem; }

.checkbox {
    display: flex; gap: 10px; align-items: flex-start;
    cursor: pointer; user-select: none; line-height: 1.5;
}
.checkbox input { margin-top: 4px; accent-color: var(--c-choco); }

/* ---------- Carrito ---------- */
.cart-page { padding: 40px 0 80px; }
.cart-page h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 24px; }

.empty-cart {
    background: white; border: 1px dashed var(--c-border);
    border-radius: var(--radius-md); padding: 48px; text-align: center;
}

.cart-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
@media (max-width: 800px) { .cart-grid { grid-template-columns: 1fr; } }

.cart-lines { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cart-line {
    display: grid; grid-template-columns: 100px 1fr auto; gap: 16px; align-items: center;
    background: white; border: 1px solid var(--c-border);
    border-radius: var(--radius-md); padding: 14px;
}
.cart-line__media { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.cart-line__name { font-family: var(--font-display); font-weight: 600; color: var(--c-text); }
.cart-line__opts { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--c-text-soft); font-size: .9rem; }
.cart-line__price { text-align: right; font-family: var(--font-display); font-weight: 600; }
.cart-line__price span { display: block; color: var(--c-choco); }

.btn-link {
    background: none; border: 0; padding: 4px 0; margin-top: 6px;
    color: var(--c-text-soft); text-decoration: underline; font-size: .85rem; cursor: pointer;
}
.btn-link:hover { color: #B33A3A; }

.cart-summary {
    background: var(--c-cream); border: 1px solid var(--c-border);
    border-radius: var(--radius-md); padding: 24px;
    position: sticky; top: 96px;
}
.cart-summary h2 { font-size: 1.2rem; margin-bottom: 16px; }
.cart-summary__row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.cart-summary .btn { margin-top: 16px; }
.cart-summary .btn--ghost { margin-top: 8px; }

/* ---------- Checkout ---------- */
.checkout { padding: 40px 0 80px; }
.checkout h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 8px; }
.checkout .lead { margin-bottom: 32px; max-width: 60ch; }

.checkout__grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
@media (max-width: 800px) { .checkout__grid { grid-template-columns: 1fr; } }

.checkout__form {
    background: white; border: 1px solid var(--c-border);
    border-radius: var(--radius-md); padding: 28px;
    display: flex; flex-direction: column; gap: 20px;
}
.checkout__form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.checkout__form legend { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; color: var(--c-choco-deep); }

.checkout__summary {
    background: var(--c-cream); border: 1px solid var(--c-border);
    border-radius: var(--radius-md); padding: 24px;
    position: sticky; top: 96px;
}
.checkout__summary h2 { font-size: 1.15rem; margin-bottom: 16px; }
.checkout__lines { list-style: none; padding: 0; margin: 0 0 16px; }
.checkout__lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--c-border); }
.checkout__lines li:last-child { border-bottom: 0; }
.checkout__total { display: flex; justify-content: space-between; padding-top: 12px; border-top: 2px solid var(--c-border); font-family: var(--font-display); font-size: 1.15rem; }
.checkout__total strong { color: var(--c-choco); }

/* ---------- Confirmación de pedido ---------- */
.order-ok { padding: 56px 0 80px; }
.order-ok__hero { text-align: center; margin-bottom: 40px; }
.order-ok__check {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--c-mint); color: var(--c-choco-deep);
    display: grid; place-items: center; margin: 0 auto 20px;
    font-size: 2.4rem; font-weight: 700;
}
.order-ok h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 12px; }
.order-ok .lead { font-size: 1.1rem; }
.order-ok__detail {
    max-width: 600px; margin: 0 auto;
    background: white; border: 1px solid var(--c-border);
    border-radius: var(--radius-md); padding: 28px;
}
.order-ok__detail h2 { font-size: 1.15rem; margin-bottom: 16px; }
.order-ok__lines { list-style: none; padding: 0; margin: 0 0 16px; }
.order-ok__lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--c-border); }
.order-ok__lines li:last-child { border-bottom: 0; }
.order-ok__total { display: flex; justify-content: space-between; padding-top: 12px; border-top: 2px solid var(--c-border); font-family: var(--font-display); font-size: 1.15rem; }
.order-ok__total strong { color: var(--c-choco); }
.order-ok__cta { text-align: center; margin-top: 32px; }

/* ---------- Páginas estáticas ---------- */
.page-narrow { padding: 56px 0 80px; }
.page-narrow .container { max-width: 760px; }
.page-narrow h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 16px; }
.page-narrow .lead { font-size: 1.15rem; color: var(--c-text-soft); margin-bottom: 24px; }
.page-narrow p { line-height: 1.7; }

.legal h2 {
    font-size: 1.1rem; margin-top: 32px; margin-bottom: 8px;
    color: var(--c-choco-deep);
}
.legal ul, .legal ol { padding-left: 22px; line-height: 1.7; }
.legal li { margin-bottom: 6px; }
.legal table.legal-table {
    width: 100%; border-collapse: collapse; margin: 8px 0 16px;
    font-size: .95rem;
}
.legal table.legal-table th,
.legal table.legal-table td {
    text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c-border);
    vertical-align: top;
}
.legal table.legal-table th { background: var(--c-cream); font-weight: 600; color: var(--c-choco-deep); }

/* ---------- Error ---------- */
.error-page, .error { padding: 80px 0; text-align: center; }
.error-page h1, .error h1 { font-size: 2.2rem; margin-bottom: 12px; }
