/* =========================================================================
   LaVita — capa de marca (Brand Manual 2026)
   Se carga DESPUÉS de los estilos de cada vista: redefine tokens y componentes.
   Azul #0018a8 · Menta #9adcc6 · Coral #f4587a · Tinta #000d6b
   Titulares Nunito 800/900 · Etiquetas IBM Plex Mono en mayúsculas
   Esquinas rectas, sin sombras, líneas de 1 px.
   ========================================================================= */

:root {
    --blue: #0018a8;
    --blue-dk: #00138a;
    --ink: #000d6b;
    --mint: #9adcc6;
    --mint-lt: #e3f5ef;
    --pink: #f4587a;
    --paper: #f5f6fa;
    --line: rgba(0, 24, 168, 0.14);
    --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
    --sans: 'Nunito', -apple-system, 'Segoe UI', sans-serif;

    /* Tokens heredados del tema original, re-mapeados a la marca */
    --primary: #0018a8;
    --primary-dark: #00138a;
    --primary-light: #e3f5ef;
    --secondary: #9adcc6;
    --accent: #f4587a;
    --bg: #ffffff;
    --gray-900: #000d6b;
    --gray-800: #0b1a6e;
    --gray-700: #33407f;
    --gray-600: #5a6493;
    --success: #0f8a63;
    --radius: 0;
    --radius-sm: 0;
    --shadow: none;
    --shadow-md: none;
    --shadow-lg: none;
}

html { -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--sans);
    color: var(--ink);
    background: #fff;
}
h1, h2, h3, h4 { font-family: var(--sans); letter-spacing: -0.02em; color: inherit; }
::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

/* ---------- Utilidades de marca ---------- */
.lv-eyebrow {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.lv-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lv-arrow { color: var(--pink); }

/* ---------- Barra superior ---------- */
.top-bar {
    background: var(--ink);
    color: #fff;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 9px 0;
}
.top-bar i { color: var(--mint); margin-right: 4px; }
.top-bar a { color: #fff; }
.top-bar a:hover { color: var(--mint); }
.top-bar-links { gap: 22px; }
.top-bar .lv-sep { color: var(--pink); margin: 0 10px; }

/* ---------- Cabecera ---------- */
.header { box-shadow: none; border-bottom: 1px solid var(--line); }
.header-main { padding: 18px 0; }
.logo img.lv-logo { height: 30px; width: auto; display: block; }
.search-bar input {
    border: 1px solid var(--blue);
    border-radius: 0;
    background: #fff;
    font-family: var(--sans);
    font-size: 0.95rem;
    padding: 13px 56px 13px 18px;
    color: var(--ink);
}
.search-bar input::placeholder { color: #6a73a3; }
.search-bar input:focus { box-shadow: none; border-color: var(--ink); background: #fff; }
.search-bar button {
    border-radius: 0;
    right: 0;
    top: 0;
    transform: none;
    height: 100%;
    width: 50px;
    background: var(--blue);
}
.search-bar button:hover { background: var(--ink); }
.search-suggestions { border-radius: 0 !important; box-shadow: none !important; border: 1px solid var(--blue) !important; }
.header-action { color: var(--blue); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
.header-action i { font-size: 1.2rem; }
.cart-badge { background: var(--pink) !important; border-radius: 0 !important; }

/* ---------- Navegación ---------- */
.nav-bar { border-top: 1px solid var(--line); border-bottom: 0; }
.nav-link,
.nav-link--pill,
.nav-link--cat {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    background: transparent;
    border-radius: 0;
    padding: 14px 16px;
    border-bottom: 2px solid transparent;
}
.nav-link i { display: none; }
.nav-link--cat { background: var(--blue); color: #fff; }
.nav-link--cat i, .nav-link--cat .arrow i { display: inline-block; color: var(--mint); }
.nav-link--cat:hover { background: var(--ink); color: #fff; }
.nav-link:hover, .nav-link--pill:hover { background: transparent; color: var(--blue); border-bottom-color: var(--pink); }

/* Megamenú */
.mega-menu { border-radius: 0 !important; box-shadow: none !important; border: 1px solid var(--blue) !important; }
.mega-sidebar { background: var(--paper) !important; }
.mega-sidebar-item { font-weight: 700; color: var(--ink) !important; border-radius: 0 !important; }
.mega-sidebar-item.active, .mega-sidebar-item:hover { background: var(--blue) !important; color: #fff !important; }
.mega-subcat-link { border-radius: 0 !important; color: var(--ink) !important; }
.mega-subcat-link:hover { color: var(--blue) !important; background: var(--mint-lt) !important; }
.mega-content-header a, .mega-products-title { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--blue) !important; }
.mega-product-card { border-radius: 0 !important; box-shadow: none !important; border: 1px solid var(--line) !important; }

/* Menú móvil */
.lavita-mob-menu { border-radius: 0 !important; }
.lavita-mob-head img { height: 26px !important; width: auto; }
.lavita-mm__link { font-weight: 700; color: var(--ink) !important; }
.lavita-mm__back, .lavita-mm__viewall { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--blue) !important; }

/* ---------- Secciones y titulares ---------- */
.section { padding: 64px 0; }
.section-header { margin-bottom: 32px; align-items: flex-end; }
.section-title {
    font-family: var(--sans);
    font-weight: 900;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--ink);
}
.section-title i { display: none; }
.section-link, .section-header > a {
    font-family: var(--mono);
    font-size: 0.72rem !important;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue) !important;
}
.breadcrumb { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.breadcrumb a:hover { color: var(--blue); }

/* ---------- Botones ---------- */
.hero-btn,
.btn-add-cart,
.btn {
    border-radius: 0 !important;
    font-family: var(--mono) !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
}
.hero-btn {
    background: var(--mint) !important;
    color: var(--ink) !important;
    padding: 15px 24px !important;
    font-size: 0.75rem !important;
    border: 0;
    box-shadow: none !important;
}
.hero-btn:hover { background: #fff !important; }
.hero-btn i { display: none; }
.hero-btn::after { content: " →"; color: var(--pink); }
.btn-add-cart {
    background: var(--blue);
    color: #fff;
    font-size: 0.68rem;
    padding: 12px;
}
.btn-add-cart i { color: var(--mint); }
.btn-add-cart:hover { background: var(--ink); }
.btn-add-cart.added { background: var(--success); }

/* ---------- Tarjetas de producto ---------- */
.product-grid {
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.product-card {
    border-radius: 0;
    box-shadow: none;
    transition: background .2s;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.product-card:hover { transform: none; box-shadow: none; background: var(--paper); }
.product-card:hover .product-card-img { background: var(--paper); }
.product-card-img { height: 220px; }
.product-card-img img { max-height: 175px; mix-blend-mode: multiply; }
.product-badge {
    background: var(--pink) !important;
    border-radius: 0 !important;
    font-family: var(--mono);
    letter-spacing: 0.08em;
}
.product-badge-offer {
    background: var(--ink) !important;
    color: var(--mint) !important;
    border-radius: 0 !important;
    font-family: var(--mono);
    letter-spacing: 0.14em;
}
.product-brand {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    color: var(--blue);
}
.product-category { font-size: 0.72rem; color: var(--gray-600) !important; }
.product-name { font-weight: 700; color: var(--ink) !important; line-height: 1.3; }
.product-name:hover { color: var(--blue) !important; }
.product-stars i { color: var(--pink) !important; }
.product-price { font-family: var(--sans); font-weight: 900; color: var(--ink) !important; font-size: 1.25rem !important; letter-spacing: -0.02em; }
.product-price-old { color: var(--gray-600) !important; }
.product-discount { background: var(--pink) !important; color: #fff !important; border-radius: 0 !important; font-family: var(--mono); }

/* ---------- Tarjetas de categoría ---------- */
.category-grid { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.category-card {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 16px;
    background: #fff;
    align-items: stretch;
    text-align: left;
}
.category-card:hover { transform: none; box-shadow: none; background: var(--blue); }
.category-card:hover .name { color: #fff; }
.category-card-img { border-radius: 0; margin-bottom: 14px; }
.category-card .name {
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0 14px;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.category-card .name::after { content: " →"; color: var(--pink); }

/* ---------- Barra de ventajas ---------- */
.benefits-bar { background: var(--blue) !important; color: #fff; border: 0 !important; }
.benefit-item {
    color: #fff !important;
    font-family: var(--mono);
    font-size: 0.7rem !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.benefit-item i { color: var(--mint) !important; }

/* ---------- Héroe de marca (portada) ---------- */
.lv-hero {
    position: relative;
    overflow: hidden;
    background: var(--blue);
    color: #fff;
    padding: 96px 0 0;
}
.lv-hero .container { position: relative; z-index: 1; }
.lv-hero .lv-eyebrow { color: var(--mint); }
.lv-hero h1 {
    font-weight: 900;
    font-size: clamp(2.6rem, 7vw, 6.2rem);
    line-height: 0.9;
    letter-spacing: -0.045em;
    max-width: 13ch;
    margin-bottom: 24px;
}
.lv-hero h1 .m { color: var(--mint); }
.lv-hero h1 .p { color: var(--pink); }
.lv-hero p.lead { font-size: 1.15rem; max-width: 46ch; color: #dfe4ff; margin-bottom: 32px; }
.lv-hero .lv-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 72px; }
.lv-btn-ghost {
    display: inline-flex; align-items: center;
    padding: 15px 24px;
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
    font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
}
.lv-btn-ghost::after { content: " →"; color: var(--pink); margin-left: 6px; }
.lv-btn-ghost:hover { background: #fff; color: var(--blue); }
.lv-ghost-mark {
    position: absolute;
    right: -6%;
    top: 8%;
    width: min(46vw, 620px);
    color: rgba(154, 220, 198, 0.10);
    pointer-events: none;
}
.lv-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(154, 220, 198, 0.22);
    border-top: 1px solid rgba(154, 220, 198, 0.22);
}
.lv-fact { background: var(--blue); padding: 26px 22px 30px 0; }
.lv-fact + .lv-fact { padding-left: 22px; }
.lv-fact b { display: block; font-weight: 900; font-size: 2.1rem; letter-spacing: -0.04em; line-height: 1; }
.lv-fact span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint); }

/* ---------- Índice numerado ---------- */
.lv-index {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.lv-index a {
    background: #fff;
    padding: 26px 22px 30px;
    min-height: 150px;
    display: flex; flex-direction: column; justify-content: space-between;
    transition: background .2s, color .2s;
}
.lv-index a small { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--blue); }
.lv-index a strong { font-weight: 900; font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1.05; color: var(--ink); }
.lv-index a strong::after { content: " →"; color: var(--pink); }
.lv-index a:hover { background: var(--blue); }
.lv-index a:hover small { color: var(--mint); }
.lv-index a:hover strong { color: #fff; }

/* ---------- Bandas ---------- */
.lv-band-blue { background: var(--blue); color: #fff; }
.lv-band-ink  { background: var(--ink); color: #fff; }
.lv-band-mint { background: var(--mint); color: var(--ink); }
.lv-band-paper { background: var(--paper); }
.lv-band-blue .section-title, .lv-band-ink .section-title { color: #fff; }
.lv-band-blue .lv-eyebrow, .lv-band-ink .lv-eyebrow { color: var(--mint); }
.lv-eyebrow-blue { color: var(--blue); }

.lv-quote {
    font-weight: 900;
    font-size: clamp(1.9rem, 4.4vw, 3.6rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    max-width: 18ch;
}
.lv-quote .m { color: var(--mint); }
.lv-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: end; }
.lv-list { list-style: none; border-top: 1px solid rgba(154,220,198,0.3); }
.lv-list li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(154,220,198,0.3);
    font-size: 1rem;
    display: flex; gap: 12px;
}
.lv-list li::before { content: "→"; color: var(--pink); }
.lv-list a { color: #fff; text-decoration: underline; text-decoration-color: var(--mint); text-underline-offset: 4px; }

/* ---------- Carrito / checkout / formularios ---------- */
.cart-item, .cart-summary, .cart-grid > div, .checkout-card, .sidebar-block, .cat-sidebar {
    border-radius: 0 !important;
    box-shadow: none !important;
}
.cart-item, .cart-summary, .sidebar-block, .cat-sidebar { border: 1px solid var(--line) !important; }
.cat-sidebar-title { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem !important; color: var(--blue) !important; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
    border-radius: 0 !important;
    font-family: var(--sans);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, select:focus, textarea:focus {
    border-color: var(--blue) !important;
    box-shadow: none !important;
}
.subcategory-pills a, .subcategory-pills span { border-radius: 0 !important; }
.pagination-wrap a, .pagination-wrap span { border-radius: 0 !important; }
.toast { border-radius: 0 !important; background: var(--ink) !important; font-family: var(--mono); letter-spacing: 0.06em; }
.product-detail-grid { gap: 48px; }
.product-main-image { border-radius: 0 !important; border: 1px solid var(--line); box-shadow: none !important; }
.product-detail-grid h1 { font-weight: 900; letter-spacing: -0.035em; line-height: 1; }
.product-price-main { font-weight: 900 !important; color: var(--ink) !important; letter-spacing: -0.03em; }

/* ---------- Pie ---------- */
.footer {
    background: var(--blue) !important;
    color: #dfe4ff;
    position: relative;
    overflow: hidden;
    padding-top: 72px;
}
.footer .container { position: relative; z-index: 1; }
.footer h4 {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mint) !important;
}
.footer p, .footer-links li, .footer-links a { color: #dfe4ff !important; }
.footer-links a:hover { color: #fff !important; text-decoration: underline; text-decoration-color: var(--pink); }
.footer-links i { color: var(--mint); width: 18px; }
.footer-bottom {
    border-top: 1px solid rgba(154,220,198,0.25) !important;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b9c2f5 !important;
}
.footer .lv-claim { font-weight: 900; font-size: 1.7rem; line-height: 1; letter-spacing: -0.04em; color: #fff; margin: 18px 0 14px; }
.footer .lv-claim .m { color: var(--mint); }
.footer .lv-legal { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; line-height: 1.7; color: #b9c2f5; }
.footer .lv-ghost-mark { right: -4%; top: auto; bottom: -18%; width: min(40vw, 520px); color: rgba(154,220,198,0.08); }

/* ---------- Horarios ---------- */
.lv-hours { list-style: none; border-top: 1px solid var(--line); margin: 0; padding: 0; }
.lv-hours li { display: grid; grid-template-columns: 1fr; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; line-height: 1.45; }
.lv-hours strong { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); padding-top: 2px; }
.lv-hours a { color: var(--blue); font-weight: 700; }
.footer .lv-hours { border-top-color: rgba(154,220,198,0.25); }
.footer .lv-hours li { grid-template-columns: 1fr; gap: 2px; border-bottom-color: rgba(154,220,198,0.25); color: #dfe4ff; font-size: 0.82rem; padding: 9px 0; }
.footer .lv-hours strong { color: var(--mint); font-size: 0.64rem; }
.footer .lv-hours a { color: #fff; }

/* ---------- Aviso de cookies ---------- */
.lv-consent[hidden] { display: none; }
.lv-consent {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100000;
    max-width: 760px; margin: 0 auto;
    background: var(--ink); color: #fff;
    border: 1px solid var(--mint);
}
.lv-consent__inner { display: flex; gap: 20px; align-items: center; padding: 18px 20px; }
.lv-consent p { font-size: 0.86rem; line-height: 1.5; margin: 0; }
.lv-consent a { color: var(--mint); text-decoration: underline; }
.lv-consent__actions { display: flex; gap: 8px; flex-shrink: 0; }
.lv-consent__btn {
    font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 12px 18px; border: 1px solid #fff; background: transparent; color: #fff; cursor: pointer; border-radius: 0;
}
.lv-consent__btn--primary { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.lv-consent__btn:hover { background: #fff; color: var(--ink); }
@media (max-width: 640px) {
    .lv-consent__inner { flex-direction: column; align-items: stretch; }
    .lv-consent__actions .lv-consent__btn { flex: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .lv-index { grid-template-columns: repeat(2, 1fr); }
    .lv-split { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
    .section { padding: 44px 0; }
    .lv-hero { padding-top: 56px; }
    .lv-hero .lv-actions { margin-bottom: 44px; }
    .lv-facts { grid-template-columns: repeat(2, 1fr); }
    .lv-fact, .lv-fact + .lv-fact { padding: 20px 14px 22px; }
    .lv-fact b { font-size: 1.6rem; }
    .logo img.lv-logo { height: 22px; }
    .top-bar { font-size: 0.6rem; letter-spacing: 0.08em; }
    .top-bar .lv-hide-m { display: none; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-card-img { height: 170px; }
    .product-card-img img { max-height: 135px; }
    .lv-index a { min-height: 120px; padding: 20px 16px; }
    .lv-index a strong { font-size: 1.1rem; }
}
