/* ============================================================
   Estilos del sitio (home + header/footer compartidos)
   Reutiliza los tokens de css/styles.css
   ============================================================ */

/* Logo de texto en el header compartido */
.logo.logo--text {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #2f9bd4;
}

/* Sticky shared header (frosted) */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid #eef1f5;
}

/* Evita que el header fijo tape el destino de los anclas (#order-form, etc.) */
:target { scroll-margin-top: 110px; }

/* ============================================================
   Header tipo marketplace (estilo Mercado Libre, paleta propia)
   ============================================================ */
header { padding: 0; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
}
.topbar .logo.logo--text { flex: 0 0 auto; }

/* Buscador central */
.site-search {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    max-width: 620px;
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
}
.site-search:focus-within {
    border-color: #2f9bd4;
    box-shadow: 0 0 0 3px rgba(47, 155, 212, 0.15);
}
.site-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--dark);
}
.site-search-input::placeholder { color: #9aa4b2; }
.site-search .site-search-btn {
    flex: 0 0 auto;
    width: 52px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    background: var(--accent-gradient);
    color: #fff;
    transition: filter 0.15s ease;
}
.site-search .site-search-btn:hover,
.site-search .site-search-btn:active {
    transform: none;
    box-shadow: none;
}
.site-search .site-search-btn:hover { filter: brightness(1.06); }

/* Barra secundaria de navegación (categorías/links) */
@media (min-width: 769px) {
    .subnav { background: var(--accent-gradient); }
    .subnav .container { display: flex; align-items: center; }
    .subnav .nav-links {
        display: flex;
        gap: 26px;
        list-style: none;
        margin: 0;
        padding: 9px 0;
    }
    .subnav .nav-links a {
        color: rgba(255, 255, 255, 0.92);
        font-weight: 600;
        font-size: 0.9rem;
        text-decoration: none;
        transition: color 0.15s ease;
    }
    .subnav .nav-links a:hover { color: #fff; }
}

@media (max-width: 768px) {
    /* En mobile la nav vuelve a ser el drawer (CSS de styles.css); ajustamos el
       desplazamiento para el header de dos niveles. */
    #navLinks { top: 60px; height: calc(100vh - 60px); }
}
@media (max-width: 600px) {
    .topbar { flex-wrap: wrap; row-gap: 10px; }
    .site-search { order: 3; flex-basis: 100%; max-width: none; }
    #navLinks { top: 112px; height: calc(100vh - 112px); }
}

/* Home hero */
.home-hero {
    position: relative;
    overflow: hidden;
    background: var(--accent-gradient);
    padding: 58px 0 54px;
    text-align: center;
    color: #fff;
}
.home-hero .container { position: relative; z-index: 1; }

/* Fondo personalizado (imagen) elegido desde Admin → Inicio */
.home-hero--image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.home-hero--image .home-hero-glow { display: none; }
.home-hero--image h1,
.home-hero--image p,
.home-hero--image .home-hero-eyebrow {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.55);
}

.home-hero-glow {
    position: absolute;
    top: -170px;
    left: 50%;
    transform: translateX(-50%);
    width: 760px;
    max-width: 120%;
    height: 400px;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.home-hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.home-hero h1 {
    font-size: 2.9rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    line-height: 1.12;
}
.home-hero h1 span {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: #eaf2ff;
    color: #eaf2ff;
}

.home-hero p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.12rem;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto;
}

.home-hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}
.hht-item {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.34);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 9px 16px;
    border-radius: 999px;
}

/* Benefits / trust strip */
.home-benefits {
    background: var(--white);
    border-bottom: 1px solid #eef1f5;
}
.benefit-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 26px 0;
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.bi-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #eaf2fd 0%, #f4f8ff 100%);
    border: 1px solid #e1ebf9;
    border-radius: 12px;
}
.bi-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.bi-text strong { color: var(--dark); font-size: 0.98rem; font-weight: 800; }
.bi-text span { color: var(--gray); font-size: 0.82rem; }

/* Variante de 2 beneficios (envío gratis + paga al recibir), centrada */
.home-benefits--two { background: var(--light-gray); border-top: 1px solid #eef1f5; }
.home-benefits--two .benefit-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
    margin: 0 auto;
    gap: 28px;
    padding: 38px 0;
}
.home-benefits--two .benefit-item { justify-content: center; }
.home-benefits--two .bi-icon { width: 54px; height: 54px; font-size: 1.6rem; }

/* ===== Testimonios: nuestros clientes nos aman ===== */
.home-testimonials {
    background: var(--white);
    padding: 56px 0;
    border-top: 1px solid #eef1f5;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e7edf3;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(18, 38, 68, 0.05);
}
.testimonial-stars { color: #ffb400; font-size: 1.05rem; letter-spacing: 2px; }
.testimonial-text {
    color: var(--dark);
    font-size: 0.96rem;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid #e7edf3;
    padding-top: 12px;
}
.testimonial-avatar {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2f9bd4, #1f86c0);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
}
.testimonial-meta { display: flex; flex-direction: column; line-height: 1.25; }
.testimonial-meta strong { color: var(--dark); font-size: 0.95rem; font-weight: 800; }
.testimonial-meta span { color: var(--gray); font-size: 0.8rem; }
.testimonial-verified {
    margin-left: auto;
    color: #1e8449;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Catalog section heading */
.section-head { text-align: center; margin-bottom: 30px; }
.section-head h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}
.section-head p { color: var(--gray); font-size: 1.02rem; }

/* Product grid */
.home-products {
    padding: 52px 0 88px;
    background: var(--light-gray);
}

.cat-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}

.cat-chip {
    border: 1px solid #d8e0ee;
    background: var(--white);
    color: var(--dark);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cat-chip:hover {
    border-color: #2f9bd4;
}

.cat-chip.is-active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
}

.cat-section {
    background: var(--white);
    border: 1px solid #eef1f5;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(16, 24, 40, 0.05);
    padding: 26px 26px 30px;
    margin-bottom: 26px;
}

.cat-section:last-child {
    margin-bottom: 0;
}

.cat-section.is-hidden {
    display: none;
}

.cat-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 20px;
    padding: 0 0 14px;
    border-bottom: 1px solid #eef1f5;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    padding: 40px 0;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    border: 1px solid #eef1f5;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(47, 155, 212, 0.18);
}

.product-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f6fb;
}

.product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card:hover .product-card-media img {
    transform: scale(1.05);
}

/* Listón diagonal "Más vendido" en la esquina de la foto del producto. */
.product-card-ribbon {
    position: absolute;
    top: 16px;
    left: -46px;
    z-index: 2;
    width: 170px;
    transform: rotate(-45deg);
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 0;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.35);
    pointer-events: none;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 20px 22px;
}

.product-card-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.35;
}

.product-card-desc {
    color: var(--gray);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 18px;
    flex: 1;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-card-price {
    display: flex;
    flex-direction: column;
}

.product-card-price .amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
}

.product-card-price .unit {
    font-size: 0.82rem;
    color: var(--gray);
}

.product-card-cta {
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 11px 18px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(47, 155, 212, 0.3);
}

@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .benefit-strip { grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
    .testimonial-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .home-hero { padding: 54px 0 46px; }
    .home-hero--image { min-height: 360px; }
    .home-hero-eyebrow { font-size: 0.78rem; }
    .home-hero h1 { font-size: 2rem; }
    .home-hero p { font-size: 1rem; }
    .section-head h2 { font-size: 1.55rem; }
    .product-grid { grid-template-columns: 1fr; gap: 20px; }
    .cat-section { padding: 18px 14px 22px; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .home-benefits--two .benefit-strip { grid-template-columns: 1fr; gap: 18px; }
}

/* ============================================================
   Carrito de compras (badge, drawer, checkout, gracias)
   ============================================================ */

/* Acciones del header (carrito + menú) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-button {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
    padding: 6px;
    line-height: 0;
    border-radius: 10px;
    transition: color 0.2s, transform 0.2s;
}
.cart-button:hover { color: #1f86c0; }

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
}

@keyframes cartBump {
    0% { transform: scale(1); }
    35% { transform: scale(1.25); }
    100% { transform: scale(1); }
}
.cart-button.cart-bump { animation: cartBump 0.4s ease; }

/* Botones "Agregar al carrito" en home */
.product-card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0 20px 20px;
}
.product-card-link { text-decoration: none; color: inherit; display: block; }
.product-card-add {
    flex: 1;
    background: #fff;
    color: #1f86c0;
    border: 2px solid #2f9bd4;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.product-card-add:hover { background: #2f9bd4; color: #fff; }
.product-card-actions .product-card-cta { cursor: pointer; text-decoration: none; }

/* Botón secundario en el hero del landing */
.hero-cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}
.cta-button.cta-button--secondary {
    background: rgba(255, 255, 255, 0.92);
    color: #1f86c0;
    border: 2px solid #fff;
    cursor: pointer;
}
.cta-button.cta-button--secondary:hover { background: #fff; }

/* Overlay + Drawer */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 1200;
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 400px;
    max-width: 90vw;
    background: #fff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1300;
    display: flex;
    flex-direction: column;
}
.cart-drawer.active { transform: translateX(0); }

.cart-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid #eef1f5;
}
.cart-drawer-head h3 { font-size: 1.25rem; font-weight: 800; color: var(--dark); }
.cart-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: var(--gray);
}
.cart-close:hover { color: var(--dark); }

.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-empty { text-align: center; color: var(--gray); padding: 40px 10px; line-height: 1.6; }

.cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid #f1f3f6;
}
.cart-item-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    background: #f4f6f9;
}
.cart-item-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.92rem;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}
.cart-item-name:hover { color: #1f86c0; }
.cart-item-price { font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.cart-item-save {
    display: inline-block;
    background: #e9f9ef;
    color: #137a3e;
    border: 1px solid #b8ecca;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    overflow: hidden;
}
.cart-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #f4f6f9;
    cursor: pointer;
    font-size: 1rem;
    color: var(--dark);
}
.cart-qty-btn:hover { background: #e9edf2; }
.cart-qty-val { min-width: 30px; text-align: center; font-weight: 700; font-size: 0.9rem; }

.cart-item-remove {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 0.78rem;
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
}
.cart-item-remove:hover { text-decoration: underline; }

.cart-drawer-foot { padding: 18px 22px; border-top: 1px solid #eef1f5; }
.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.05rem;
    margin-bottom: 6px;
}
.cart-subtotal strong { font-size: 1.3rem; font-weight: 800; color: var(--dark); }
.cart-note { font-size: 0.82rem; color: var(--gray); margin-bottom: 14px; text-align: center; }

.cart-btn {
    display: block;
    text-align: center;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}
.cart-btn-primary { background: var(--accent-gradient); color: #fff; box-shadow: 0 6px 18px rgba(47, 155, 212, 0.3); }
.cart-btn-primary:hover { transform: translateY(-2px); }
.cart-btn-light { background: #f4f6f9; color: var(--dark); }

/* ---- Página de checkout ---- */
.checkout { padding: 40px 0 60px; }
.checkout-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; text-align: center; }
.checkout-empty { text-align: center; color: var(--gray); padding: 60px 0; font-size: 1.1rem; }

.checkout-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 24px;
}
.checkout-intro { color: var(--gray); line-height: 1.6; margin-bottom: 18px; }

.checkout-form-col .form-group { margin-bottom: 16px; }
.checkout-form-col label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--dark); font-size: 0.92rem; }
.checkout-form-col input,
.checkout-form-col select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d7dde5;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}
.checkout-form-col input:focus,
.checkout-form-col select:focus { outline: none; border-color: #2f9bd4; box-shadow: 0 0 0 3px rgba(47,155,212,0.15); }
.checkout-form-col .form-row { display: flex; gap: 14px; }
.checkout-form-col .form-row .form-group { flex: 1; }

.checkout-submit {
    width: 100%;
    margin-top: 8px;
    padding: 16px;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(47, 155, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.checkout-submit:hover { transform: translateY(-2px); }
.checkout-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.checkout-legal { font-size: 0.8rem; color: var(--gray); margin-top: 12px; text-align: center; line-height: 1.5; }

.checkout-message {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 0.92rem;
    line-height: 1.5;
    white-space: pre-line;
}
.checkout-message.error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; }
.checkout-message.success { background: #eafaf1; color: #1e8449; border: 1px solid #abebc6; }

.loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Resumen lateral del checkout */
.checkout-aside {
    background: #f8fafc;
    border: 1px solid #eef1f5;
    border-radius: 16px;
    padding: 22px;
    position: sticky;
    top: 20px;
}
.checkout-aside-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 16px; color: var(--dark); }
.co-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9edf2;
}
.co-item-img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: #fff; }
.co-item-name { font-weight: 700; font-size: 0.9rem; color: var(--dark); margin-bottom: 6px; }
.co-qty { display: inline-flex; align-items: center; border: 1px solid #dfe4ea; border-radius: 8px; overflow: hidden; background: #fff; }
.co-qty-btn { width: 26px; height: 26px; border: none; background: #f4f6f9; cursor: pointer; font-size: 1rem; }
.co-qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.co-qty-val { min-width: 28px; text-align: center; font-weight: 700; font-size: 0.88rem; }
.co-item-right { text-align: right; }
.co-item-price { font-weight: 800; color: var(--dark); margin-bottom: 6px; font-size: 0.92rem; }
.co-item-save {
    display: inline-block;
    background: #e9f9ef;
    color: #137a3e;
    border: 1px solid #b8ecca;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 6px;
    white-space: nowrap;
}
.co-item-remove { background: none; border: none; color: #e74c3c; font-size: 0.76rem; cursor: pointer; }
.co-item-remove:hover { text-decoration: underline; }

.checkout-totals { margin-top: 16px; }
.co-sum-row { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--gray); }
.co-sum-row strong { color: var(--dark); }
.co-free { color: #1e8449 !important; }
.co-sum-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid #e9edf2;
    font-weight: 700;
}
.co-sum-total strong { font-size: 1.4rem; font-weight: 800; color: var(--dark); }
.co-sum-note {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 14px;
    padding: 12px 14px;
    background: #f4f8fb;
    border: 1px solid #e1eaf2;
    border-left: 4px solid var(--primary, #1f6feb);
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
}
.co-sum-note strong { color: var(--dark); font-weight: 700; }
.co-sum-note span { color: var(--gray); }

/* ---- Página de gracias (carrito) ---- */
.gracias { padding: 50px 0 70px; }
.gracias-card {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 18px;
    padding: 40px 34px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.gracias-icon { font-size: 3rem; margin-bottom: 12px; }
.gracias-card h1 { font-size: 1.9rem; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.gracias-lead { color: var(--gray); line-height: 1.6; margin-bottom: 20px; }
.gracias-warn {
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #8a6d3b;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 22px;
    text-align: left;
}
.gracias-products, .gracias-data { text-align: left; margin-top: 24px; }
.gracias-products h2, .gracias-data h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eef1f5;
}
.gracias-data p { color: var(--dark); margin-bottom: 6px; }
.g-item { padding: 12px 0; border-bottom: 1px solid #f1f3f6; }
.g-item-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.g-item-name { font-weight: 700; color: var(--dark); }
.g-item-sub { font-size: 0.86rem; color: var(--gray); margin-top: 4px; }
.g-item-sub.g-err { color: #c0392b; }
.g-badge { font-size: 0.74rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.g-badge.g-ok { background: #eafaf1; color: #1e8449; }
.g-badge.g-bad { background: #fdecea; color: #c0392b; }

@media (max-width: 820px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-aside { position: static; order: -1; }
}
@media (max-width: 600px) {
    .cart-drawer { width: 100%; max-width: 100%; }
    .product-card-actions { flex-direction: column; align-items: stretch; }
    .hero-cta-group { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   PÁGINAS DE CONTENIDO (Políticas, Contacto)
   ============================================================ */
.static-page { padding: 50px 0 70px; background: var(--light-gray); }
.static-narrow { max-width: 760px; }
.static-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    text-align: center;
}
.static-intro {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 32px;
}
.static-card {
    background: var(--white);
    border: 1px solid #eceef1;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.static-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 10px;
}
.static-card p { color: var(--gray); line-height: 1.7; margin: 0 0 10px; }
.static-card p:last-child { margin-bottom: 0; }
.static-card ul { margin: 0 0 10px; padding-left: 20px; }
.static-card li { color: var(--gray); line-height: 1.7; margin-bottom: 6px; }
.static-card a { color: #2f9bd4; font-weight: 600; }
.static-note {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 24px;
}

/* Métodos de contacto */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1px solid #eceef1;
    border-radius: 14px;
    padding: 20px 22px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.contact-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border-color: #2f9bd4;
}
.contact-method-wa:hover { border-color: #25d366; }
.contact-method-icon { font-size: 1.8rem; line-height: 1; }
.contact-method-body { display: flex; flex-direction: column; min-width: 0; }
.contact-method-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray);
    font-weight: 700;
}
.contact-method-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    word-break: break-word;
}

@media (max-width: 600px) {
    .static-title { font-size: 1.6rem; }
    .static-card { padding: 18px 18px; }
}

/* ============================================================
   Página de Productos (listado horizontal, 1 por fila)
   ============================================================ */
.products-page { padding: 40px 0 64px; }
.products-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}
.products-page-intro {
    color: var(--gray);
    max-width: 720px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.products-list { display: flex; flex-direction: column; gap: 16px; }

.product-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}
.product-row:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }

.product-row-media {
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--light-gray);
    display: block;
}
.product-row-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s;
}
.product-row-media:hover img { transform: scale(1.06); }

.product-row-info { flex: 1 1 auto; min-width: 0; }
.product-row-name {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    line-height: 1.3;
}
.product-row-name:hover { color: var(--accent); }
.product-row-desc {
    margin-top: 4px;
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-row-price {
    flex: 0 0 auto;
    text-align: right;
    min-width: 120px;
}
.product-row-price .amount {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
}
.product-row-price .unit {
    display: block;
    font-size: 0.82rem;
    color: var(--gray);
}
.product-row-price .save {
    display: inline-block;
    margin-top: 6px;
    background: #e9f9ef;
    color: #137a3e;
    border: 1px solid #b8ecca;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
    white-space: nowrap;
}
.product-row-price .save[hidden] { display: none; }

.product-row-qty {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.product-row-qty-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray);
    font-weight: 700;
}
.qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
}
.qty-btn {
    width: 36px;
    height: 40px;
    border: none;
    background: var(--light-gray);
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s;
}
.qty-btn:hover { background: #e2e6ea; }
.qty-input {
    width: 52px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--light-gray);
    border-right: 1px solid var(--light-gray);
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.product-row-add {
    flex: 0 0 auto;
    background: var(--accent-gradient);
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.1s;
}
.product-row-add:hover { opacity: 0.92; }
.product-row-add:active { transform: scale(0.97); }

.product-row-cta {
    flex: 0 0 auto;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.product-row-cta:hover { text-decoration: underline; }

@media (max-width: 760px) {
    .product-row {
        flex-wrap: wrap;
        gap: 14px;
    }
    .product-row-info { flex: 1 1 calc(100% - 116px); }
    .product-row-price {
        flex: 1 1 100%;
        text-align: left;
        order: 5;
        display: flex;
        align-items: baseline;
        gap: 8px;
    }
    .product-row-price .amount, .product-row-price .unit { display: inline; }
    .product-row-qty { order: 6; flex-direction: row; align-items: center; gap: 10px; }
    .product-row-add { order: 7; flex: 1 1 auto; padding: 12px; }
}

@media (max-width: 420px) {
    .product-row-media { width: 72px; height: 72px; }
    .product-row-info { flex: 1 1 calc(100% - 92px); }
}

/* ============================================================
   Barra de oferta + cuenta regresiva + marquee (estilo ElectroArg)
   ============================================================ */
.promo-bar {
    background: linear-gradient(135deg, #8ccfe8 0%, #62b7e2 100%);
    color: #0f2a3a;
}
.promo-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 9px 0;
    text-align: center;
}
.promo-bar-text {
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}
.promo-bar-sub {
    font-weight: 700;
    opacity: 0.9;
    margin-left: 8px;
}
.promo-countdown { display: flex; gap: 6px; }
.pc-box {
    background: #fff;
    color: #14223b;
    border-radius: 6px;
    min-width: 44px;
    padding: 4px 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.pc-num {
    font-weight: 800;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}
.pc-lbl {
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #6c757d;
    margin-top: 2px;
}

/* Marquee negro de beneficios */
.marquee {
    background: #121212;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
}
.marquee-track {
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
    animation: marquee-scroll 25s linear infinite;
    will-change: transform;
}
.marquee-track span {
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0 30px;
    position: relative;
}
.marquee-track span::after {
    content: '•';
    position: absolute;
    right: -3px;
    color: #2f9bd4;
}
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Titulares condensados estilo "Anton" */
.home-hero h1,
.section-head h2,
.cat-section-title {
    font-family: 'Anton', 'Inter', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.home-hero h1 { line-height: 1.05; }

/* CTA del hero */
.home-hero-cta {
    display: inline-block;
    margin-top: 26px;
    background: #fff;
    color: #14223b;
    font-weight: 800;
    font-size: 1.02rem;
    padding: 14px 34px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.home-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

@media (max-width: 600px) {
    .promo-bar-inner { gap: 10px; padding: 8px 0; }
    .promo-bar-text { font-size: 0.78rem; }
    .promo-bar-sub { margin-left: 6px; }
    .pc-box { min-width: 40px; padding: 3px 6px; }
    .pc-num { font-size: 0.95rem; }
    .marquee-track span { font-size: 0.74rem; padding: 0 18px; }
    .home-hero-cta { font-size: 0.96rem; padding: 13px 28px; }
}

/* ============================================================
   Buy-box hero (estilo electroarg) — usado en las landings
   ============================================================ */
.buy-hero { padding: 32px 0 10px; background: var(--white); }
.buy-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}
/* Galería */
.buy-gallery { position: sticky; top: 16px; }
.buy-gallery-main {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--light-gray);
    box-shadow: var(--shadow);
    aspect-ratio: 1 / 1;
}
.buy-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.buy-gallery-main video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.buy-flame {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    background: #1a1a1a; color: #fff; font-weight: 800;
    font-size: 0.82rem; letter-spacing: .3px;
    padding: 7px 13px; border-radius: 999px;
}
.buy-thumbs {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 10px; margin-top: 12px;
}
.buy-thumb {
    border: 2px solid #e3e8ee; background: var(--light-gray);
    border-radius: 12px; overflow: hidden; cursor: pointer; padding: 0;
    aspect-ratio: 1 / 1; transition: border-color .15s ease, transform .15s ease;
}
.buy-thumb img,
.buy-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.buy-thumb.is-active { border-color: #1f86c0; }
.buy-thumb:hover { transform: translateY(-2px); }
.buy-thumb--video { position: relative; }
.buy-thumb--video::after {
    content: "\25B6";
    position: absolute; inset: 0; margin: auto;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.55); color: #fff;
    border-radius: 50%; font-size: 0.7rem; pointer-events: none;
}

/* Info */
.buy-title {
    font-family: 'Anton', 'Inter', sans-serif;
    font-weight: 400; line-height: 1.06; letter-spacing: .5px;
    font-size: clamp(1.8rem, 3.4vw, 2.65rem);
    color: var(--dark); text-transform: uppercase; margin: 0 0 10px;
}
.buy-subtitle {
    color: #47525f; font-size: 1.05rem; line-height: 1.55;
    margin: 0 0 16px; max-width: 48ch;
}
.buy-rating { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.buy-stars { color: #f5a623; font-size: 1.15rem; letter-spacing: 2px; }
.buy-rating-count { color: var(--gray); font-size: .92rem; font-weight: 600; }
.buy-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 16px; }
.buy-price-old { color: var(--gray); font-size: 1.3rem; text-decoration: line-through; font-weight: 600; }
.buy-price-off { background: #e11900; color: #fff; font-weight: 800; font-size: .92rem; padding: 4px 10px; border-radius: 8px; letter-spacing: .3px; align-self: center; }
.buy-price { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; color: var(--dark); line-height: 1; }
.buy-perunit { color: var(--gray); font-size: .95rem; font-weight: 600; }
.buy-save {
    background: #1a1a1a; color: #fff; font-weight: 800; font-size: .8rem;
    padding: 6px 11px; border-radius: 999px; letter-spacing: .3px;
}
.buy-features { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 9px; }
.buy-features li { font-size: 1rem; color: #2a3340; }
.buy-features strong { color: var(--dark); }

.buy-variants { margin-bottom: 16px; }
.buy-variants-label { display: block; font-size: .78rem; font-weight: 800; letter-spacing: 1px; color: var(--gray); margin-bottom: 8px; }
.buy-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.buy-pill {
    border: 2px solid #cfd8e0; background: var(--white); color: var(--dark);
    font-weight: 700; font-size: .95rem; padding: 11px 18px; border-radius: 999px;
    cursor: pointer; transition: all .15s ease;
}
.buy-pill:hover { border-color: #1f86c0; }
.buy-pill.is-active { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }

.buy-delivery {
    background: #eef5fd; border: 1px solid #d6e6f7; border-radius: 12px;
    padding: 11px 14px; font-size: .96rem; color: #1f3550; margin: 0 0 18px;
}
.buy-cta-group { display: grid; gap: 10px; margin-bottom: 16px; }
.buy-cta {
    display: block; width: 100%; text-align: center; cursor: pointer;
    border: none; border-radius: 14px; padding: 17px 22px;
    font-size: 1.12rem; font-weight: 800; text-decoration: none;
    background: linear-gradient(135deg, #2f9bd4 0%, #1f86c0 100%);
    color: #fff; box-shadow: 0 8px 22px rgba(47,155,212,.32);
    transition: transform .12s ease, box-shadow .12s ease;
}
.buy-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(47,155,212,.42); }
.buy-cta--alt {
    background: var(--white); color: #1a1a1a; border: 2px solid #1a1a1a;
    box-shadow: none; font-size: 1rem; padding: 13px 22px;
}
.buy-cta--alt:hover { background: #1a1a1a; color: #fff; }

.buy-stock { margin-bottom: 16px; }
.buy-stock-bar { height: 8px; border-radius: 999px; background: #ececec; overflow: hidden; margin-bottom: 6px; }
.buy-stock-bar span { display: block; height: 100%; width: 18%; border-radius: 999px; background: linear-gradient(90deg, #ff7a00, #ff3b3b); }
.buy-stock p { margin: 0; font-size: .9rem; color: #c0392b; font-weight: 700; }

.buy-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin-bottom: 8px; }
.buy-trust span { font-size: .9rem; color: #2a3340; font-weight: 600; }

.buy-accordions { margin-top: 6px; }
.buy-acc { border-bottom: 1px solid #eee; }
.buy-acc summary {
    list-style: none; cursor: pointer; padding: 15px 2px;
    font-weight: 800; font-size: 1.02rem; color: var(--dark);
    display: flex; align-items: center; justify-content: space-between;
}
.buy-acc summary::-webkit-details-marker { display: none; }
.buy-acc summary::after { content: '+'; font-size: 1.4rem; color: var(--gray); font-weight: 400; }
.buy-acc[open] summary::after { content: '–'; }
.buy-acc > div { padding: 0 2px 16px; color: #3a4453; font-size: .96rem; line-height: 1.7; }
.buy-acc ul { margin: 0; padding-left: 18px; }
.buy-acc li { margin-bottom: 6px; }

@media (max-width: 860px) {
    .buy-hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .buy-gallery { position: static; }
    .buy-thumbs { grid-template-columns: repeat(5, 1fr); }
    .buy-cta { font-size: 1.05rem; }
}

/* ============================================================
   Reseñas de clientes (widget realista, estilo ElectroArg)
   ============================================================ */
.reviews { padding: 70px 0; background: var(--light-gray); }
.reviews-head {
    display: flex; flex-wrap: wrap; align-items: center; gap: 26px 48px;
    background: #fff; border: 1px solid #e6e9ef; border-radius: 18px;
    padding: 26px 30px; margin: 36px 0 30px;
    box-shadow: 0 6px 20px rgba(20, 34, 59, 0.06);
}
.reviews-avg-box { text-align: center; min-width: 150px; }
.reviews-avg { display: block; font-family: 'Anton', sans-serif; font-size: 3.4rem; line-height: 1; color: #14223b; }
.reviews-avg-box .stars { display: block; color: #f5a623; font-size: 1.2rem; letter-spacing: 2px; margin: 6px 0 4px; }
.reviews-avg-box .count { color: #6c757d; font-size: 0.9rem; font-weight: 600; }
.reviews-bars { flex: 1; min-width: 240px; display: grid; gap: 7px; }
.rbar { display: grid; grid-template-columns: 42px 1fr 30px; align-items: center; gap: 10px; font-size: 0.82rem; color: #6c757d; font-weight: 600; }
.rbar-track { height: 9px; background: #edf0f5; border-radius: 999px; overflow: hidden; }
.rbar-fill { display: block; height: 100%; background: linear-gradient(90deg, #f5a623, #f0920e); border-radius: 999px; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.review-card {
    background: #fff; border: 1px solid #e6e9ef; border-radius: 16px;
    padding: 22px; display: flex; flex-direction: column;
    box-shadow: 0 6px 18px rgba(20, 34, 59, 0.05);
}
.review-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.review-stars { color: #f5a623; font-size: 1rem; letter-spacing: 1px; }
.review-verified {
    display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
    font-size: 0.7rem; font-weight: 800; color: #1e8449;
    background: #eafaf1; padding: 4px 9px; border-radius: 999px;
}
.review-photo { width: 100%; height: 210px; object-fit: cover; border-radius: 12px; margin-bottom: 14px; background: #f1f1f1; }
.review-text { color: #2d2d2d; line-height: 1.6; font-size: 0.96rem; margin: 0 0 16px; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-avatar {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #2f9bd4, #1f86c0); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem;
}
.review-author strong { display: block; font-size: 0.94rem; color: #14223b; }
.review-author span { font-size: 0.8rem; color: #8a8a8a; }
@media (max-width: 600px) {
    .reviews-head { flex-direction: column; align-items: stretch; gap: 18px; padding: 22px; }
    .review-photo { height: 230px; }
}

/* ===== Reseñas en formato conversación (chat tipo mensajería) ===== */
.reviews-chat {
    max-width: 680px;
    margin: 30px auto 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(20, 34, 59, 0.14);
    border: 1px solid #ddd9d1;
}
.chat-header {
    display: flex; align-items: center; gap: 12px;
    background: var(--accent-gradient);
    padding: 12px 16px; color: #fff;
}
.chat-h-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
}
.chat-h-info { line-height: 1.25; }
.chat-h-info strong { display: block; font-size: 0.98rem; font-weight: 800; }
.chat-h-info span { font-size: 0.76rem; opacity: 0.92; }
.chat-body {
    padding: 16px 14px 20px;
    background-color: #ece5dd;
    background-image: radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 18px 18px;
}
.chat-day { text-align: center; margin: 2px 0 16px; }
.chat-day span {
    background: rgba(255, 255, 255, 0.8); color: #5a6b7a;
    font-size: 0.72rem; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
}
.chat-msg { display: flex; gap: 8px; margin-bottom: 12px; max-width: 88%; align-items: flex-end; }
.chat-avatar {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 0.8rem;
}
.chat-bubble {
    background: #fff; border-radius: 12px;
    padding: 7px 11px 6px; position: relative;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.10);
}
.chat-name { display: block; font-size: 0.78rem; font-weight: 800; margin-bottom: 1px; }
.chat-text { display: block; font-size: 0.9rem; line-height: 1.42; color: #2a2a2a; }
.chat-meta { display: block; text-align: right; font-size: 0.64rem; color: #97a3ad; margin-top: 2px; }
.chat-meta .tick { color: #34b7f1; font-weight: 700; }
.chat-msg.is-buyer { margin-left: auto; flex-direction: row-reverse; }
.chat-msg.is-buyer .chat-bubble { background: #d9fdd3; }
.chat-msg.is-buyer .chat-name { color: #1f7a4d; }
@media (max-width: 600px) {
    .chat-msg { max-width: 92%; }
    .chat-text { font-size: 0.88rem; }
}

/* ===== Disuasión anti-copia / inspección (solo páginas públicas) =====
   Es SOLO un disuasor de cara al cliente; no es seguridad real.
   La info crítica (precios, totales, validación, API) vive en el back-end (PHP). */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
/* Permitir seleccionar/escribir/pegar en los campos del formulario para no romper el checkout */
input,
textarea,
select,
[contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}
img {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: auto;
}
