/* ============================================
   TENNERY® — Catálogo principal · Diseño 2026 (rosa + detalles amarillo pastel)
   © TENNERY®. Todos los derechos reservados.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --ink: #1F1023;
    --ink-soft: #5B3A4B;
    --muted: #7A5568;
    --rose: #C2185B;
    --rose-2: #E8317E;
    --rose-3: #F06BA8;
    --plum: #4A1238;
    --line: #F8CFE1;
    --line-soft: #FFE3EF;
    --card: rgba(255, 255, 255, 0.74);
    --card-solid: #FFFFFF;
    --chip: #FFFFFF;
    --panel: linear-gradient(160deg, #FFF6FA, #FDEDF5);
    --page: #FFF3F8;
    --glow-1: #FFCCE2;
    --glow-2: #F6D6F0;
    --glow-3: #E9DAFF;
    --photo: radial-gradient(circle at 50% 58%, #FFD3E6 0%, #FFF4F9 55%, #FFFFFF 100%);
    --grad: linear-gradient(120deg, #C2185B 0%, #E8317E 55%, #F06BA8 100%);
    --shadow: 0 24px 60px -28px rgba(194, 24, 91, 0.45);
    --green: #04754C;
    --green-bg: #E8FBF3;
    --display: 'Bricolage Grotesque', 'Poppins', sans-serif;
    /* Color de los pequeños detalles del catálogo (verde menta) */
    --accent: #9EE6C9;
    --accent-tag-ink: #0F5A44;
    --accent-line: var(--accent);
    --accent-soft: #E6F8F0;
    --accent-ink: #0F5A44;
    --glow-accent: #D2F4E6;
    --accent-strong: #34B58A;
    --body: 'Poppins', sans-serif;
}

body.dark-mode {
    --ink: #FBEAF2;
    --ink-soft: #E9C9D8;
    --muted: #C9A3B6;
    --line: rgba(240, 107, 168, 0.28);
    --line-soft: rgba(240, 107, 168, 0.16);
    --card: rgba(38, 18, 34, 0.72);
    --card-solid: #261222;
    --chip: rgba(255, 255, 255, 0.06);
    --panel: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(240, 107, 168, 0.08));
    --page: #140A13;
    --glow-1: rgba(194, 24, 91, 0.35);
    --glow-2: rgba(122, 40, 110, 0.35);
    --glow-3: rgba(76, 40, 140, 0.35);
    --photo: radial-gradient(circle at 50% 58%, rgba(240, 107, 168, 0.28) 0%, rgba(255, 255, 255, 0.04) 60%, rgba(255, 255, 255, 0.02) 100%);
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
    --green: #6EE7B7;
    --green-bg: rgba(16, 185, 129, 0.14);
    --accent-soft: rgba(158, 230, 201, 0.12);
    --accent-ink: #BFF0DC;
    --glow-accent: rgba(52, 181, 138, 0.16);
    --accent-line: rgba(158, 230, 201, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body);
    color: var(--ink);
    background-color: var(--page);
    background-image:
        radial-gradient(60% 45% at 5% 0%, var(--glow-1) 0%, transparent 70%),
        radial-gradient(50% 40% at 100% 20%, var(--glow-2) 0%, transparent 70%),
        radial-gradient(60% 45% at 40% 100%, var(--glow-3) 0%, transparent 70%),
        radial-gradient(35% 30% at 92% 78%, var(--glow-accent) 0%, transparent 70%);
    background-attachment: fixed;
    line-height: 1.5;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

button {
    font-family: inherit;
}

.img-hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.glass {
    background: var(--card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

body.dark-mode .glass {
    border-color: rgba(255, 255, 255, 0.08);
}

.gtext {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Barra superior ---------- */
.topbar-wrap {
    position: sticky;
    top: 0;
    z-index: 900;
    padding: 14px 16px 0;
}

.topbar {
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 999px;
    padding: 8px 8px 8px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    font-family: var(--display);
    font-weight: 800;
    font-size: 23px;
    letter-spacing: 0.06em;
    color: var(--ink);
    white-space: nowrap;
}

.brand sup {
    font-size: 12px;
}

.brand-logo {
    display: none;
    height: 42px;
    width: auto;
    object-fit: contain;
}

/* Logo original en blanco sobre el rosa de la marca */
.brand.has-logo {
    position: relative;
    background: #FF4FAE;
    border-radius: 20px;
    padding: 11px 22px;
    margin-left: -14px;
    box-shadow: 0 8px 20px -10px rgba(255, 79, 174, 0.8);
}



.brand.has-logo .brand-logo {
    display: block;
}

.brand.has-logo .brand-text {
    display: none;
}

.search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--chip);
    border: 1px solid var(--line);
}

.search svg {
    flex: none;
    color: var(--rose);
}

.search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--body);
    font-size: 15px;
    color: var(--ink);
}

.search input::placeholder {
    color: var(--muted);
}

.top-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--chip);
    color: var(--rose);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.icon-btn:hover {
    transform: translateY(-2px);
}

.bag-btn {
    height: 46px;
    padding: 0 16px 0 14px;
    border-radius: 999px;
    border: none;
    background: var(--grad);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 10px 24px -10px rgba(194, 24, 91, 0.7);
    transition: transform 0.2s ease;
}

.bag-btn:hover {
    transform: translateY(-2px);
}

.bag-count {
    background: #FFFFFF;
    color: var(--rose);
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* ---------- Barra compacta al bajar ---------- */
.topbar-wrap,
.topbar,
.brand,
.brand-logo,
.search,
.icon-btn,
.bag-btn {
    transition: padding 0.3s ease, height 0.3s ease, width 0.3s ease, border-radius 0.3s ease, gap 0.3s ease;
}

.topbar-wrap.compact {
    padding-top: 8px;
}

.compact .topbar {
    padding: 5px 5px 5px 18px;
    gap: 12px;
    background: rgba(255, 255, 255, 0.92);
}

body.dark-mode .compact .topbar {
    background: rgba(38, 18, 34, 0.94);
}

.compact .brand-logo {
    height: 30px;
}

.compact .brand.has-logo {
    padding: 8px 16px;
    border-radius: 16px;
}



.compact .search {
    height: 38px;
}

.compact .icon-btn {
    width: 38px;
    height: 38px;
}

.compact .bag-btn {
    height: 38px;
}

/* ---------- Encabezado ---------- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

.hero {
    text-align: center;
    padding-top: 26px;
    padding-bottom: 6px;
}

.cover-image,
.rules-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 22px;
    border-radius: 28px;
    box-shadow: var(--shadow);
    cursor: zoom-in;
}

@media (min-width: 1200px) {
    .cover-image,
    .rules-image {
        max-width: 50%;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .cover-image,
    .rules-image {
        max-width: 70%;
    }
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--chip);
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--rose);
    margin-top: 16px;
}

.catalog-title {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(42px, 8vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 14px 0 26px;
}

/* ---------- Líneas finas con el color de detalle ---------- */
.topbar.glass,
.product-card.glass {
    border-color: var(--accent-line);
}

/* ---------- Productos ---------- */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--rose);
    font-weight: 500;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    padding: 10px 0 40px;
}

.empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: var(--muted);
}

.product-card {
    min-width: 0;
    border-radius: 30px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow), 0 0 0 2px var(--accent);
}

.photo {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    background: var(--photo);
    overflow: hidden;
}

.photo .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    opacity: 0;
    transition: opacity 0.6s ease;
    cursor: zoom-in;
    pointer-events: none;
}

.photo .slide.active {
    opacity: 1;
    pointer-events: auto;
}

.photo .no-photo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
}

.share-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.share-btn:hover {
    transform: scale(1.12);
}

.share-btn img {
    width: 34px;
    height: 34px;
}

.dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(194, 24, 91, 0.25);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

.dot.active {
    width: 20px;
    background: var(--rose);
}

.info {
    padding: 16px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.marca {
    font-family: var(--display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rose);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-mode .marca {
    color: var(--rose-3);
}

.sku {
    flex: none;
    font-size: 11px;
    color: var(--muted);
    background: var(--chip);
    border-radius: 6px;
    padding: 2px 6px;
    white-space: nowrap;
}

.name {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.01em;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nombres largos: se deslizan lentamente hacia la izquierda */
.name.marquee {
    text-overflow: clip;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 26px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 26px), transparent 100%);
}

.name .mq {
    display: inline-flex;
    gap: 48px;
    animation: name-scroll var(--mq-dur, 14s) linear 1.5s infinite;
    will-change: transform;
}

.name .mq span {
    flex: none;
}

.product-card:hover .name .mq {
    animation-play-state: paused;
}

@keyframes name-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 24px)); }
}

@media (prefers-reduced-motion: reduce) {
    .name .mq {
        animation: none;
    }
}

.tono {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--chip);
    border: 1px solid var(--line);
    font-size: 12px;
    color: var(--ink-soft);
}

.tono svg {
    flex: none;
    color: var(--rose);
}

.tono span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.price {
    font-family: var(--display);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.old-price {
    font-size: 15px;
    color: var(--muted);
    text-decoration: line-through;
}

/* ---------- Elige cómo pagarlo ---------- */
.pay {
    border-radius: 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 10px;
}

.pay-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--plum);
    padding: 2px 4px 8px;
}

body.dark-mode .pay-title {
    color: var(--rose-3);
}

.plan-tabs {
    display: flex;
    gap: 2px;
    background: var(--card-solid);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
}

.plan-tab {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 3px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-soft);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease;
}

.plan-tab.active {
    background: linear-gradient(120deg, #C2185B, #E8317E);
    color: #FFFFFF;
    box-shadow: 0 6px 14px -6px rgba(194, 24, 91, 0.7);
}

.plan-show {
    text-align: center;
    padding: 14px 4px 6px;
}

.plan-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--accent-tag-ink);
    background: var(--accent);
    padding: 4px 10px;
    border-radius: 999px;
}

.plan-amount {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 6px;
    padding-top: 6px;
}

.plan-amount strong {
    font-family: var(--display);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.plan-amount span {
    font-size: 14px;
    color: var(--ink-soft);
}

.plan-detail {
    font-size: 12px;
    color: var(--muted);
}

.card-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
}

.card-logos img {
    height: 28px;
    width: auto;
    border-radius: 5px;
}

/* ---------- Botones principales ---------- */
.btn-main {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 999px;
    background: var(--grad);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 14px 28px -12px rgba(194, 24, 91, 0.7);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -12px rgba(194, 24, 91, 0.8);
}

.btn-main:disabled {
    background: var(--chip);
    color: var(--muted);
    border: 1px dashed var(--line);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.info .btn-main {
    margin-top: auto;
}

/* ---------- Botón flotante "ver catálogo completo" ---------- */
.full-catalog-btn {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 800;
    display: none;
    align-items: center;
    gap: 8px;
    height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    border: none;
    background: var(--plum);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 14px 30px -10px rgba(74, 18, 56, 0.7);
}

.full-catalog-btn.show {
    display: inline-flex;
}

/* ---------- Bolsa (carrito) ---------- */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(31, 16, 35, 0.35);
    backdrop-filter: blur(2px);
    z-index: 9990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 440px;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--page);
    background-image: radial-gradient(70% 30% at 100% 0%, var(--glow-1) 0%, transparent 70%);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px -30px rgba(194, 24, 91, 0.5);
}

.cart.open {
    transform: translateX(0);
}

.cart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1.5px solid var(--accent-line);
}

.cart-head h2 {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-empty {
    text-align: center;
    padding: 70px 10px;
    color: var(--muted);
}

.cart-empty svg {
    color: var(--rose-3);
    margin-bottom: 10px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--line);
}

.cart-thumb {
    width: 70px;
    height: 70px;
    flex: none;
    border-radius: 14px;
    background: var(--photo);
    object-fit: contain;
    padding: 4px;
}

.cart-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.cart-sku {
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.cart-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.remove-btn {
    width: 32px;
    height: 32px;
    flex: none;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.remove-btn:hover {
    color: var(--rose);
    background: var(--chip);
}

.qty {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card-solid);
    padding: 2px;
}

.qty button {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    background: var(--line-soft);
    color: var(--ink);
}

.qty button.plus {
    background: var(--grad);
    color: #FFFFFF;
}

.qty button:disabled {
    background: var(--line-soft);
    color: var(--muted);
    opacity: 0.6;
    cursor: not-allowed;
}

.qty span {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
}

.line-total {
    text-align: right;
}

.line-total strong {
    display: block;
    font-size: 16px;
}

.line-total small {
    font-size: 11px;
    color: var(--muted);
}

.summary {
    border-top: 1.5px solid var(--accent-line);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary div {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--ink-soft);
}

.summary .total {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
}

.section-title {
    font-family: var(--display);
    font-size: 17px;
    font-weight: 700;
    padding-top: 6px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--card-solid);
    color: var(--ink);
    padding: 0 14px;
    font-family: var(--body);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
    border-color: var(--rose-2);
    box-shadow: 0 0 0 4px rgba(232, 49, 126, 0.12);
}

.choice-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.choice {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--card-solid);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 10px;
}

.choice.selected {
    border-color: transparent;
    background: var(--plum);
    color: #FFFFFF;
}

body.dark-mode .choice.selected {
    background: var(--rose);
}

.address {
    display: none;
}

.address.show {
    display: block;
}

.plan-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-option {
    width: 100%;
    min-height: 62px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding: 10px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--card-solid);
    color: var(--ink);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.plan-option:hover {
    transform: translateX(3px);
}

.plan-option .po-name {
    display: block;
    font-weight: 700;
    font-size: 14px;
}

.plan-option .po-sub {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.plan-option .po-total {
    font-family: var(--display);
    font-weight: 800;
    font-size: 17px;
    white-space: nowrap;
}

.plan-option.selected {
    border-color: transparent;
    background: var(--grad);
    color: #FFFFFF;
    box-shadow: 0 12px 24px -14px rgba(194, 24, 91, 0.8);
}

.plan-option.selected .po-sub {
    color: rgba(255, 255, 255, 0.88);
}

.enganche {
    display: none;
    border-radius: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 12px 14px;
}

.enganche.show {
    display: block;
}

.enganche label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.enganche input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #C2185B;
}

.enganche input[type="number"] {
    display: none;
    margin-top: 10px;
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card-solid);
    color: var(--ink);
    padding: 0 12px;
    font-family: var(--body);
    font-size: 15px;
}

.schedule {
    display: none;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--card);
    padding: 12px 14px;
    font-size: 13px;
}

.schedule.show {
    display: block;
}

.schedule h4 {
    font-family: var(--display);
    font-size: 15px;
    margin-bottom: 8px;
}

.schedule .row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed var(--line);
}

.schedule .row:last-child {
    border-bottom: none;
}

.btn-whatsapp {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 999px;
    background: #128C4A;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 14px 28px -14px rgba(18, 140, 74, 0.8);
}

.btn-whatsapp:disabled {
    background: var(--chip);
    color: var(--muted);
    border: 1px dashed var(--line);
    box-shadow: none;
    cursor: not-allowed;
}

.hint {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

/* ---------- Visor de imágenes ---------- */
.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(20, 10, 19, 0.92);
}

.image-modal.show {
    display: block;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 85%;
    border-radius: 18px;
    background: #FFFFFF;
}

.modal-close,
.modal-nav {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.modal-close {
    top: 16px;
    right: 16px;
}

.modal-nav {
    top: 50%;
    transform: translateY(-50%);
}

.modal-prev {
    left: 16px;
}

.modal-next {
    right: 16px;
}

.modal-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #FFFFFF;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 999px;
}

/* ---------- Avisos ---------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translate(-50%, 140%);
    z-index: 10001;
    background: var(--plum);
    color: #FFFFFF;
    padding: 13px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 16px 40px -14px rgba(74, 18, 56, 0.8);
    transition: transform 0.35s ease;
    max-width: calc(100% - 32px);
    text-align: center;
}

.toast.show {
    transform: translate(-50%, 0);
}

.toast.error {
    background: #B42318;
}

/* ---------- Pie ---------- */
.site-footer {
    text-align: center;
    padding: 30px 20px 110px;
    font-size: 12px;
    color: var(--muted);
}

.site-footer strong {
    color: var(--rose);
}

/* ---------- Celular ---------- */
@media (max-width: 720px) {
    .topbar {
        flex-wrap: wrap;
        border-radius: 28px;
        padding: 10px;
        gap: 10px;
    }

    .brand {
        padding-left: 8px;
    }

    .top-actions {
        margin-left: auto;
    }

    .search {
        order: 3;
        flex: 1 1 100%;
        min-width: 0;
        width: 100%;
    }

    .bag-btn .bag-label {
        display: none;
    }

    .products-grid {
        gap: 18px;
    }

    .cart {
        width: 100%;
    }
}

/* Computadora: 4 por fila (como el diseño anterior) y tarjetas más compactas */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 721px) {
    .product-card {
        border-radius: 26px;
        padding: 8px;
    }

    .photo {
        aspect-ratio: 1 / 0.82;
        border-radius: 20px;
    }

    .info {
        padding: 14px 6px 6px;
        gap: 8px;
    }

    .name {
        font-size: 17px;
    }

    .price {
        font-size: 28px;
    }

    .pay {
        padding: 8px;
    }

    .plan-show {
        padding: 10px 2px 4px;
    }

    .plan-amount strong {
        font-size: 30px;
    }

    .btn-main {
        height: 48px;
        font-size: 14px;
    }
}

@media (max-width: 720px) {
    .topbar-wrap.compact {
        padding: 6px 10px 0;
    }

    .compact .topbar {
        flex-wrap: nowrap;
        padding: 6px;
        gap: 6px;
        border-radius: 22px;
    }

    .compact .brand {
        flex: none;
    }

    .compact .brand-logo {
        height: 22px;
    }

    .compact .brand.has-logo {
        padding: 7px 12px;
        border-radius: 14px;
    }


    .compact .search {
        order: 0;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        height: 36px;
        padding: 0 12px;
        gap: 6px;
    }

    .compact .search input {
        font-size: 14px;
    }

    .compact .top-actions {
        margin-left: 0;
        gap: 6px;
        flex: none;
    }

    .compact .icon-btn {
        width: 36px;
        height: 36px;
    }

    .compact .bag-btn {
        height: 36px;
        padding: 0 10px;
        gap: 6px;
    }
}

@media (max-width: 599px) {
    .products-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Tarjeta compacta para que se vea completa en la pantalla */
    .product-card {
        border-radius: 24px;
        padding: 8px;
    }

    .photo {
        aspect-ratio: 1 / 0.72;
        border-radius: 18px;
    }

    .info {
        padding: 12px 6px 4px;
        gap: 7px;
    }

    .name {
        font-size: 17px;
    }

    .price {
        font-size: 26px;
    }

    .pay {
        padding: 8px;
        border-radius: 16px;
    }

    .pay-title {
        padding-bottom: 6px;
    }

    .plan-tab {
        height: 36px;
    }

    .plan-show {
        padding: 8px 2px 2px;
    }

    .plan-amount {
        padding-top: 4px;
    }

    .plan-amount strong {
        font-size: 28px;
    }

    .btn-main {
        height: 46px;
        font-size: 14px;
    }

    .brand-logo {
        height: 34px;
    }

    .brand.has-logo {
        margin-left: 0;
        padding: 9px 20px;
        border-radius: 18px;
    }

}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}


/* ============================================
   VERSIÓN AMARILLO PASTEL (solo cambia el color de los detalles)
   ============================================ */
:root {
    --accent: #FFE7A3;
    --accent-tag-ink: #6B4A00;
    --accent-soft: #FFF7DD;
    --accent-ink: #7A5300;
    --accent-strong: #E0A920;
    --glow-accent: #FFF0C4;
}

body.dark-mode {
    --accent-line: rgba(255, 231, 163, 0.35);
    --accent-soft: rgba(255, 231, 163, 0.12);
    --accent-ink: #FFE7A3;
    --glow-accent: rgba(232, 181, 48, 0.16);
}
