:root {
    --pink: #d94f7a;
    --pink-dark: #b83a63;
    --pink-light: #fbe9ef;
    --ink: #2b2230;
    --cream: #fff8f5;
    --gray: #7a7080;
    --border: #eee0e5;
    --success: #2e9e6c;
    --radius: 12px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 190px;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--cream);
    color: var(--ink);
}

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

.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top utility bar */
.top-bar {
    background: var(--ink);
    color: #f3e6ec;
    font-size: 12.5px;
    text-align: center;
    padding: 7px 12px;
    letter-spacing: .2px;
}

/* Marquee de ofertas */
.marquee {
    background: var(--pink-dark);
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.marquee-track {
    display: inline-flex;
    gap: 60px;
    padding: 9px 0;
    animation: marquee-scroll 26s linear infinite;
    will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: 13.5px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; }
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}
.bar-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 12px 0;
}
.mobile-menu-btn {
    display: none;
    grid-column: 1;
    justify-self: start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
}
.mobile-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    margin: 0 auto;
    transition: transform .2s, opacity .2s;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--border);
    padding: 6px 20px 10px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 13px 0; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--border); }
.mobile-nav a:last-child { border-bottom: none; }
.header-center {
    grid-column: 2;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
}
.logo { display: block; }
.logo-img { height: 83px; width: auto; display: block; border-radius: 10px; }
.bar-grid .cart-btn {
    grid-column: 3;
    justify-self: end;
}
.nav-links { display: flex; gap: 22px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav-links a:hover { color: var(--pink-dark); }

.header-search-row {
    display: flex;
    justify-content: center;
    padding-bottom: 12px;
}

/* Búsqueda header */
.header-search { position: relative; flex: 1; max-width: 420px; width: 100%; }
.header-search input {
    width: 100%;
    padding: 10px 16px 10px 38px;
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 14px;
    background: var(--cream);
}
.header-search input:focus { outline: none; border-color: var(--pink); background: #fff; }
.header-search .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 14px;
    pointer-events: none;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--pink);
    color: #fff;
    padding: 9px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
}
.cart-btn:hover { background: var(--pink-dark); }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--pink-light), #fff8f5 60%, #fff);
    padding: 50px 0 40px;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--pink-dark);
    font-size: 12.5px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(184,58,99,0.12);
}
.hero h1 { font-size: 36px; line-height: 1.15; margin: 0 0 14px; color: var(--ink); }
.hero h1 span { color: var(--pink-dark); }
.hero p { color: var(--gray); margin: 0 0 22px; font-size: 16px; max-width: 480px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-trust div { font-size: 12.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; }

.hero-collage {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    height: 380px;
}
.hero-collage .tile {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 14px 30px rgba(43,34,48,0.12);
}
.hero-collage .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-collage .tile.big { grid-row: span 2; }
.hero-collage .tile.small { align-self: start; }
.hero-collage .floating-tag {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 10px 24px rgba(43,34,48,0.18);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-collage .floating-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-collage { height: 300px; margin-top: 10px; }
}

/* Hero de ancho completo (carrusel administrable) */
.hero-full {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: var(--pink-light);
}
.hero-slide-full {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
}
.hero-slide-full.active { opacity: 1; pointer-events: auto; }
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding-left: clamp(32px, 12vw, 210px);
    background: linear-gradient(90deg, rgba(20,10,15,0.6) 0%, rgba(20,10,15,0.32) 45%, rgba(20,10,15,0) 72%);
}
.hero-slide-text { max-width: 480px; color: #fff; }
@media (max-width: 760px) {
    .hero-slide-overlay { padding-left: 24px; }
}
.hero-slide-text h1 { font-size: 38px; margin: 0 0 14px; line-height: 1.15; color: #fff; }
.hero-slide-text p { font-size: 17px; margin: 0 0 22px; color: #f6ebef; max-width: none; }
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--ink);
    z-index: 5;
}
.hero-arrow:hover { background: #fff; }
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }
.hero-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: width .2s, border-radius .2s;
}
.hero-dot.active { background: #fff; width: 22px; border-radius: 6px; }

@media (max-width: 760px) {
    .hero-full { height: 420px; }
    .hero-slide-text { max-width: 88%; }
    .hero-slide-text h1 { font-size: 26px; }
    .hero-slide-text p { font-size: 14px; }
    .hero-arrow { width: 34px; height: 34px; font-size: 18px; }
}

/* Categorías */
.cat-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 8px;
    padding: 26px 0 6px;
}
.cat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 6px;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: break-word;
}
.cat-pill .emoji { font-size: 22px; line-height: 1; }
.cat-pill .cat-label { display: block; }

@media (max-width: 700px) {
    .cat-row { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
}
.cat-pill:hover, .cat-pill.active { border-color: var(--pink); background: var(--pink-light); color: var(--pink-dark); }

/* Secciones home */
.section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 44px 0 18px;
}
.section-title h2 { font-size: 22px; margin: 0; }
.section-title a { font-size: 13.5px; font-weight: 700; color: var(--pink-dark); }
.section-sub { color: var(--gray); font-size: 14px; margin: -12px 0 18px; }

.ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #c0392b;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}
.card { position: relative; }
.card-link { display: contents; color: inherit; text-decoration: none; }
.card .info { padding-bottom: 8px; }
.card .quick-add { padding: 0 14px 14px; }
.urgency { color: #c0392b; font-size: 11.5px; font-weight: 800; }

/* Packs */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 20px 0 10px; }
.pack-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    gap: 14px;
}
.pack-card .thumb { width: 96px; height: 96px; border-radius: 12px; background: var(--pink-light); flex-shrink: 0; overflow: hidden; display:flex; align-items:center; justify-content:center; }
.pack-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pack-card h3 { margin: 0 0 4px; font-size: 15.5px; }
.pack-card .save-tag { color: var(--success); font-weight: 800; font-size: 12.5px; }

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: #25D366;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 8px 20px rgba(37,211,102,0.4);
    z-index: 30;
}
.whatsapp-float:hover { background: #1ebd5a; }

/* Filters */
.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 26px 0 20px;
}
.filters a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    background: #fff;
}
.brand-logo-mini { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }
.filters a.active, .filters a:hover { background: var(--pink); color: #fff; border-color: var(--pink); }

/* Product grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0 50px;
}
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 10px 24px rgba(217,79,122,0.15); transform: translateY(-3px); }
.card .thumb {
    aspect-ratio: 1 / 1;
    background: var(--pink-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .info { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .brand { font-size: 12px; color: var(--gray); text-transform: uppercase; letter-spacing: .5px; }
.card .name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.card .price-row { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.card .price { font-size: 18px; font-weight: 800; color: var(--pink-dark); }
.card .compare { font-size: 13px; color: var(--gray); text-decoration: line-through; }
.badge {
    display: inline-block;
    background: var(--pink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}
.out-of-stock { color: #b1a6ac; font-size: 12px; font-weight: 700; }

.btn {
    display: inline-block;
    background: var(--pink);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
}
.btn:hover { background: var(--pink-dark); }
.btn.secondary { background: #fff; color: var(--pink-dark); border: 1px solid var(--pink); }
.btn.secondary:hover { background: var(--pink-light); }
.btn.block { width: 100%; }
.btn.whatsapp { background: #25D366; }
.btn.whatsapp:hover { background: #1ebd5a; }
.social-btn { display: inline-flex; align-items: center; gap: 8px; }
.social-btn svg { vertical-align: middle !important; }

/* Product detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 34px 0 60px;
}
.product-detail .thumb {
    background: var(--pink-light);
    border-radius: var(--radius);
    aspect-ratio: 1/1;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.product-detail .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail h1 { font-size: 26px; margin: 6px 0; }
.product-detail .price { font-size: 28px; font-weight: 800; color: var(--pink-dark); }
.product-detail .desc { color: var(--gray); line-height: 1.6; margin: 16px 0; }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.qty-row input { width: 60px; padding: 8px; text-align: center; border: 1px solid var(--border); border-radius: 8px; }

@media (max-width: 760px) {
    .product-detail { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
}

/* Cart / checkout */
.cart-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.cart-table th, .cart-table td { padding: 12px 8px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
.cart-table img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--pink-light); }
.summary-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    max-width: 380px;
    margin-left: auto;
}
.summary-row { display: flex; justify-content: space-between; margin: 8px 0; font-size: 14px; }
.summary-row.total { font-weight: 800; font-size: 18px; color: var(--pink-dark); border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; }
.quick-add {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}
.quick-add .qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--pink-dark);
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}
.quick-add .qty-btn:hover { background: var(--pink-light); }
.quick-add .quick-qty {
    width: 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    padding: 5px 0;
    flex-shrink: 0;
}
.quick-add .quick-add-btn {
    flex: 1;
    padding: 7px 8px;
    font-size: 12.5px;
    white-space: nowrap;
}

.qty-stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: 30px; overflow: hidden; background: #fff; }
.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    color: var(--pink-dark);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}
.qty-btn:hover { background: var(--pink-light); }
.qty-input {
    width: 40px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: 14px;
    padding: 6px 0;
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.remove-link {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 16px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
.remove-link:hover { background: #fdecec; color: #c0392b; }

.coupon-form { display: flex; gap: 8px; margin: 16px 0; }
.coupon-form input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}
.alert { padding: 12px 16px; border-radius: 8px; margin: 14px 0; font-size: 14px; }
.alert.success { background: #e7f7ef; color: var(--success); }
.alert.error { background: #fdecec; color: #c0392b; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray); }

footer.site-footer {
    background: var(--ink);
    color: #eadfe4;
    padding: 30px 0;
    margin-top: 60px;
    text-align: center;
    font-size: 14px;
}

/* Admin */
.admin-body { background: #f6f3f5; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 220px;
    background: var(--ink);
    color: #fff;
    padding: 20px 0;
    flex-shrink: 0;
}
.admin-sidebar .brand { padding: 0 20px 20px; font-weight: 800; font-size: 20px; color: #fff; }
.admin-sidebar a {
    display: block;
    padding: 12px 20px;
    color: #d9cdd3;
    font-size: 14px;
    font-weight: 600;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.08); color: #fff; }
.admin-main { flex: 1; padding: 26px 32px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.admin-topbar h1 { font-size: 22px; margin: 0; }
table.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
table.admin-table th, table.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; text-align: left; }
table.admin-table th { background: #faf5f7; font-size: 12px; text-transform: uppercase; color: var(--gray); }
.admin-card { background: #fff; border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--pink-light); }
.login-box { background: #fff; padding: 36px; border-radius: var(--radius); width: 100%; max-width: 360px; }
.login-box h1 { text-align: center; color: var(--pink-dark); margin-top: 0; }
.status-pill { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.status-select-form { display: inline-block; }
.status-select {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.status-nuevo { background: #fdf3d7; color: #96751a; }
.status-confirmado { background: #dbeafe; color: #1d4ed8; }
.status-pagado { background: #d1fae5; color: #047857; }
.status-despachado { background: #ede9fe; color: #6d28d9; }
.status-entregado { background: #dcfce7; color: #15803d; }
.status-cancelado { background: #fde2e2; color: #b91c1c; }
.actions a, .actions button { font-size: 13px; margin-right: 10px; }
