/* =========================================================
   Chollos Chic — estilo editorial de moda
   ========================================================= */
:root {
    --ink: #1c1918;
    --ink-soft: #57504c;
    --muted: #8c847f;
    --cream: #fbf8f5;
    --paper: #ffffff;
    --blush: #f3e3dc;
    --blush-deep: #e9cfc4;
    --rose: #b5476b;
    --rose-dark: #933457;
    --gold: #c9a36a;
    --line: #ece5df;
    --hot: #e2553b;
    --radius: 14px;
    --shadow: 0 10px 30px -18px rgba(28, 25, 24, .35);
    --serif: "Playfair Display", Georgia, serif;
    --sans: "Jost", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--rose); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }

.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; margin-top: 2rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .8rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
    font-weight: 500; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase;
    transition: .2s ease; cursor: pointer; white-space: nowrap;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--rose); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--blush); color: var(--ink); }
.btn-ghost:hover { background: var(--blush-deep); color: var(--ink); }
.btn-sm { padding: .5rem 1rem; font-size: .78rem; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: .85rem; padding: 0; }
.link-btn:hover { color: var(--rose); }

/* ---------- Cabecera ---------- */
.topbar {
    background: var(--ink); color: #f5ece6; text-align: center;
    font-size: .8rem; letter-spacing: .06em; padding: .5rem 1rem;
}
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-main { display: flex; align-items: center; gap: 1.5rem; padding: 1.1rem 0; }
.logo { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.logo em { color: var(--rose); font-weight: 500; }
.logo:hover { color: var(--ink); }
.logo-light { color: #fff; }

.header-search {
    flex: 1; display: flex; align-items: center; max-width: 620px; margin-inline: auto;
    border: 1px solid var(--line); border-radius: 999px; background: var(--cream); overflow: hidden;
}
.header-search input { flex: 1; border: 0; background: transparent; padding: .75rem 1.2rem; font: inherit; outline: none; min-width: 0; }
.header-search select { border: 0; border-left: 1px solid var(--line); background: transparent; padding: .75rem .8rem; font: inherit; color: var(--ink-soft); outline: none; max-width: 190px; }
.header-search button { border: 0; background: var(--ink); color: #fff; width: 46px; height: 46px; display: grid; place-items: center; }
.header-search button:hover { background: var(--rose); }

.header-actions { display: flex; align-items: center; gap: .9rem; }
.icon-link { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; list-style: none; cursor: pointer; }
.icon-link:hover { background: var(--blush); color: var(--ink); }
.icon-link::-webkit-details-marker { display: none; }
.badge-count {
    position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 99px; background: var(--rose); color: #fff; font-size: .7rem; display: grid; place-items: center;
}
.user-menu { position: relative; }
.user-menu summary { list-style: none; }
.dropdown {
    position: absolute; right: 0; top: 48px; min-width: 210px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: .6rem; z-index: 60;
}
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: .55rem .8rem; border-radius: 8px; background: none; border: 0; color: var(--ink); }
.dropdown a:hover, .dropdown button:hover { background: var(--cream); color: var(--rose); }
.dropdown-title { font-family: var(--serif); padding: .4rem .8rem; margin: 0; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }

.main-nav { border-top: 1px solid var(--line); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; flex-wrap: wrap; }
.main-nav > .container > ul > li > a { display: block; padding: .85rem 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
.main-nav .has-sub { position: relative; }
.main-nav .has-sub > a::after { content: "▾"; font-size: .7em; margin-left: .35rem; }
.main-nav .sub {
    position: absolute; top: 100%; left: -1rem; display: none; flex-direction: column; gap: 0;
    background: #fff; min-width: 230px; padding: .6rem; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.main-nav .sub a { display: block; padding: .5rem .8rem; border-radius: 8px; font-size: .95rem; }
.main-nav .sub a:hover { background: var(--cream); }
.main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub { display: flex; }
.nav-toggle { display: none; background: none; border: 0; width: 36px; height: 36px; flex-direction: column; justify-content: center; gap: 5px; padding: 0; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.show-sm { display: none; }

.flash { margin: 1rem 0; padding: .9rem 1.2rem; background: var(--blush); border-left: 3px solid var(--rose); border-radius: 8px; }
.flash-warn { background: #fdf1e3; border-color: var(--gold); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(120deg, var(--blush) 0%, var(--cream) 60%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; min-height: 540px; padding: 3.5rem 0; }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .22em; color: var(--rose); font-weight: 600; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); line-height: 1; letter-spacing: -.02em; margin-bottom: 1.5rem; }
.hero h1 span { display: block; }
.hero h1 em { color: var(--rose); font-style: italic; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 470px; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }

.hero-art { position: relative; height: 460px; }
.hero-circle { position: absolute; inset: 8% 6% 4% 14%; border-radius: 50%; background: #fff; opacity: .65; }
.hero-tile {
    position: absolute; border-radius: 200px 200px 18px 18px; overflow: hidden; background: var(--bg, var(--blush-deep));
    box-shadow: var(--shadow); display: grid; place-items: center; transition: transform .4s ease;
}
.hero-tile:hover { transform: translateY(-6px); }
.hero-tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-tile span { font-family: var(--serif); font-size: 4rem; color: rgba(28,25,24,.25); font-style: italic; }
.hero-tile b { position: absolute; bottom: 12px; left: 12px; background: var(--ink); color: #fff; font-size: .8rem; padding: .2rem .6rem; border-radius: 99px; font-weight: 500; }
.hero-tile-1 { width: 42%; height: 78%; left: 8%; top: 6%; }
.hero-tile-2 { width: 34%; height: 56%; right: 6%; top: 0; }
.hero-tile-3 { width: 30%; height: 40%; right: 14%; bottom: 0; border-radius: 18px; }
.hero-tile-4 { width: 18%; height: 24%; left: 0; bottom: 2%; border-radius: 50%; }

/* ---------- Secciones ---------- */
.section { padding: 4rem 0; }
.section-kicker { text-align: center; font-size: .82rem; text-transform: uppercase; letter-spacing: .3em; color: var(--ink-soft); margin-bottom: 2rem; position: relative; }
.section-kicker::before, .section-kicker::after { content: ""; display: inline-block; width: 60px; height: 1px; background: var(--ink-soft); vertical-align: middle; margin: 0 1rem; opacity: .4; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .2rem; }
.section-sub { color: var(--muted); margin: 0; }

.page-head { background: var(--bg, var(--blush)); padding: 3.2rem 0 2.6rem; text-align: center; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0; }
.page-head .lead { margin: 1rem auto 0; }
.breadcrumb { padding-top: 1.4rem; font-size: .88rem; color: var(--muted); }

/* ---------- Colecciones ---------- */
.collections { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.collection {
    position: relative; aspect-ratio: 3 / 4.2; border-radius: 200px 200px var(--radius) var(--radius);
    overflow: hidden; background: var(--bg); display: grid; place-items: center; transition: .3s;
}
.collection:nth-child(even) { border-radius: var(--radius) var(--radius) 200px 200px; }
.collection:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--ink); }
.collection img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collection-letter { font-family: var(--serif); font-size: 5rem; font-style: italic; color: rgba(28,25,24,.18); }
.collection-label {
    position: absolute; left: 10px; right: 10px; bottom: 12px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
    border-radius: 10px; padding: .55rem .8rem; display: flex; justify-content: space-between; align-items: center;
}
.collection:nth-child(even) .collection-label { bottom: auto; top: 12px; }
.collection-name { font-family: var(--serif); font-size: 1.1rem; }
.collection-go { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--rose); }

/* ---------- Pestañas de orden ---------- */
.sort-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.sort-tabs a { padding: .5rem 1.1rem; border-radius: 999px; font-size: .88rem; border: 1px solid var(--line); background: #fff; }
.sort-tabs a.is-active, .sort-tabs a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.filters { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filters select, .field input, .field select, .field textarea, .comment-form textarea, .newsletter-form input {
    font: inherit; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.filters select:focus, .field input:focus, .field select:focus, .field textarea:focus, .comment-form textarea:focus { outline: 2px solid var(--blush-deep); border-color: var(--rose); }

/* ---------- Tarjetas de chollo ---------- */
.deal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.deal-card { position: relative; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: .25s; }
.deal-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.deal-card.is-expired { opacity: .6; }
.deal-media { position: relative; aspect-ratio: 4 / 4.6; background: var(--bg); display: grid; place-items: center; overflow: hidden; }
.deal-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; mix-blend-mode: multiply; transition: transform .5s; }
.deal-card:hover .deal-media img { transform: scale(1.05); }
.deal-placeholder { font-family: var(--serif); font-style: italic; font-size: 5rem; color: rgba(28,25,24,.18); }
.discount-badge { position: absolute; top: 12px; left: 12px; background: var(--rose); color: #fff; font-weight: 600; font-size: .85rem; padding: .25rem .65rem; border-radius: 99px; }
.discount-badge.big { font-size: 1.1rem; padding: .4rem 1rem; }
.expired-badge { position: absolute; bottom: 12px; left: 12px; background: var(--ink); color: #fff; font-size: .75rem; padding: .2rem .6rem; border-radius: 99px; }
.fav-form { position: absolute; top: 10px; right: 10px; margin: 0; }
.fav-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: transparent; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: .2s; }
.fav-btn svg { stroke: var(--ink); }
.fav-btn:hover svg { stroke: var(--rose); }
.fav-btn.is-active { color: var(--rose); }
.fav-btn.is-active svg { stroke: var(--rose); }
.deal-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.deal-meta { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .82rem; }
.store-chip { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; padding: .18rem .55rem; border-radius: 6px; background: var(--cream); color: var(--ink-soft); }
.store-amazon { background: #fff3e0; color: #a35c00; }
.store-aliexpress { background: #ffe9e5; color: #c0331b; }
.store-miravia { background: #f0e8ff; color: #6a3ec2; }
.temp { font-weight: 600; color: var(--muted); }
.temp.is-hot { color: var(--hot); }
.temp.is-hot::before { content: "🔥 "; }
.deal-title { font-family: var(--sans); font-size: 1rem; font-weight: 500; line-height: 1.35; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.deal-price { display: flex; align-items: baseline; gap: .6rem; margin-top: auto; }
.deal-price del { color: var(--muted); font-size: .9rem; }
.deal-price strong { font-size: 1.3rem; font-weight: 600; color: var(--rose-dark); }
.deal-card .btn-outline { padding: .6rem 1rem; font-size: .78rem; }

/* ---------- Detalle ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.detail-media { position: relative; background: var(--bg); border-radius: 24px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.detail-media img { width: 100%; height: 100%; object-fit: contain; padding: 24px; mix-blend-mode: multiply; }
.detail-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 1rem 0; }
.detail-price { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; margin-bottom: 1rem; }
.detail-price strong { font-size: 2.4rem; color: var(--rose-dark); font-weight: 600; font-family: var(--sans); }
.detail-price del { color: var(--muted); font-size: 1.2rem; }
.save { background: var(--blush); padding: .25rem .8rem; border-radius: 99px; font-size: .9rem; }
.coupon { display: flex; align-items: center; gap: 1rem; border: 1.5px dashed var(--rose); border-radius: 12px; padding: .7rem 1rem; margin: 1rem 0; }
.coupon button { border: 0; background: var(--ink); color: #fff; padding: .45rem 1rem; border-radius: 8px; font-weight: 600; letter-spacing: .08em; }
.coupon small { font-weight: 400; opacity: .7; margin-left: .4rem; }
.detail-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.6rem 0; }
.detail-actions form { margin: 0; }
.vote-box { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem; }
.vote { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream); font-size: 1.1rem; }
.vote.up.is-active { background: #ffe3dc; }
.vote.down.is-active { background: #e1eefc; }
.temp.big { font-size: 1.15rem; min-width: 54px; text-align: center; }
.detail-desc { border-top: 1px solid var(--line); padding-top: 1.4rem; color: var(--ink-soft); }
.owner-actions { display: flex; gap: 1rem; margin-top: 1rem; font-size: .9rem; }
.owner-actions form { margin: 0; }
.owner-actions button { background: none; border: 0; color: var(--rose); padding: 0; }

.comment-form { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; margin-bottom: 2rem; }
.comment-form textarea { width: 100%; resize: vertical; }
.comment { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: .8rem; }
.comment-head { display: flex; gap: .8rem; align-items: center; margin-bottom: .4rem; }
.comment-head form { margin-left: auto; }
.comment p { margin: 0; }

/* ---------- Formularios ---------- */
.card-panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.5rem, 4vw, 2.8rem); box-shadow: var(--shadow); }
.panel-title { font-size: 2.2rem; }
.auth-wrap { width: min(460px, 100% - 32px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; margin: 1.5rem 0; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.form-grid .field { margin-bottom: 0; }
.field > span { font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; }
.span-2 { grid-column: span 2; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; margin: .5rem 0 1.2rem; }
.error { color: #c0392b; font-size: .82rem; font-style: normal; }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 500; }
.row-actions { display: flex; gap: .5rem; align-items: center; }
.row-actions form { margin: 0; }
.status { font-size: .78rem; padding: .2rem .6rem; border-radius: 99px; }
.status-pending { background: #fdf1e3; color: #9a6a1d; }
.status-published { background: #e5f4ea; color: #2f7a46; }
.status-rejected { background: #fbe4e4; color: #a33; }

.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; flex-wrap: wrap; }
.page { min-width: 40px; height: 40px; padding: 0 .6rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; }
.page.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.page.disabled { opacity: .4; }

.empty { text-align: center; padding: 3rem 1rem; background: #fff; border: 1px dashed var(--blush-deep); border-radius: var(--radius); }

/* ---------- Sobre nosotras / newsletter / footer ---------- */
.about { background: var(--paper); padding: 5rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.about-quote { background: var(--blush); border-radius: 220px 220px 24px 24px; padding: 4rem 2.5rem; text-align: center; }
.about-quote span { font-family: var(--serif); font-size: 6rem; line-height: .6; color: var(--rose); display: block; }
.about-quote p { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.3; margin: 0; }
.about h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.about p { color: var(--ink-soft); }

.newsletter { background: var(--blush); padding: 3.5rem 0; }
.newsletter-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.newsletter h2 { font-size: 2.2rem; margin-bottom: .3rem; }
.newsletter p { margin: 0; color: var(--ink-soft); }
.newsletter .eyebrow { margin-bottom: .5rem; }
.newsletter-form { display: flex; gap: .5rem; flex: 1; max-width: 480px; }
.newsletter-form input { flex: 1; border-radius: 999px; padding: .85rem 1.3rem; min-width: 0; }

.site-footer { background: var(--ink); color: #cfc6c0; padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-size: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a:hover { color: var(--blush-deep); }
.site-footer .logo { display: inline-block; margin-bottom: 1rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding: 1.5rem 0; font-size: .8rem; color: #8f8580; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .collections { grid-template-columns: repeat(3, 1fr); }
    .deal-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
    .header-main { flex-wrap: wrap; gap: .8rem; }
    .nav-toggle { display: flex; }
    .header-search { order: 3; flex-basis: 100%; }
    .header-search select { display: none; }
    .header-actions { margin-left: auto; }
    .hide-sm { display: none; }
    .show-sm { display: block; }
    .main-nav { display: none; }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav .sub { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 .5rem 1rem; }
    .hero-grid, .detail-grid, .about-grid { grid-template-columns: 1fr; }
    .hero-grid { min-height: 0; padding: 2.5rem 0; }
    .hero-art { height: 320px; }
    .deal-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .logo { font-size: 1.55rem; }
    .collections { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .deal-body { padding: .8rem; }
    .deal-price strong { font-size: 1.1rem; }
    .newsletter-form { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 2.8rem 0; }
}
