/* ============================================================
   WebShop_PHP — hoja de estilos (CSS puro, sin frameworks)
   ============================================================ */
/* Roboto (para el eslogan y opciones de marca) via Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&display=swap');

/* Fuentes Avenir (locales, para acentos correctos y estilo de marca) */
@font-face {
    font-family: 'Avenir';
    src: url('/assets/fonts/avenir-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Avenir';
    src: url('/assets/fonts/avenir-demi-bold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #183B74;        /* azul GENOTRONIX (logo oficial) */
    --primary-dark: #122C55;
    --accent: #E36623;         /* naranja GENOTRONIX (logo oficial) */
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --danger: #dc2626;
    --success: #16a34a;
    --warning: #d97706;
    --radius: 12px;
    --shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

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

body {
    font-family: 'Avenir', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container { width: min(1140px, 92%); margin: 0 auto; }
.narrow { max-width: 680px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: .92em; }

/* ---------- Header ---------- */
.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.15rem 0;
    flex-wrap: nowrap;
}
.logo { display: flex; flex-direction: column; align-items: center; gap: .15rem; font-weight: 800; color: var(--text); flex-shrink: 0; line-height: 1; }
.logo-img { height: 91px; width: auto; }
.logo-tagline {
    font-size: 19px;   /* 24px −20% ≈ 19.2px */
    font-weight: 600;
    letter-spacing: .6px;
    color: #3a3f47;
    font-family: 'Roboto', 'Avenir', -apple-system, sans-serif;
    white-space: nowrap;
    margin-top: 12px;   /* 2px + 10px de separación respecto al logo */
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;     /* TODO el menú siempre en UNA sola línea */
    margin: 0 auto;          /* centra el menú en el espacio libre, entre logo y acciones */
}
.main-nav a { color: var(--text); font-weight: 500; white-space: nowrap; font-size: .95rem; }
.main-nav a:hover { color: var(--primary); text-decoration: none; }

/* Pantallas medianas: compactar más el menú para que nunca baje a dos líneas */
@media (max-width: 1280px) {
    .main-nav { gap: .8rem; }
    .main-nav a { font-size: .9rem; }
    .header-actions { gap: .8rem; }
}
@media (max-width: 1150px) {
    .main-nav { gap: .6rem; }
    .main-nav a { font-size: .84rem; }
    .header-actions { gap: .6rem; }
}
@media (max-width: 1024px) {
    .main-nav { gap: .5rem; }
    .main-nav a { font-size: .8rem; }
    .header-actions { gap: .5rem; }
    .logo-img { height: 74px; }
    .logo-tagline { font-size: 16px; margin-top: 8px; }
}

/* Acciones del header (iconos estilo Vigyan) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-left: auto;
}
.icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: color .15s;
}
.icon-link:hover { color: var(--primary); }
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
}
.icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}
.icon-badge {
    position: absolute;
    top: -7px;
    right: -9px;
    background: var(--accent);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.avatar-sm { width: 30px; height: 30px; border-width: 1px; }
.user-icon-link:hover img { border-color: var(--primary); }

/* Menú desplegable del icono de perfil (hover) — avatar al final del header */
.user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}
/* Avatar del header: GRANDE para clientes (58px → +20% = 70px) */
.user-menu .avatar-header {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50%;
    object-fit: cover;
}
.user-menu .avatar-header.icon {
    width: 70px !important;
    height: 70px !important;
}
/* Para el admin (cuando navega la tienda): igual que los demás iconos (26px) — NO tocar */
.user-menu .avatar-header.avatar-admin {
    width: 26px !important;
    height: 26px !important;
}
.user-menu .avatar-header.icon.avatar-admin {
    width: 26px !important;
    height: 26px !important;
}
.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .14);
    padding: .45rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 60;
}
.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.user-dropdown-head {
    padding: .6rem 1.1rem;
    font-weight: 700;
    font-size: .9rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    margin-bottom: .35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}
.user-dropdown a {
    display: block;
    padding: .55rem 1.1rem;
    font-size: .9rem;
    color: var(--text);
    white-space: nowrap;
}
.user-dropdown a:hover {
    background: var(--bg-soft, #f5f6f8);
    color: var(--primary);
    text-decoration: none;
}
.user-dropdown a.danger { color: #dc2626; }
.user-dropdown a.danger:hover { background: #fef2f2; color: #b91c1c; }
.user-dropdown-sep {
    height: 1px;
    background: var(--border);
    margin: .35rem 0;
}

/* Selector de idioma con banderas */
.lang-switch { display: flex; align-items: center; }
.lang-btn { display: inline-flex; align-items: center; line-height: 0; }
.lang-flag {
    width: 34px;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(15,23,42,.12);
    transition: transform .15s, box-shadow .15s;
}
.lang-btn:hover .lang-flag { transform: scale(1.08); box-shadow: 0 2px 6px rgba(15,23,42,.2); }

/* Píldora naranja del menú principal (texto blanco) — ya no se usa */
.nav-pill {
    display: none;
}

.cart-link { position: relative; }
.user-chip {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 600;
    color: var(--text);
    margin-left: .4rem;
}
.user-chip:hover { color: var(--primary); text-decoration: none; }
.avatar-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}
.avatar-lg { width: 84px; height: 84px; font-size: 2rem; }
.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}
.avatar-block { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.avatar-actions { flex: 1; min-width: 220px; }
.avatar-actions .form-group label span { display: block; margin-bottom: .35rem; font-weight: 600; }
.cart-badge {
    background: var(--accent);
    color: #fff;
    font-size: .72rem;
    border-radius: 999px;
    padding: .05rem .4rem;
    position: absolute;
    top: -.5rem;
    right: -.8rem;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-block;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: .6rem 1.1rem;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background .15s, transform .05s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: .35rem .75rem; font-size: .85rem; }
.btn-block { display: block; width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-fav { background: #fff1f2; border-color: var(--danger); color: var(--danger); }
.btn-fav:hover { background: var(--danger); color: #fff; }
.fav-form { margin-top: .8rem; }
.btn-link-danger { background: none; border: none; color: var(--danger); cursor: pointer; font-size: .9rem; }
.btn-link-danger:hover { text-decoration: underline; }

/* ⚠️ REGLA ESENCIAL (Dorian): TODOS los botones de la web son NARANJA, estilados e idénticos.
   Cualquier button[type=submit] sin clase propia hereda este estilo naranja profesional. */
button[type="submit"] {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .6rem 1.3rem;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(227, 102, 35, .25);
    transition: background .15s, transform .05s, box-shadow .15s;
    white-space: nowrap;
}
button[type="submit"]:hover { background: #c9551a; box-shadow: 0 5px 14px rgba(227, 102, 35, .35); color: #fff; text-decoration: none; }
button[type="submit"]:active { transform: translateY(1px); }
/* El botón del formulario de búsqueda toma así el mismo naranja. */
.search-form { display: flex; align-items: center; gap: .5rem; }
.search-form input { flex: 1; min-width: 180px; }

/* Botones de formularios de cuenta/perfil: todos mismo tamaño (ocupan ancho completo) */
.account .form-card button[type="submit"] {
    display: block;
    width: 100%;
    padding: .75rem 1.3rem;
    font-size: 1rem;
}

/* ---------- Secciones / tarjetas ---------- */
.section { padding: 2.5rem 0; }
.section-title { font-size: 1.6rem; margin-bottom: 1.2rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }

/* Barra de suscripción a notificaciones / newsletter (entre título y buscador de productos) */
.newsletter-bar {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap;
    background: #fff7f0;
    border: 1px solid #f5d7c0;
    border-radius: 12px;
    padding: .8rem 1rem;
    margin-bottom: 1.2rem;
}
.newsletter-label {
    font-weight: 800;
    font-size: .95rem;
    color: var(--accent);
    white-space: nowrap;
}
.newsletter-bar input[type="email"] {
    flex: 1 1 220px;
    min-width: 200px;
    padding: .6rem .9rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: .92rem;
    background: #fff;
    color: var(--text);
}
.newsletter-bar input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(227, 102, 35, .15);
}
.newsletter-submit {
    /* mismo estilo naranja del resto de botones (btn-cart / btn-primary) */
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .6rem 1.3rem;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(227, 102, 35, .25);
    transition: background .15s, transform .05s, box-shadow .15s;
    white-space: nowrap;
}
.newsletter-submit:hover { background: #c9551a; box-shadow: 0 5px 14px rgba(227, 102, 35, .35); }
.newsletter-submit:active { transform: translateY(1px); }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.2rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
/* Rejilla de valoraciones de la marca: 4 columnas a lo ancho en desktop */
.grid-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.card-icon { font-size: 1.8rem; margin-bottom: .5rem; }

/* Aviso in-house: kits desarrollados por nosotros */
.inhouse-badge {
    display: flex;
    align-items: center;
    gap: .9rem;
    max-width: 820px;
    margin: 0 auto 1.8rem;
    padding: .95rem 1.3rem;
    background: rgba(227, 102, 35, .08);
    border: 1px solid rgba(227, 102, 35, .45);
    border-left: 5px solid var(--accent);
    border-radius: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 1.02rem;
    color: #1e293b;
}
.inhouse-badge .badge-icon { font-size: 1.6rem; flex-shrink: 0; }

/* Nota in-house en páginas interiores (p. ej. Nosotros) */
.inhouse-note {
    max-width: 720px;
    margin: 1.2rem 0;
    padding: .9rem 1.2rem;
    background: rgba(227, 102, 35, .08);
    border: 1px solid rgba(227, 102, 35, .45);
    border-left: 5px solid var(--accent);
    border-radius: 12px;
    font-weight: 600;
    color: #1e293b;
}

/* Fila de botones en páginas interiores (Nosotros) */
.about-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

/* Página Nosotros: texto de presentación */
.about-lead {
    font-size: 1.12rem;
    line-height: 1.65;
    color: #334155;
    width: 100%;
}

/* Página Nosotros: lista de compromisos */
.commitment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 860px;
}
.commitment-list li {
    position: relative;
    padding-left: 1.7rem;
    margin-bottom: .6rem;
    font-size: 1.02rem;
    color: #1e293b;
}
.commitment-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Página Nosotros: distancia uniforme entre secciones (títulos) */
.about-page h2 {
    margin-top: 2.5rem;
}

/* Página Nosotros: flujo del equipo en Shenzhen */
.shenzhen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 1rem;
    margin: 1rem 0;
}
.shenzhen-item {
    background: var(--card, #fff);
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--accent);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.shenzhen-item p {
    margin: 0;
    font-size: .96rem;
    line-height: 1.55;
    color: #475569;
    flex: 1;
}
.shenzhen-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 860px;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem .9rem;
}
.shenzhen-list li {
    background: rgba(227, 102, 35, .07);
    border: 1px solid rgba(227, 102, 35, .35);
    border-radius: 999px;
    padding: .45rem 1rem;
    font-size: .98rem;
    font-weight: 600;
    color: #1e293b;
}

/* ---------- Hero (landing de marca) ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #183B74 0%, #122C55 55%, #0f172a 100%);
    color: #fff;
    padding: 4.5rem 0;
    text-align: center;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/hero/hero-bg.jpg") center / cover no-repeat;
    opacity: .10; /* 10% de transparencia (imagen casi invisible, texto por encima) */
    z-index: 0;
    pointer-events: none;
}
.hero .container,
.hero-inner {
    position: relative;
    z-index: 1;
}
.hero h1 { font-size: 2.6rem; margin-bottom: .6rem; }
.hero-tagline { font-size: 1.35rem; color: #93c5fd; margin-bottom: .8rem; }
.hero-sub { max-width: 640px; margin: 0 auto 1.8rem; color: #dbeafe; }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero .btn-outline { border-color: #fff; color: #fff; }
.hero .btn-outline:hover { background: #fff; color: #122C55; }

/* Suscripción a notificaciones dentro del hero (cuadro oscuro) */
.hero-newsletter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap;
    margin: 0 auto 1.8rem;
    max-width: 560px;
}
.hero-newsletter input[type="email"] {
    flex: 1 1 260px;
    min-width: 220px;
    padding: .7rem 1rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 10px;
    font-size: .95rem;
    background: rgba(255, 255, 255, .98);
    color: #0f172a;
}
.hero-newsletter input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(227, 102, 35, .3);
}
.hero-newsletter .btn {
    /* naranja, mismo estilo del resto de botones */
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(227, 102, 35, .35);
    white-space: nowrap;
    font-size: 1rem;
    padding: .7rem 1.5rem;
}
.hero-newsletter .btn:hover {
    background: #c9551a;
    border-color: #c9551a;
    color: #fff;
    box-shadow: 0 6px 18px rgba(227, 102, 35, .45);
}

/* ---------- Productos ---------- */
.product-card { display: flex; flex-direction: column; color: inherit; padding: 0; overflow: hidden; height: 100%; transition: transform .32s ease, box-shadow .32s ease; will-change: transform; }
.product-card:hover { text-decoration: none; transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 28px rgba(227, 102, 35, .19); z-index: 2; position: relative; }
.product-card-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; flex: 1; }
.product-card-link:hover { text-decoration: none; color: inherit; }
.product-price-row {
    display: flex;
    align-items: center;
    justify-content: center;   /* precio + iconos centrados en la tarjeta */
    gap: .75rem;
    flex-wrap: nowrap;
    padding: .6rem .8rem .75rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.product-price-row .price { margin: 0; padding-top: 0; border-top: none; font-size: 1.05rem; }
.product-price-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}
.card-add-cart { margin: 0; }
.card-fav-form { margin: 0; }
/* Iconos de acción en tarjeta: SOLO el icono naranja, sin botón/fondo/borde */
.product-price-actions button[type="submit"].card-icon-btn,
.product-price-actions button.card-icon-btn {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 2px !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #E36623 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    cursor: pointer;
    transition: color .15s, transform .15s;
    flex-shrink: 0;
}
.product-price-actions button[type="submit"].card-icon-btn:hover,
.product-price-actions button.card-icon-btn:hover { color: #c9551a !important; transform: scale(1.1); }
.product-price-actions button[type="submit"].card-icon-btn svg,
.product-price-actions button.card-icon-btn svg { display: block; width: 18px; height: 18px; }
.product-price-actions button[type="submit"].card-icon-btn.is-fav,
.product-price-actions button.card-icon-btn.is-fav { color: #E36623 !important; }

.product-thumb {
    aspect-ratio: 4/3;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    min-height: 0;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-placeholder {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    opacity: .35;
}
.thumb-large { font-size: 6rem; height: 100%; }
.product-info { padding: 1rem 1.1rem 1.2rem; text-align: left; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.product-info h3 {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.35;
    height: 2.7em;   /* ALTURA FIJA: exactamente 2 líneas, siempre igual */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    margin-bottom: .45rem;
    text-align: center;
}
.product-cat { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: .35rem; text-align: center; }
.product-rating-row { display: flex; align-items: center; justify-content: center; gap: .35rem; margin: .1rem 0 .4rem; line-height: 1; }
.price {
    color: var(--primary);            /* azul GENOTRONIX (Dorian lo quiere azul) */
    font-weight: 800;
    font-size: 1.15rem;
    display: block;
    text-align: center;
    margin-top: auto;   /* ancla el precio abajo: todos en la misma línea */
    padding-top: .5rem;
    border-top: 1px dashed var(--border);
    line-height: 1.4;
}
.price-lg { font-size: 1.5rem; }
.badge-stock {
    background: var(--danger);
    color: #fff;
    font-size: .72rem;
    border-radius: 999px;
    padding: .1rem .5rem;
    position: absolute;
    top: .5rem;
    right: .5rem;
}

/* ---------- Ficha de producto ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.product-detail-thumb {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 { font-size: 1.7rem; margin-bottom: .4rem; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }
.add-to-cart { display: flex; gap: 1rem; align-items: flex-end; margin-top: 1.4rem; flex-wrap: wrap; }
.stock-coming-soon {
    margin-top: 1.4rem;
    padding: 1rem 1.2rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: #fff8f0;
}
.stock-soon-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--accent);
    margin-bottom: .3rem;
}
.add-to-cart .qty-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.add-to-cart .qty-field label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.add-to-cart .qty-control {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color .15s;
}
.add-to-cart .qty-control:focus-within { border-color: var(--primary); }
.add-to-cart .qty-control button {
    width: 44px;
    height: 46px;
    border: none;
    background: #f1f5f9;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    line-height: 1;
    transition: background .15s, color .15s;
}
.add-to-cart .qty-control button:hover { background: var(--primary); color: #fff; }
.add-to-cart .qty-control input[type="number"] {
    width: 64px;
    height: 46px;
    border: none;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    -moz-appearance: textfield;
    appearance: textfield;
}
.add-to-cart .qty-control input[type="number"]::-webkit-outer-spin-button,
.add-to-cart .qty-control input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* Botón Añadir al carrito naranja */
.btn-cart {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .85rem 1.9rem;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(227, 102, 35, .3);
    transition: background .15s, transform .05s, box-shadow .15s;
}
.btn-cart:hover { background: #c9551a; color: #fff; box-shadow: 0 6px 18px rgba(227, 102, 35, .4); }
.btn-cart:active { transform: translateY(1px); }

/* ---------- Carrito ---------- */
.cart-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.cart-table th, .cart-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.cart-table th { background: #f1f5f9; font-size: .85rem; }
.qty-form { display: flex; gap: .4rem; align-items: center; }
.qty-form input { width: 64px; }
.cart-summary { max-width: 420px; margin-left: auto; margin-top: 1.5rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.cart-summary p { display: flex; justify-content: space-between; margin-bottom: .4rem; }
.cart-summary .total { border-top: 1px solid var(--border); padding-top: .6rem; font-size: 1.1rem; margin-top: .6rem; }
/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: start; }
.checkout-data { list-style: none; }
.checkout-data li { padding: .4rem 0; border-bottom: 1px dashed var(--border); }
.mini-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.mini-table th, .mini-table td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .92rem; }
.mini-table th { background: #f1f5f9; }
.mini-total td { font-weight: 800; font-size: 1.05rem; }

/* ---------- Formularios ---------- */
.form-card { max-width: 520px; margin: 0 auto; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.form-group input, .form-group select, .form-group textarea, .search-form input {
    width: 100%;
    padding: .6rem .8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .95rem;
    font-family: inherit;
    background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
    border-color: var(--primary);
}
.checkbox { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; margin-bottom: 1rem; }
.checkbox input { margin-top: .25rem; }

/* ---------- Alertas / flash ---------- */
.alert { padding: .8rem 1rem; border-radius: 8px; margin: 1rem 0; font-weight: 500; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--success); }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: var(--danger); }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: var(--warning); }

/* ---------- Tienda: layout con sidebar de categorías ---------- */
.shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}
.shop-sidebar {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1rem;
    position: sticky;
    top: 96px;
}
.category-toggle-mobile { display: none; }
.shop-sidebar .category-list-wrap { display: block; }
.sidebar-title {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--muted);
    margin-bottom: .9rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--border);
}
.category-list { display: flex; flex-direction: column; gap: .15rem; }
.category-list a {
    display: block;
    padding: .55rem .8rem;
    border-radius: 8px;
    color: var(--text);
    font-weight: 500;
    font-size: .92rem;
}
.category-list a:hover { background: #f1f5f9; color: var(--primary); text-decoration: none; }
.category-list a.active { background: var(--primary); color: #fff; }
.shop-content { min-width: 0; }

/* Barra de navegación / ordenación de la tienda */
.shop-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .9rem 1.1rem;
    margin-bottom: 1.4rem;
}
.toolbar-form {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}
.toolbar-field {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
}
.toolbar-field select {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .45rem .7rem;
    font-size: .92rem;
    background: #fff;
    color: var(--text);
    cursor: pointer;
}
.toolbar-arrows {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.arrow-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    transition: background .15s, color .15s;
}
.arrow-link:hover { background: var(--primary); color: #fff; text-decoration: none; }
.arrow-link.disabled { opacity: .35; pointer-events: none; }
.arrow-page { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* ---------- Chips / filtros ---------- */
.chip-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chip {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .35rem .9rem;
    font-size: .88rem;
    color: var(--text);
}
.chip:hover { border-color: var(--primary); text-decoration: none; }
.chip-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip-danger { color: var(--danger); border-color: #fecaca; }
.chip-danger:hover { border-color: var(--danger); background: #fef2f2; }

/* ---------- Paginación (estilo Amazon: botones naranjas, números azules) ---------- */
.pagination {
    display: flex;
    align-items: center;
    gap: .45rem;
    justify-content: center;
    margin-top: 1.8rem;
    flex-wrap: wrap;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: var(--accent, #E36623);
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: .55rem 1.2rem;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(227, 102, 35, .35);
    transition: background .15s, transform .05s, box-shadow .15s;
}
.page-btn:hover {
    background: #c9551a;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(227, 102, 35, .45);
}
.page-btn:active { transform: translateY(1px); }
.page-btn.disabled {
    background: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 .55rem;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 40px;
    color: var(--primary, #183B74);
    font-weight: 700;
    text-decoration: none;
    transition: border-color .15s, background .15s, color .15s;
}
.page-link:hover {
    border-color: var(--primary, #183B74);
    background: #f1f5f9;
    color: var(--primary, #183B74);
    text-decoration: none;
}
.page-active {
    border-color: var(--accent, #E36623);
    background: #fff7f0;
    color: var(--accent, #E36623);
    font-weight: 800;
}
.page-active:hover {
    border-color: var(--accent, #E36623);
    background: #fff7f0;
    color: var(--accent, #E36623);
}
.page-ellipsis { color: #64748b; font-weight: 600; padding: 0 .15rem; }

/* ---------- Cuenta / admin ---------- */
.account-nav { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.stats { margin-bottom: 1rem; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.inline-form { display: inline; }

/* ---------- Resultado de pago ---------- */
.result-icon { font-size: 3.2rem; margin-bottom: .6rem; }

/* ---------- Captcha (honeypot oculto) ---------- */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* ---------- Tipos de cuenta / métodos de pago ---------- */
.radio-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.radio-card {
    display: block;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: .7rem .9rem;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    margin-bottom: .5rem;
}
.radio-card:hover { border-color: var(--primary); }
.radio-card:has(input:checked) { border-color: var(--primary); background: #f0f4fa; }
.radio-card small { display: block; color: var(--muted); }
.pay-methods .radio-card { margin-bottom: .6rem; }
.badge-empresa {
    background: var(--accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    border-radius: 6px;
    padding: .1rem .4rem;
}
.tier-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .8rem 1rem;
    margin: 1rem 0;
}
.b2b-wholesale-note { margin-top: .5rem; }
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: #25D366;
    color: #fff !important;
    font-weight: 700;
    font-size: .92rem;
    padding: .6rem 1.1rem;
    border-radius: 10px;
    text-decoration: none !important;
    margin-top: .6rem;
    transition: background .15s, transform .15s;
    box-shadow: 0 2px 8px rgba(37, 211, 102, .35);
}
.btn-whatsapp:hover {
    background: #1ebe5b;
    color: #fff !important;
    transform: translateY(-1px);
}
.pay-method-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem 0;
    border-bottom: 1px dashed var(--border);
}
.pay-method-row:last-child { border-bottom: none; }

/* ---------- Vlog ---------- */
.vlog-card { padding: 0; overflow: hidden; display: block; color: inherit; transition: transform .32s ease, box-shadow .32s ease; will-change: transform; }
.vlog-card:hover { text-decoration: none; transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 28px rgba(227, 102, 35, .19); z-index: 2; position: relative; }
.vlog-thumb {
    aspect-ratio: 16/9;
    background: #0f172a;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.vlog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vlog-play {
    position: absolute;
    font-size: 2.2rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
    opacity: .9;
}
.vlog-info { padding: .8rem 1rem; }
.vlog-info h3 { font-size: .98rem; }
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; margin: 1.2rem 0; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.vlog-body { line-height: 1.7; margin-top: 1rem; }

/* ---------- CTA band ---------- */
.cta-band { background: #0f172a; color: #fff; padding: 3rem 0; text-align: center; margin-top: 2rem; }
.cta-inner h2 { margin-bottom: .5rem; }
.cta-inner p { color: #cbd5e1; margin-bottom: 1.5rem; }
/* Botón "Crear cuenta gratis": visible y con estilo (naranja de la marca) */
.btn-create-account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent, #E36623);
    color: #fff;
    border: none;
    font-size: 1.05rem;
    font-weight: 700;
    padding: .9rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(227, 102, 35, .4);
    transition: background .15s, transform .05s, box-shadow .15s;
    text-decoration: none;
    cursor: pointer;
}
.btn-create-account:hover {
    background: #c9551a;
    box-shadow: 0 6px 18px rgba(227, 102, 35, .5);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}
.btn-create-account:active { transform: translateY(1px); }

/* ---------- Footer ---------- */
.site-footer { background: #0f172a; color: #94a3b8; margin-top: auto; padding: 2rem 0 1rem; }
/* Suscripción a notificaciones en el footer (botón naranja igual que el resto) */
.footer-newsletter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    flex-wrap: wrap;
    padding: 0 0 1.4rem;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 1.4rem;
}
.footer-newsletter-label {
    font-weight: 800;
    font-size: .95rem;
    color: #fff;
    white-space: nowrap;
}
.footer-newsletter input[type="email"] {
    min-width: 320px;
    padding: .6rem .9rem;
    border: 1px solid #334155;
    border-radius: 10px;
    font-size: .92rem;
    background: #1e293b;
    color: #f1f5f9;
}
.footer-newsletter input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(227, 102, 35, .25);
}
.footer-newsletter-submit {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .6rem 1.3rem;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(227, 102, 35, .3);
    transition: background .15s, transform .05s, box-shadow .15s;
    white-space: nowrap;
}
.footer-newsletter-submit:hover { background: #c9551a; box-shadow: 0 5px 14px rgba(227, 102, 35, .4); color: #fff; text-decoration: none; }
.footer-newsletter-submit:active { transform: translateY(1px); }
/* Texto del botón: largo por defecto (desktop) */
.footer-submit-short { display: none; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 1.2rem; }
.site-footer a { color: #cbd5e1; }
.footer-legal { border-top: 1px solid #1e293b; padding-top: 1rem; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.9rem; }
    .product-detail, .checkout-grid { grid-template-columns: 1fr; }
    .header-inner { justify-content: center; }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; top: auto; }
}

/* ---------- Bienvenida post-login (centrada) ---------- */
.welcome-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55vh;
    padding: 3rem 1rem;
    text-align: center;
}
.welcome-card {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
}
.welcome-eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: .6rem;
}
.welcome-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 .6rem;
}
.welcome-sub {
    font-size: 1.05rem;
    color: var(--muted);
    margin: 0 auto 1.8rem;
    max-width: 480px;
}
.welcome-actions {
    display: flex;
    justify-content: center;
    gap: .9rem;
    flex-wrap: wrap;
    margin-bottom: 1.6rem;
}
.welcome-links {
    display: flex;
    justify-content: center;
    gap: .6rem;
    flex-wrap: wrap;
    font-size: .92rem;
    color: var(--muted);
}
.welcome-links a { color: var(--muted); }
.welcome-links a:hover { color: var(--primary); text-decoration: underline; }
.welcome-links .dot { opacity: .5; }

/* ---------- Editor de avatar (preview + zoom) ---------- */
.avatar-editor { align-items: flex-start; }
.avatar-preview-wrap { flex-shrink: 0; }
.avatar-preview {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}
.avatar-preview img,
.avatar-preview .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: none;
    transform-origin: center center;
    transition: transform .1s;
}
.avatar-xl { width: 140px !important; height: 140px !important; font-size: 3.4rem !important; }
.avatar-zoom { margin-top: .8rem; }
.avatar-zoom label { display: flex; justify-content: space-between; font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }
.avatar-zoom input[type=range] { width: 100%; accent-color: var(--primary); }

/* ---------- Galería de producto (foto izquierda + flechas + zoom hover) ---------- */
.product-detail { grid-template-columns: 1.1fr 1fr; }
.product-gallery { min-width: 0; }
.gallery-main {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: zoom-in;
}
.gallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}
.gallery-img.active { opacity: 1; pointer-events: auto; }
/* zoom al hover: la imagen activa se escala siguiendo el cursor */
.gallery-main.zooming .gallery-img.active {
    transform: scale(2.2);
    transform-origin: var(--zx, 50%) var(--zy, 50%);
    transition: transform .05s;
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.9);
    color: var(--text);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .15s, background .15s;
}
.gallery-main:hover .gallery-nav { opacity: 1; }
.gallery-nav:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.gallery-counter {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: .78rem;
    padding: .15rem .55rem;
    border-radius: 999px;
    z-index: 5;
}
.gallery-thumbs {
    display: flex;
    gap: .6rem;
    margin-top: .7rem;
    flex-wrap: wrap;
}
.gallery-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    opacity: .7;
    transition: opacity .15s, border-color .15s;
}
.gallery-thumb.active { border-color: var(--primary); opacity: 1; }
.gallery-thumb:hover { opacity: 1; }

/* ---------- Vlog: vídeo local MP4 ---------- */
.video-embed video {
    width: 100%;
    max-height: 480px;
    background: #000;
    border-radius: var(--radius);
    display: block;
}

/* ============================================================
   PANEL ADMIN — menú lateral estilo Shopify
   ============================================================ */
.admin-body { margin: 0; background: #f5f6f8; }

.admin-shell { display: flex; min-height: 100vh; }

/* Barra lateral fija a la izquierda */
.admin-sidebar {
    width: 240px;
    flex: 0 0 240px;
    background: #1f2430;          /* gris oscuro como Shopify */
    color: #d9dee9;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-decoration: none;
}
.admin-logo img { height: 30px; width: auto; }
.admin-logo-tag {
    font-weight: 700;
    font-size: .85rem;
    color: #fff;
    background: rgba(255,255,255,.12);
    padding: .15rem .5rem;
    border-radius: 5px;
}

.admin-nav { flex: 1; padding: .7rem .6rem; display: flex; flex-direction: column; gap: 2px; }

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: #c5ccd9;
    text-decoration: none;
    padding: .62rem .8rem;
    border-radius: 8px;
    font-size: .92rem;
    font-weight: 500;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.admin-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav-link.active { background: var(--primary, #E36623); color: #fff; }

.admin-sidebar-bottom { padding: .7rem .6rem; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 2px; }
.admin-sidebar-bottom .admin-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }

/* Zona de contenido */
.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.6rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 5;
}
.admin-page-title { font-size: 1.25rem; margin: 0; }
.admin-user { display: flex; align-items: center; gap: .8rem; }
.admin-user-name { font-weight: 600; color: var(--text); }

.admin-content { padding: 1.6rem; }
.admin-flash { padding: .4rem 1.6rem 0; }

/* Botón pequeño de salida (topbar) */
.btn.btn-sm { font-size: .8rem; padding: .4rem .8rem; }

/* ── Menú hamburguesa del panel admin (solo móvil/tableta) ── */
.admin-topbar-left { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.admin-burger {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .12);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background .15s;
    flex-shrink: 0;
}
.admin-burger:hover { background: #f8fafc; }
.admin-burger .hamburger-bar {
    display: block;
    width: 20px;
    height: 2.6px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .2s ease, opacity .2s ease;
}
body.admin-menu-open .admin-burger .hamburger-bar:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
body.admin-menu-open .admin-burger .hamburger-bar:nth-child(2) { opacity: 0; }
body.admin-menu-open .admin-burger .hamburger-bar:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* Fondo oscuro detrás del menú abierto (móvil) */
.admin-menu-scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    z-index: 55;
}
body.admin-menu-open .admin-menu-scrim { display: block; }

/* ---------- Botones estilo PayPal (grandes y profesionales) ---------- */
.btn-pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    padding: 1rem 1.6rem;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: .2px;
    color: #fff;
    background: linear-gradient(180deg, #f2703b 0%, var(--accent, #E36623) 45%, #c9551a 100%);
    border: none;
    border-radius: 28px;
    box-shadow: 0 6px 18px rgba(227, 102, 35, .35), inset 0 1px 0 rgba(255,255,255,.25);
    cursor: pointer;
    text-align: center;
    transition: transform .1s, box-shadow .15s, filter .15s;
}
.btn-pay:hover {
    filter: brightness(1.06);
    box-shadow: 0 8px 24px rgba(227, 102, 35, .45), inset 0 1px 0 rgba(255,255,255,.25);
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff;
}
.btn-pay:active { transform: translateY(1px) scale(.99); }
.btn-pay svg { flex: 0 0 auto; }

.btn-pay-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .85rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 28px;
    cursor: pointer;
    text-align: center;
    transition: border-color .15s, background .15s, transform .1s;
}
.btn-pay-secondary:hover {
    border-color: var(--accent, #E36623);
    color: var(--accent, #E36623);
    background: #fff8f3;
    text-decoration: none;
    transform: translateY(-1px);
}
.btn-pay-secondary:active { transform: translateY(1px); }

.cart-actions { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.2rem; }

/* ============================================================
   MENÚ HAMBURGUESA MÓVIL (oculto en desktop)
   ============================================================ */
/* Contenedor flotante (arriba derecha): bandera + hamburguesa */
.mobile-top-actions {
    display: none;
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 80;
    align-items: center;
    gap: 8px;
}
/* Banderita de idioma delante de la hamburguesa, siempre visible en móvil */
.mobile-top-actions .lang-switch-mobile {
    display: flex;
}
.mobile-top-actions .lang-switch-mobile .lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .14);
}
.mobile-top-actions .lang-switch-mobile .lang-flag {
    width: 24px;
    height: 17px;
    border-radius: 3px;
}

/* Botón hamburguesa: solo visible en móvil */
.nav-hamburger {
    display: none;
    position: static;
    width: 46px;
    height: 46px;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .14);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background .15s;
}
.nav-hamburger:hover { background: #f8fafc; }
.nav-hamburger .hamburger-bar {
    display: block;
    width: 22px;
    height: 2.6px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .2s ease, opacity .2s ease;
}
body.menu-open .nav-hamburger .hamburger-bar:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
body.menu-open .nav-hamburger .hamburger-bar:nth-child(2) { opacity: 0; }
body.menu-open .nav-hamburger .hamburger-bar:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* Panel móvil deslizante */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 70;
}
.mobile-menu-scrim {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    opacity: 0;
    transition: opacity .22s ease;
}
.mobile-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 88vw);
    background: #fff;
    box-shadow: -12px 0 40px rgba(15, 23, 42, .18);
    transform: translateX(100%);
    transition: transform .26s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.mobile-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.mobile-panel-title { font-weight: 800; font-size: 1.05rem; color: var(--text); }
.mobile-menu-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 10px;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
}
.mobile-panel-body { padding: 1rem 1.2rem 2rem; }
.mobile-nav { display: flex; flex-direction: column; gap: .15rem; }
.mobile-nav a {
    display: block;
    padding: .7rem .7rem;
    border-radius: 9px;
    font-weight: 500;
    color: var(--text);
    font-size: .98rem;
}
.mobile-nav a:hover { background: #f1f5f9; color: var(--primary); text-decoration: none; }
.mobile-menu-sep {
    height: 1px;
    background: var(--border);
    margin: .8rem 0;
}
.mobile-icons {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.mobile-icon-link {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .7rem .7rem;
    border-radius: 9px;
    color: var(--text);
    font-weight: 500;
    font-size: .98rem;
}
.mobile-icon-link .icon { width: 22px; height: 22px; flex-shrink: 0; }
.mobile-icon-link:hover { background: #f1f5f9; color: var(--primary); text-decoration: none; }
.mobile-icon-link.mobile-danger { color: #dc2626; }
.mobile-icon-link.mobile-danger:hover { background: #fef2f2; }
.mobile-account-head {
    font-weight: 700;
    font-size: .9rem;
    color: var(--muted);
    padding: .3rem .7rem .5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: .5rem;
}
.mobile-user-nav a.mobile-danger { color: #dc2626; }
.mobile-user-nav a.mobile-danger:hover { background: #fef2f2; color: #dc2626; }
.mobile-auth-btn { width: 100%; margin-top: .6rem; }
.mobile-lang .lang-flag-mobile { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; }

/* Cuando el menú está abierto */
body.menu-open { overflow: hidden; }
body.menu-open .mobile-menu { display: block; }
body.menu-open .mobile-menu-scrim { opacity: 1; }
body.menu-open .mobile-panel { transform: translateX(0); }

/* ============================================================
   RESPONSIVE — móvil y tableta (contenido flexible, sin scroll lateral)
   ============================================================ */
html, body { overflow-x: hidden; }
img, video, svg { max-width: 100%; height: auto; }

/* ── Tablet y móvil (≤1024px): la barra lateral del admin pasa a ser un menú deslizante ── */
@media (max-width: 1024px) {
    .admin-shell { flex-direction: column; }
    .admin-burger { display: flex; }
    .admin-sidebar {
        width: 264px;
        flex: none;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 60;
        background: #1f2430;
        flex-direction: column;
        align-items: stretch;
        transform: translateX(-100%);
        transition: transform .22s ease;
        overflow-y: auto;
        padding: 0;
        box-shadow: 0 0 30px rgba(0, 0, 0, .25);
    }
    body.admin-menu-open .admin-sidebar { transform: translateX(0); }
    .admin-sidebar .admin-logo { padding: 1rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); border-right: none; }
    .admin-sidebar .admin-nav { flex-direction: column; padding: .7rem .6rem; gap: 2px; }
    .admin-sidebar .admin-sidebar-bottom { flex-direction: column; border-top: 1px solid rgba(255,255,255,.08); border-left: none; margin-left: 0; padding: .7rem .6rem; }
    .admin-nav-link { white-space: nowrap; padding: .62rem .8rem; font-size: .92rem; }
}

/* ── Móvil (≤768px) ── */
@media (max-width: 768px) {
    /* Header: logo + hamburguesa arriba, menú debajo deslizable */
    .header-inner { flex-wrap: wrap; gap: .6rem; padding: .6rem 0; }
    .logo-img { height: 44px; }
    .logo-tagline { font-size: 14px; margin-top: 2px; }
    /* Lema español: mismo ancho que el logo (medido 11.9px=187.08px → target 184.61px) */
    .logo-tagline.logo-tagline-es { font-size: 11.74px; }
    .main-nav {
        order: 3; width: 100%;
        justify-content: flex-start; flex-wrap: nowrap;
        overflow-x: auto; -webkit-overflow-scrolling: touch;
        padding: .3rem 0 .4rem; gap: 1.1rem;
        scrollbar-width: none;
    }
    .main-nav::-webkit-scrollbar { display: none; }
    .header-actions { margin-left: auto; }

    /* Menú hamburguesa en móvil: ocultar iconos sueltos y mostrar bandera + hamburguesa */
    .header-action-desktop, .header-actions .user-menu, .header-actions .lang-switch { display: none !important; }
    .mobile-top-actions { display: flex; }
    .nav-hamburger { display: flex; }

    /* Grids: apilar */
    .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .9rem; }
    /* Valores de la marca en móvil: 2 columnas (2 filas con 4 cuadros) */
    .grid-features { grid-template-columns: 1fr 1fr; gap: .9rem; }
    /* Página Nosotros: flujo de Shenzhen a 1 columna en móvil (no desborda) */
    .shenzhen-grid { grid-template-columns: 1fr; }
    .about-lead { font-size: 1.02rem; }
    .inhouse-note, .commitment-list { max-width: 100%; }
    .about-actions .btn-cart { width: 100%; justify-content: center; }
    .product-detail, .checkout-grid, .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; top: auto; }

    /* Categorías en móvil: acordeón colapsable en columna */
    .category-toggle-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: .8rem 1rem;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: #fff;
        color: var(--text);
        font-weight: 700;
        font-size: .98rem;
        cursor: pointer;
        margin-bottom: .5rem;
    }
    .category-toggle-mobile .category-caret { transition: transform .2s; }
    .shop-sidebar.open .category-toggle-mobile .category-caret { transform: rotate(180deg); }
    .shop-sidebar .category-list-wrap {
        display: none;
        border: 1px solid var(--border);
        border-radius: 10px;
        overflow: hidden;
    }
    .shop-sidebar.open .category-list-wrap { display: block; }
    .category-list { flex-direction: column; gap: 0; }
    .category-list a {
        display: block;
        padding: .7rem 1rem;
        font-size: .92rem;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
    }
    .category-list a:last-child { border-bottom: none; }
    .category-list a.active { border-radius: 0; }

    /* Quitar la Subscripción/Novedades del top de la tienda en móvil (queda solo el footer) */
    .shop-top-actions .newsletter-bar { display: none !important; }

    /* Búsqueda arriba como primera cosa: full width, propia línea */
    .shop-top-actions { flex-direction: column; gap: .7rem; }
    .shop-top-actions .search-form { width: 100%; }
    .shop-top-actions .search-form input { flex: 1 1 auto; min-width: 0; }
    .shop-top-actions .search-form button { flex-shrink: 0; }

    /* Toolbar (ordenar / elegir categoría) más mobile-friendly */
    .shop-toolbar { flex-direction: column; align-items: stretch; gap: .6rem; }
    .toolbar-form { flex-wrap: wrap; gap: .6rem; }
    .toolbar-field { flex: 1 1 100%; }
    .toolbar-field select { width: 100%; }
    .toolbar-arrows { justify-content: space-between; width: 100%; }

    /* Secciones: menos padding */
    .section { padding: 1.4rem 0; }
    .hero { padding: 2.8rem 0; }
    .hero h1 { font-size: 1.7rem; }
    .hero-tagline { font-size: 1.05rem; }
    .hero-newsletter { flex-direction: column; align-items: stretch; }
    .hero-newsletter input[type="email"] { width: 100%; min-width: 0; }
    .hero-newsletter .btn { width: 100%; }

    /* Newsletter del footer en móvil: apilar, campos a su tamaño natural y centrados */
    .footer-newsletter { flex-direction: column; align-items: center; gap: .6rem; }
    .footer-newsletter-label { text-align: center; }
    .footer-newsletter input[type="email"] { width: 296px; max-width: 100%; min-width: 0; }
    .footer-newsletter-submit { width: auto; }
    /* Botón del footer en móvil: solo "Subscribir" */
    .footer-submit-long { display: none; }
    .footer-submit-short { display: inline; }

    /* Tablas: scroll interno (no mueve la página) */
    .cart-table, .mini-table, .admin-products {
        display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .cart-summary { max-width: 100%; }

    /* Producto: galería apilada */
    .product-detail-thumb { min-height: 240px; }
    .gallery-thumbs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; }

    /* Botones de acción: full width en carrito/checkout */
    .btn-pay, .btn-pay-secondary { width: 100%; }

    /* Cuenta: navegación envolvente */
    .account-nav { gap: .4rem; }

    /* Vlog y CTA */
    .cta-band { padding: 2rem 0; }
    .vlog-body { margin-top: .6rem; }

    /* Dropdown del usuario: ancho limitado al viewport */
    .user-dropdown { right: 0; left: auto; min-width: 200px; max-width: 88vw; }

    /* Bienvenida */
    .welcome-title { font-size: 1.8rem; }
    .welcome-hero { padding: 2rem 1rem; }
}

/* ── Móvil pequeño (≤480px) ── */
@media (max-width: 480px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; gap: .7rem; }
    .grid-2 .product-card, .grid-3 .product-card, .grid-4 .product-card { font-size: .9rem; }
    .section-title { font-size: 1.3rem; }
    .lang-switch .lang-flag { width: 20px; height: 14px; }
    .avatar-header, .user-menu .avatar-header, .user-menu .avatar-header.icon { width: 52px !important; height: 52px !important; }
    .user-menu .avatar-header.avatar-admin, .user-menu .avatar-header.icon.avatar-admin { width: 24px !important; height: 24px !important; }
    .admin-content { padding: 1rem; }
    .admin-topbar { padding: .7rem 1rem; }
    .admin-user-name { display: none; }
    .footer-inner { grid-template-columns: 1fr; gap: 1rem; }
}

/* ── Admin: badges de rol y extras ── */
.badge {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.4;
}
.badge-admin {
    background: #183B74;
    color: #fff;
}
.badge-staff {
    background: #E36623;
    color: #fff;
}
.admin-subtitle {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 .8rem;
}
.link-danger {
    background: none;
    border: none;
    color: var(--danger, #dc2626);
    cursor: pointer;
    font-size: .9rem;
    padding: 0;
    text-decoration: none;
}
.link-danger:hover { text-decoration: underline; }
.inline-form { display: inline; }
.nowrap { white-space: nowrap; }

/* ── Admin: interruptor estilo iOS (activar/desactivar producto) ── */
.ios-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 27px;
    padding: 0;
    border: none;
    border-radius: 27px;
    background: #e2e8f0;              /* OFF: gris claro */
    cursor: pointer;
    transition: background .25s ease;
    vertical-align: middle;
    flex-shrink: 0;
}
.ios-switch.on { background: #34c759; } /* ON: verde iOS */
.ios-switch:hover { filter: brightness(.97); }
.ios-switch:active { filter: brightness(.93); }
.ios-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
    transition: transform .25s ease;
}
.ios-switch.on .ios-switch-thumb { transform: translateX(19px); }

/* ── Valoraciones y reseñas (estilo Amazon) ── */
.stars { color: #f59e0b; letter-spacing: 1px; }
.product-rating-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; flex-wrap: wrap; }
.reviews-section { margin-top: 2.5rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.reviews-summary { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1.5rem; }
.reviews-score { text-align: center; min-width: 140px; }
.score-big { font-size: 2.4rem; font-weight: 800; color: var(--text); display: block; line-height: 1; }
.review-form { flex: 1; min-width: 300px; padding: 1.2rem; }
.star-input { display: inline-flex; gap: 2px; }
.star-btn { background: none; border: none; font-size: 1.7rem; color: #d1d5db; cursor: pointer; padding: 0 2px; transition: color .12s, transform .12s; }
.star-btn:hover { transform: scale(1.15); }
.star-btn.active { color: #f59e0b; }
.reviews-list { display: flex; flex-direction: column; gap: 1rem; }
.review-item { border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.2rem; background: var(--card); }
.review-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .4rem; }
.review-head .stars { font-size: .9rem; }
.review-item h4 { margin: .2rem 0; color: var(--text); }
.review-item p { margin: .3rem 0 0; color: var(--text); }

/* Barra de progreso hacia envío gratis (pedido mínimo 20 €, Dorian 20AUG2026) */
.free-ship-progress { max-width: 420px; margin-left: auto; margin-top: 1.2rem; }
.fs-label { font-size: .95rem; margin-bottom: .45rem; }
.fs-label strong { color: var(--accent); }
.fs-bar { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; }
.fs-fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s ease; }
.fs-free { color: #16a34a; font-weight: 600; }
.fs-min { margin-top: .6rem; }

/* Animación al añadir al carrito (badge) */
.icon-badge.badge-pop { animation: badgePop .5s ease; }
@keyframes badgePop {
    0% { transform: scale(1); }
    40% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

/* Efecto corazones TikTok al añadir a favoritos */
.tiktok-heart {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: heartFloat 1.3s ease-out forwards;
    will-change: transform, opacity;
}
@keyframes heartFloat {
    0%   { transform: translate(-50%, -50%) scale(.6); opacity: 0; }
    15%  { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(.9); opacity: 0; }
}

/* ── Móvil: tarjeta de producto con imagen completa y acciones centradas ── */
@media (max-width: 768px) {
    .product-thumb { aspect-ratio: 1/1; }           /* imagen cuadrada, siempre visible */
    .product-thumb img { object-fit: cover; width: 100%; height: 100%; }
    .product-price-row { justify-content: center; gap: .6rem; padding: .5rem .5rem .6rem; }
    .product-price-actions { gap: .35rem; }
    .product-price-actions button[type="submit"].card-icon-btn svg,
    .product-price-actions button.card-icon-btn svg { width: 20px; height: 20px; }
    .product-card-link .product-info h3 { font-size: .92rem; }
}

/* ============================================================
   CARRUSEL "LOS MÁS VENDIDOS" (style.v5)
   Una sola fila, auto-scroll derecha→izquierda, sin desbordar.
   ============================================================ */
.carousel-section { padding: 1.25rem 0 .25rem; }
.carousel-head { margin-bottom: .9rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.carousel-title { font-size: 1.35rem; font-weight: 800; color: var(--primary, #183B74); margin: 0; letter-spacing: .01em; }

/* Flechas manuales: naranja, estiladas (regla global de botones) */
.carousel-nav { display: flex; gap: .5rem; }
.carousel-arrow {
    background: var(--accent, #E36623);
    color: #fff;
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(227, 102, 35, .3);
    transition: background .15s, transform .1s;
    padding: 0;
    flex-shrink: 0;
}
.carousel-arrow:hover { background: #c9551a; transform: translateY(-1px); }
.carousel-arrow:active { transform: translateY(1px); }

/* Viewport: mismo ancho que el contenedor de la página (1140px / 92%),
   no el ancho visible del navegador. Corta lo que sobresale (una sola fila). */
.carousel-viewport {
    width: min(1140px, 92%);
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}
/* Track: fila única con las tarjetas duplicadas (loop infinito).
   El movimiento lo controla JS (1 tarjeta cada 2s, sin parar). */
.carousel-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

/* Tarjeta del carrusel: solo fija el ancho; la ficha interior es la
   MISMA .product-card de la tienda (precio, carrito, favoritos, estrellas).
   margin-right en cada tarjeta (no gap en el track) para que el
   reinicio del loop (-50%) encaje exacto y no haya saltos. */
.carousel-card {
    flex: 0 0 auto;
    width: 235px;
    margin-right: 1.1rem;
    display: flex;
}
.carousel-card .product-card { flex: 1; min-width: 0; }

/* Zoom suave también en las tarjetas normales de la tienda */
.product-thumb img { transition: transform .5s ease; }
.product-card:hover .product-thumb img { transform: scale(1.08); }

/* Móvil: tarjetas más estrechas, misma fila, sin desbordar */
@media (max-width: 768px) {
    .carousel-section { padding: .9rem 0 .1rem; }
    .carousel-title { font-size: 1.1rem; }
    .carousel-card { width: 160px; margin-right: .75rem; }
    .carousel-arrow { width: 36px; height: 36px; font-size: 1.15rem; }
}

/* ---------- Botón Volver en ficha de producto ---------- */
.back-link-wrap { text-align: center; margin-top: 1.4rem; }
.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    background: var(--accent, #E36623);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .7rem 1.8rem;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(227, 102, 35, .35);
    transition: background .15s, transform .05s, box-shadow .15s;
}
.btn-back:hover { background: #c9551a; color: #fff; text-decoration: none; box-shadow: 0 6px 22px rgba(227, 102, 35, .45); }
.btn-back:active { transform: translateY(1px); }

/* ============================================================
   BUSCADOR OVERLAY (lupa del header) — abre al hacer clic en la lupa
   ============================================================ */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 14vh 1rem 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s ease, visibility .25s;
}
.search-overlay.open { visibility: visible; opacity: 1; }
.search-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.search-overlay-panel {
    position: relative;
    width: min(680px, 100%);
    transform: translateY(-18px) scale(.98);
    transition: transform .3s cubic-bezier(.2, .8, .25, 1);
}
.search-overlay.open .search-overlay-panel { transform: translateY(0) scale(1); }
.search-overlay-form {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
    padding: .45rem .5rem .45rem 1rem;
}
.search-overlay-icon { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; display: inline-flex; }
.search-overlay-form input[type="search"] {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 1.15rem;
    padding: .55rem 0;
    background: transparent;
    color: #0f172a;
}
.search-overlay-form input::placeholder { color: #94a3b8; }
.search-overlay-submit {
    background: var(--accent, #E36623);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .65rem 1.3rem;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(227, 102, 35, .3);
    transition: background .15s;
}
.search-overlay-submit:hover { background: #c9551a; }
.search-overlay-close {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
}
.search-overlay-close:hover { background: #e2e8f0; color: #0f172a; }
@media (max-width: 768px) {
    .search-overlay { padding-top: 8vh; }
}

/* Trigger de búsqueda en el panel móvil */
.mobile-search-trigger {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    padding: .8rem 1rem;
    margin-bottom: .6rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: .95rem;
    color: #475569;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.mobile-search-trigger .icon { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.mobile-search-trigger:hover { background: #f1f5f9; border-color: var(--primary); }

/* La lupa del header es un <button> (abre el buscador): anula el estilo
   por defecto del navegador para que se vea IGUAL que los iconos <a>. */
button.icon-link.search-trigger {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

/* ---------- Banner de cookies (GDPR): ventanita flotante (mismo efecto que el buscador) ---------- */
.cookie-banner {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s ease, visibility .25s;
}
.cookie-banner.cookie-banner-show { visibility: visible; opacity: 1; }
.cookie-banner-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.cookie-banner-panel {
    position: relative;
    width: min(480px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 1.8rem 1.6rem 1.5rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .35);
    text-align: center;
    transform: translateY(-18px) scale(.98);
    transition: transform .3s cubic-bezier(.2, .8, .25, 1);
}
.cookie-banner.cookie-banner-show .cookie-banner-panel { transform: translateY(0) scale(1); }
.cookie-banner-icon {
    display: block;
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: .6rem;
}
.cookie-banner-text {
    margin: 0 0 1.1rem;
    font-size: .95rem;
    line-height: 1.55;
    color: #334155;
}
.cookie-banner-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    flex-wrap: wrap;
}
.cookie-banner-actions .btn-cart { padding: .6rem 1.6rem; font-size: .95rem; }
.cookie-decline {
    background: transparent;
    color: #64748b;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    padding: .55rem 1.4rem;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.cookie-decline:hover { border-color: var(--accent, #E36623); color: var(--accent, #E36623); }

/* ---------- Panel de configuración de cookies (interruptores + categorías) ---------- */
.cookie-settings {
    position: relative;
    width: min(520px, 100%);
    max-height: 82vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 1.6rem 1.6rem 1.5rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .35);
    transform: translateY(-18px) scale(.98);
    transition: transform .3s cubic-bezier(.2, .8, .25, 1);
}
.cookie-settings.open { transform: translateY(0) scale(1); }
.cookie-settings-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .4rem;
}
.cookie-settings-header .cookie-banner-icon { font-size: 1.8rem; margin: 0; }
.cookie-settings-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}
.cookie-settings-intro {
    margin: 0 0 1rem;
    font-size: .88rem;
    line-height: 1.5;
    color: #64748b;
}
.cookie-settings-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.2rem; }
.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: .8rem 1rem;
}
.cookie-option-text { flex: 1; display: flex; flex-direction: column; gap: .15rem; }
.cookie-option-text strong { font-size: .95rem; color: #0f172a; }
.cookie-option-text small { font-size: .8rem; line-height: 1.4; color: #64748b; }
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-toggle-knob {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 999px;
    transition: background .2s ease;
}
.cookie-toggle-knob::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: transform .2s ease;
}
.cookie-toggle input:checked + .cookie-toggle-knob { background: var(--accent, #E36623); }
.cookie-toggle input:checked + .cookie-toggle-knob::before { transform: translateX(20px); }
.cookie-toggle.is-on .cookie-toggle-knob { background: var(--accent, #E36623); }
.cookie-toggle.is-on .cookie-toggle-knob::before { transform: translateX(20px); }
.cookie-settings-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    flex-wrap: wrap;
}
.cookie-settings-btn {
    background: transparent;
    color: #334155;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    padding: .55rem 1.4rem;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.cookie-settings-btn:hover { border-color: var(--accent, #E36623); color: var(--accent, #E36623); }
.cookie-banner-actions { display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap; }
@media (max-width: 480px) {
    .cookie-settings { padding: 1.2rem 1rem; }
    .cookie-option { flex-direction: column; align-items: flex-start; gap: .6rem; }
}

/* ---------- Carrusel: arrastre con el ratón (drag & drop) ---------- */
.carousel-track { cursor: grab; }
.carousel-track.carousel-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.carousel-track.carousel-dragging img { pointer-events: none; }

/* ============================================================
   PWA: botón flotante «Instalar app» + modal de instrucciones
   Regla global: botones naranja (#E36623), estilados y profesionales.
   ============================================================ */
.pwa-install-btn {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--accent, #E36623);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .8rem 1.4rem;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(227, 102, 35, .38);
    transition: background .15s, transform .1s, box-shadow .15s;
    animation: pwa-btn-in .35s ease;
}
.pwa-install-btn:hover { background: #c9551a; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(227, 102, 35, .45); }
.pwa-install-btn:active { transform: translateY(1px); }
.pwa-install-btn svg { flex-shrink: 0; }
@keyframes pwa-btn-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal de instrucciones */
.pwa-modal { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.pwa-modal[hidden] { display: none; }
.pwa-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px); }
.pwa-modal-panel {
    position: relative;
    background: #fff;
    border-radius: 14px;
    max-width: 420px;
    width: 100%;
    padding: 1.6rem 1.7rem 1.5rem;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .28);
}
.pwa-modal-close {
    position: absolute;
    top: .65rem;
    right: .75rem;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.pwa-modal-close:hover { background: #e2e8f0; }
.pwa-modal-panel h3 { margin: 0 0 .6rem; font-size: 1.2rem; font-weight: 800; color: var(--primary, #183B74); }
.pwa-modal-intro { margin: 0 0 1rem; font-size: .92rem; color: #475569; }
.pwa-modal-steps { margin: 0 0 1rem; padding-left: 1.3rem; display: grid; gap: .5rem; font-size: .95rem; color: #1e293b; }
.pwa-modal-steps li::marker { color: var(--accent, #E36623); font-weight: 800; }
.pwa-share-icon { font-size: 1.05rem; }
.pwa-modal-note { margin: 0; font-size: .82rem; color: #64748b; background: #f8fafc; border-radius: 8px; padding: .6rem .75rem; }

/* Móvil: botón más compacto para no molestar */
@media (max-width: 640px) {
    .pwa-install-btn { right: .85rem; bottom: .85rem; padding: .7rem 1.1rem; font-size: .88rem; }
}

/* Al abrir el modal, ocultar el botón flotante (evita que se vea tras el backdrop) */
body.pwa-modal-open .pwa-install-btn { display: none; }

/* ============================================================
   CARRUSEL DE BANNERS (landing) — v20260828
   Botones laterales naranjas en desktop; móvil sin flechas (swipe).
   overflow:hidden en el contenedor: nada puede salirse del cuadro.
   ============================================================ */
.banner-carousel {
    position: relative;
    width: min(1140px, 92%);
    margin: 1.5rem auto 1.75rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .08);
    overflow: hidden;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}
.banner-track {
    display: flex;
    transition: transform .65s ease;
    /* SIN overflow/border-radius aquí: crean una capa de recorte que rompe
       el pintado de las diapositivas transformadas (bug real, 28AUG2026).
       El recorte lo hace .banner-carousel (overflow:hidden + border-radius). */
}
.banner-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1280 / 610;   /* altura garantizada: aunque la imagen falle, el cuadro nunca se queda blanco/vacío */
    background: linear-gradient(135deg, #e8eef6 0%, #f8fafc 100%);
    overflow: hidden;
    position: relative;
}
.banner-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Flechas laterales: PEGADAS AL BORDE del carrusel (left/right -1px),
   naranja corporativo al 15% de opacidad = 85% TRANSPARENTES
   (petición Dorian, 28AUG2026 — quiere casi transparentes, no al 85%). */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: rgba(227, 102, 35, .15);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(227, 102, 35, .12);
    transition: background .2s, transform .1s;
    padding: 0;
}
.banner-arrow:hover { background: rgba(201, 85, 26, .3); transform: translateY(-50%) scale(1.06); }
.banner-arrow:active { transform: translateY(-50%) scale(.96); }
.banner-prev { left: -1px; }
.banner-next { right: -1px; }

.banner-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    gap: 8px;
}
.banner-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, .7);
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.banner-dot.active { background: var(--accent, #E36623); transform: scale(1.15); }

@media (max-width: 640px) {
    .banner-arrow { display: none; }   /* móvil: sin flechas, se desliza con el dedo */
    .banner-dots { bottom: 10px; }
}

/* ============================================================
   SECCIÓN "NUESTRA MARCA" v2 — presentación con imágenes (28AUG2026)
   ============================================================ */
.brand-head { text-align: center; max-width: 760px; margin: 0 auto 2.5rem; }
.brand-head h2 { font-size: 1.9rem; font-weight: 800; color: var(--primary, #183B74); margin-bottom: .8rem; }
.brand-intro { color: var(--muted, #64748b); font-size: 1.05rem; line-height: 1.65; }

.brand-features { display: grid; gap: 3rem; }
.brand-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.brand-feature--reverse .brand-feature-media { order: 2; }
.brand-feature-media {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
    background: #fff;
}
.brand-feature-media img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.brand-feature-body h3 { font-size: 1.35rem; font-weight: 800; color: var(--primary, #183B74); margin: 0 0 .6rem; }
.brand-feature-body p { color: var(--muted, #64748b); line-height: 1.7; margin: 0; }

@media (max-width: 768px) {
    .brand-feature { grid-template-columns: 1fr; gap: 1.2rem; }
    .brand-feature--reverse .brand-feature-media { order: 0; }
    .brand-head h2 { font-size: 1.5rem; }
}

/* 28AUG2026: la home lista 9 productos en desktop; en móvil/tablet (≤768px) se muestran 8
   en 2 columnas (4 filas × 2 columnas, rejilla par, sin hueco al final). */
@media (max-width: 768px) {
    .grid-home { grid-template-columns: 1fr 1fr; gap: .7rem; }
    .grid-home > .product-card:nth-child(9) { display: none; }
}

/* 28AUG2026: botón y modal «Instalar app» (PWA) SOLO en móvil — ocultos en desktop/tablet. */
@media (min-width: 769px) {
    .pwa-install-btn, .pwa-modal { display: none !important; }
}

/* 30AUG2026: imagen robot STEM entra completa (3:2, esquinas redondeadas recortan un poco) */
.brand-feature-img-robot { aspect-ratio: 3/2 !important; object-fit: cover; }

/* 30AUG2026: imagen DIY Kits entra completa (1492x1054, esquinas redondeadas recortan un poco) */
.brand-feature-img-diy { object-fit: contain !important; background: #fff; }
