﻿/* ============================================================
   SANITARIOS HIDRO — Sistema de diseño moderno v2
   Paleta institucional:
   Primary:       #0055A4   Primary Dark:  #003B73
   Primary Light: #4A90D9   Accent:        #66B2FF
   Neutral 1:     #F5F7FA   Neutral 2:     #E1E5EB
   Neutral 3:     #A3A9B3   Neutral 4:     #4A4A4A
   Text:          #111111
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --h-primary:     #0055A4;
    --h-primary-dk:  #003B73;
    --h-primary-lt:  #4A90D9;
    --h-accent:      #66B2FF;
    --h-accent-dk:   #3D8FD4;
    --h-accent-lt:   #EAF3FF;
    --h-n0:          #FFFFFF;
    --h-n1:          #F5F7FA;
    --h-n2:          #E1E5EB;
    --h-n3:          #A3A9B3;
    --h-n4:          #4A4A4A;
    --h-text:        #111111;
    --h-warning:     #F59E0B;
    --h-success:     #16A34A;
    --h-radius-sm:   0.375rem;
    --h-radius:      0.75rem;
    --h-radius-lg:   1.25rem;
    --h-shadow-xs:   0 1px 3px rgba(0,85,164,.07);
    --h-shadow-sm:   0 2px 8px rgba(0,85,164,.10);
    --h-shadow:      0 4px 16px rgba(0,85,164,.13);
    --h-shadow-lg:   0 8px 32px rgba(0,85,164,.16);
    --h-pretopbar-h: 44px;
    --h-topbar-h:    58px;
    --h-search-h:    68px;
    --h-header:      calc(var(--h-topbar-h) + var(--h-search-h) + var(--h-pretopbar-h));
    --h-transition:  200ms ease;
}

/* ── Reset / Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 15px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--h-n1);
    color: var(--h-text);
    margin: 0;
    padding-top: var(--h-header);
    line-height: 1.55;
}

/* Google Font Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── PRE-TOPBAR (contacto) ──────────────────────────────────── */
.hidro-pretopbar {
position: fixed;
top: calc(var(--h-topbar-h) + var(--h-search-h)); left: 0; right: 0;
z-index: 1049;
height: var(--h-pretopbar-h);
background: var(--h-n2);
border-top: 1px solid var(--h-n2);
display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 0 1.5rem;
}

.pretopbar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--h-n4);
    transition: color var(--h-transition);
    white-space: nowrap;
}

.pretopbar-item:hover { color: var(--h-primary); }

.pretopbar-item i { font-size: 1rem; }

.pretopbar-item.whatsapp { color: #16a34a; }
.pretopbar-item.whatsapp:hover { color: #15803d; }

.pretopbar-divider {
    width: 1px;
    height: 18px;
    background: var(--h-n3);
    flex-shrink: 0;
}

/* ── TOPBAR ─────────────────────────────────────────────────── */
.hidro-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1051;
    height: var(--h-topbar-h);
    background: var(--h-primary-dk);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
}

.hidro-topbar .brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.hidro-topbar .brand-logo {
height: 46px;
width: auto;
object-fit: contain;
    /* filtro para que el logo se vea bien sobre fondo oscuro,
       solo si el logo tiene partes oscuras que desaparecen —
       quitarlo si el logo ya tiene fondo transparente blanco */
    filter: brightness(0) invert(1);
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: auto;
    flex-wrap: nowrap;
}

.topbar-nav a,
.topbar-nav > button {
    color: rgba(255,255,255,.80);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.35rem 0.7rem;
    border-radius: var(--h-radius-sm);
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color var(--h-transition), background var(--h-transition);
    white-space: nowrap;
}

.topbar-nav a:hover,
.topbar-nav > button:hover {
    color: #fff;
    background: rgba(255,255,255,.13);
}

.topbar-nav .btn-cart {
    background: var(--h-accent);
    color: #fff !important;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: var(--h-radius-sm);
    transition: background var(--h-transition), transform var(--h-transition);
}

.topbar-nav .btn-cart:hover {
    background: var(--h-accent-dk);
    transform: translateY(-1px);
}

.topbar-divider {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,.18);
    flex-shrink: 0;
    margin: 0 0.25rem;
}

.topbar-nav .dropdown-menu {
    min-width: 210px;
    margin-top: 0.4rem;
    border: 1px solid var(--h-n2);
    box-shadow: var(--h-shadow);
    border-radius: var(--h-radius);
}

.topbar-nav .dropdown-menu .dropdown-item {
    color: var(--h-n4);
    font-size: 0.88rem;
    font-weight: 500;
}

.topbar-nav .dropdown-menu .dropdown-item:hover,
.topbar-nav .dropdown-menu .dropdown-item:focus {
    color: var(--h-text);
    background: var(--h-n1);
}

/* ── SEARCHBAR ──────────────────────────────────────────────── */
.hidro-searchbar {
position: fixed;
top: var(--h-topbar-h);
left: 0; right: 0;
    z-index: 1050;
    height: var(--h-search-h);
    background: var(--h-primary);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    box-shadow: 0 3px 12px rgba(0,0,0,.20);
    overflow: visible;
}

.search-form {
    flex: 1;
    max-width: 700px;
    margin: 0 auto;
}

.search-form .input-group {
    border-radius: 0.6rem;
    overflow: visible;
    box-shadow: 0 3px 10px rgba(0,0,0,.25);
}

/* Recorte de bordes redondeados sin overflow:hidden — aplicar border-radius a los hijos */
.search-form .input-group .form-control {
    border-radius: 0.6rem 0 0 0.6rem;
}

.search-form .input-group .btn-search {
    border-radius: 0 0.6rem 0.6rem 0;
}

.search-form .form-control {
    border: none;
    font-size: 0.97rem;
    height: 46px;
    padding: 0 1.1rem;
    background: #fff;
    color: var(--h-text);
}

.search-form .form-control:focus {
    box-shadow: none;
    outline: none;
    background: #fff;
}

.search-form .btn-search {
    background: var(--h-accent);
    border: none;
    color: #fff;
    padding: 0 1.35rem;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background var(--h-transition);
    height: 46px;
}

.search-form .btn-search:hover { background: var(--h-accent-dk); }

/* ── LAYOUT PRINCIPAL ───────────────────────────────────────── */
.hidro-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ── SIDEBAR ────────────────────────────────────────────────── */
.hidro-sidebar {
    flex: 0 0 248px;
    min-width: 0;
    position: sticky;
    top: calc(var(--h-header) + 1rem);
    max-height: calc(100vh - var(--h-header) - 2rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--h-n2) transparent;
}

.hidro-sidebar::-webkit-scrollbar { width: 4px; }
.hidro-sidebar::-webkit-scrollbar-thumb { background: var(--h-n2); border-radius: 2px; }

.sidebar-card {
    background: var(--h-n0);
    border-radius: var(--h-radius);
    box-shadow: var(--h-shadow-sm);
    border: 1px solid var(--h-n2);
    overflow: hidden;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.1rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--h-primary);
    border-bottom: 2px solid var(--h-primary);
    background: var(--h-accent-lt);
}

.cat-list { list-style: none; margin: 0; padding: 0.35rem 0; }

.cat-list > li > .cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--h-n4);
    text-decoration: none;
    transition: background var(--h-transition), color var(--h-transition);
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.cat-list > li > .cat-item:hover { background: var(--h-n1); color: var(--h-primary); }

.cat-list > li > .cat-item.active {
    color: var(--h-primary);
    font-weight: 700;
    background: var(--h-accent-lt);
    border-right: 3px solid var(--h-primary);
}

.cat-item .cat-chevron {
    font-size: 0.68rem;
    transition: transform .2s;
    color: var(--h-n3);
}

.cat-item.open .cat-chevron { transform: rotate(90deg); }

.subcat-list {
    list-style: none;
    margin: 0;
    padding: 0.2rem 0;
    display: none;
    background: var(--h-n1);
    border-top: 1px solid var(--h-n2);
    border-bottom: 1px solid var(--h-n2);
}

.subcat-list.show { display: block; }

.subcat-list a {
    display: block;
    padding: 0.38rem 1.1rem 0.38rem 2.1rem;
    font-size: 0.83rem;
    color: var(--h-n3);
    text-decoration: none;
    transition: color var(--h-transition), background var(--h-transition);
}

.subcat-list a:hover { color: var(--h-primary); background: var(--h-accent-lt); }
.subcat-list a.active { color: var(--h-primary); font-weight: 700; background: var(--h-accent-lt); }

.sidebar-section {
    padding: 0.8rem 1.1rem;
    border-top: 1px solid var(--h-n2);
}

.sidebar-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--h-n3);
    margin-bottom: 0.45rem;
}

/* ── CONTENT AREA ───────────────────────────────────────────── */
.hidro-content { flex: 1; min-width: 0; }

/* ── RESULTS BAR ────────────────────────────────────────────── */
.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.results-count {
    font-size: 0.9rem;
    color: var(--h-n3);
}

.results-count strong { color: var(--h-text); font-weight: 700; }

/* ── PRODUCT GRID ───────────────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

/* ── PRODUCT CARD ───────────────────────────────────────────── */
.product-card {
    background: var(--h-n0);
    border-radius: var(--h-radius);
    border: 1px solid var(--h-n2);
    box-shadow: var(--h-shadow-xs);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow var(--h-transition), transform var(--h-transition), border-color var(--h-transition);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--h-shadow);
    transform: translateY(-4px);
    border-color: var(--h-accent);
}

.card-img-wrap {
    background: var(--h-n1);
    height: 185px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--h-n2);
    position: relative;
}

.card-img-wrap img {
    max-height: 165px;
    max-width: 92%;
    object-fit: contain;
    transition: transform .3s ease;
}

.product-card:hover .card-img-wrap img { transform: scale(1.05); }

.card-img-wrap .no-img {
    color: var(--h-n2);
    font-size: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.card-img-wrap .no-img span {
    font-size: 0.68rem;
    color: var(--h-n3);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-card .card-body {
    padding: 1rem 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.2rem;
}

.card-codigo {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--h-n3);
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--h-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-marca {
    font-size: 0.78rem;
    color: var(--h-primary-lt);
    font-weight: 600;
    margin-top: 0.1rem;
}

.card-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--h-primary);
    margin-top: 0.4rem;
    letter-spacing: -0.3px;
}

.price-currency {
    font-size: 0.82rem;
    vertical-align: super;
    margin-right: 1px;
    font-weight: 600;
}

.card-footer-actions {
    padding: 0 1rem 1rem;
    margin-top: 0.25rem;
}

.btn-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: var(--h-primary);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.6rem;
    width: 100%;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--h-transition), transform var(--h-transition);
    text-decoration: none;
    letter-spacing: 0.1px;
}

.btn-add:hover {
    background: var(--h-primary-dk);
    transform: translateY(-1px);
    color: #fff;
}

.btn-add:active { transform: scale(.98); }

/* Badge destacado */
.badge-destacado {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    background: var(--h-warning);
    color: #fff;
    font-size: 0.67rem;
    font-weight: 800;
    padding: 0.22rem 0.6rem;
    border-radius: 2rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

/* ── PAGINATION ─────────────────────────────────────────────── */
.hidro-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hidro-pagination a,
.hidro-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border-radius: var(--h-radius-sm);
    border: 1px solid var(--h-n2);
    background: var(--h-n0);
    color: var(--h-n4);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--h-transition), border-color var(--h-transition), color var(--h-transition);
    padding: 0 0.5rem;
}

.hidro-pagination a:hover {
    background: var(--h-accent-lt);
    border-color: var(--h-accent);
    color: var(--h-primary);
}

.hidro-pagination span.current {
    background: var(--h-primary);
    border-color: var(--h-primary);
    color: #fff;
    font-weight: 800;
}

.hidro-pagination span.dots {
    border-color: transparent;
    background: transparent;
    color: var(--h-n3);
}

/* ── EMPTY STATE ────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--h-n3);
}

.empty-state i {
    font-size: 4.5rem;
    color: var(--h-n2);
    display: block;
    margin-bottom: 1.25rem;
}

.empty-state h5 { color: var(--h-n4); margin-bottom: 0.5rem; font-weight: 700; font-size: 1.15rem; }

/* ── ACTIVE SEARCH BAR ──────────────────────────────────────── */
.search-active-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--h-accent-lt);
    border: 1px solid var(--h-accent);
    border-radius: var(--h-radius-sm);
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
    color: var(--h-primary);
    font-weight: 500;
}

.search-active-bar .search-tag {
    background: var(--h-primary);
    color: #fff;
    border-radius: 2rem;
    padding: 0.18rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
}

/* ── HERO LANDING ───────────────────────────────────────────── */
.hidro-hero {
    border-radius: var(--h-radius-lg);
    color: #fff;
    padding: 0;
    margin-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
    background-color: var(--h-primary-dk);   /* fallback si la imagen no carga */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay degradado sobre la foto */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 160deg, rgba(0,59,115,.55) 0%, rgba(0,85,164,.45) 45%, rgba(74,144,217,.30) 100% );
    z-index: 1;
}

/* Ruido sutil encima del overlay */
.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 85%, rgba(102,178,255,.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(74,144,217,.14) 0%, transparent 45%);
    pointer-events: none;
}

/* Contenedor de contenido (sobre el overlay) */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 5rem 2rem 4rem;
    width: 100%;
    max-width: 780px;
}

/* Ola decorativa en la base del hero */
.hidro-hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -5%;
    right: -5%;
    height: 80px;
    background: var(--h-n1);
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
}

/* Logo dentro del hero */
.hero-logo-wrap {
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);   /* blanco sobre fondo oscuro */
    drop-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.hidro-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 0.85rem;
    letter-spacing: -0.5px;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.hidro-hero p {
    font-size: 1.1rem;
    opacity: .90;
    margin-bottom: 2.25rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.hero-actions {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-hero-primary {
    background: var(--h-accent);
    color: #fff;
    border: none;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0.6rem;
    text-decoration: none;
    transition: background var(--h-transition), transform var(--h-transition), box-shadow var(--h-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 4px 14px rgba(102,178,255,.45);
}

.btn-hero-primary:hover {
    background: var(--h-accent-dk);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,178,255,.55);
    color: #fff;
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.60);
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.6rem;
    text-decoration: none;
    transition: background var(--h-transition), border-color var(--h-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    backdrop-filter: blur(4px);
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,.15);
    border-color: #fff;
    color: #fff;
}

/* Hero stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.hero-stat .stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--h-primary);
    line-height: 1;
}

.hero-stat .stat-lbl {
    font-size: 0.78rem;
    color: var(--h-n3);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* ── HERO INFO BAR ──────────────────────────────────────────── */
.hero-info-bar {
    background: var(--h-n0);
    border: 1px solid var(--h-n2);
    border-top: none;
    border-radius: 0 0 var(--h-radius-lg) var(--h-radius-lg);
    padding: 1.5rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    box-shadow: var(--h-shadow-sm);
    margin-bottom: 1rem;
}

.hero-info-desc {
    flex: 1;
    min-width: 200px;
    font-size: 0.92rem;
    color: var(--h-n4);
    margin: 0;
    line-height: 1.55;
    border-right: 1px solid var(--h-n2);
    padding-right: 2rem;
}

.hero-contact {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex-shrink: 0;
}

.hero-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--h-radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--h-transition), transform var(--h-transition), box-shadow var(--h-transition);
    white-space: nowrap;
}

.hero-contact-btn.whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37,211,102,.30);
}

.hero-contact-btn.whatsapp:hover {
    background: #1ebe5d;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37,211,102,.40);
}

.hero-contact-btn.telefono {
    background: var(--h-accent-lt);
    color: var(--h-primary);
    border: 1.5px solid var(--h-accent);
}

.hero-contact-btn.telefono:hover {
    background: var(--h-primary);
    color: #fff;
    border-color: var(--h-primary);
    transform: translateY(-1px);
}

/* ── SECTION HEADER ─────────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--h-text);
    margin: 0;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h2 i {
    color: var(--h-primary);
    font-size: 1.2rem;
}

.section-header .see-all {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--h-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color var(--h-transition), gap var(--h-transition);
    white-space: nowrap;
}

.section-header .see-all:hover {
    color: var(--h-primary-lt);
    gap: 0.5rem;
}

/* ── HOME SECTIONS ──────────────────────────────────────────── */
.home-section {
    padding: 3.5rem 0;
    position: relative;
}

.home-section + .home-section {
    border-top: 1px solid var(--h-n2);
}

/* ── HIDROFERTAS ───────────────────────────────────────────── */
.hidrofertas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.1rem;
}

.hidroferta-card {
    display: block;
    width: 100%;
    text-align: left;
    text-decoration: none;
    border: 0;
    padding: 0;
    border: 1px solid var(--h-n2);
    border-radius: var(--h-radius);
    background: #fff;
    box-shadow: var(--h-shadow-xs);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--h-transition), box-shadow var(--h-transition);
}

.hidroferta-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--h-shadow-sm);
}

.hidroferta-thumb {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fff4f1 0%, #ffe3dc 100%);
    border-bottom: 1px solid var(--h-n2);
}

.hidroferta-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hidroferta-body {
    padding: .85rem .9rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
}

.hidroferta-body h6 {
    margin: 0;
    color: var(--h-text);
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hidroferta-body span {
    font-size: .78rem;
    color: var(--h-n3);
}

.hidroferta-body small {
    margin-top: .2rem;
    font-size: .76rem;
    color: var(--h-primary);
    font-weight: 700;
}

.hidroferta-modal-body {
    background: #f7f9fc;
    padding: 1rem;
}

.hidroferta-modal-image {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 0.6rem;
    background: #fff;
}

.hidrofertas-more-wrap {
    margin-top: 1.15rem;
    display: flex;
    justify-content: center;
}

.hidrofertas-more-btn {
    border: 1px solid var(--h-primary);
    background: #fff;
    color: var(--h-primary);
    border-radius: 999px;
    padding: .55rem 1rem;
    font-size: .86rem;
    font-weight: 700;
    transition: all var(--h-transition);
}

.hidrofertas-more-btn:hover {
    background: var(--h-primary);
    color: #fff;
}

.home-section-alt {
    background: var(--h-n0);
    margin: 0 -1.5rem;
    padding: 3.5rem 1.5rem;
}

/* ── CATEGORIES GRID ────────────────────────────────────────── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 1rem;
}

.category-card {
    background: var(--h-n0);
    border: 1px solid var(--h-n2);
    border-radius: var(--h-radius);
    padding: 1.5rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    text-decoration: none;
    color: var(--h-n4);
    transition: all var(--h-transition);
    box-shadow: var(--h-shadow-xs);
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--h-primary);
    background: var(--h-accent-lt);
    color: var(--h-primary);
    transform: translateY(-3px);
    box-shadow: var(--h-shadow-sm);
}

.category-card .cat-icon {
    width: 56px;
    height: 56px;
    background: var(--h-accent-lt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--h-primary);
    transition: background var(--h-transition), color var(--h-transition);
}

.category-card:hover .cat-icon {
    background: var(--h-primary);
    color: #fff;
}

.category-card .cat-name {
    font-size: 0.83rem;
    font-weight: 700;
    line-height: 1.3;
}

.category-card .cat-count {
    font-size: 0.72rem;
    color: var(--h-n3);
    font-weight: 500;
}

.category-card:hover .cat-count { color: var(--h-primary-lt); }

/* ── BRANDS STRIP ───────────────────────────────────────────── */
.brands-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.brand-chip {
    display: inline-flex;
    align-items: center;
    background: var(--h-n0);
    border: 1.5px solid var(--h-n2);
    border-radius: 2rem;
    padding: 0.38rem 1.1rem;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--h-n4);
    box-shadow: var(--h-shadow-xs);
    transition: all var(--h-transition);
    text-decoration: none;
    letter-spacing: 0.1px;
}

.brand-chip:hover {
    border-color: var(--h-primary);
    color: var(--h-primary);
    background: var(--h-accent-lt);
    transform: translateY(-1px);
    box-shadow: var(--h-shadow-sm);
}

/* ── PROMO BANNER ───────────────────────────────────────────── */
.promo-banner {
    background: linear-gradient(135deg, var(--h-primary) 0%, var(--h-primary-lt) 100%);
    border-radius: var(--h-radius-lg);
    padding: 2.5rem 3rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 260px;
    height: 260px;
    background: rgba(255,255,255,.07);
    border-radius: 50%;
    pointer-events: none;
}

.promo-banner::after {
    content: '';
    position: absolute;
    right: 40px;
    bottom: -80px;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
    pointer-events: none;
}

.promo-banner .promo-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    letter-spacing: -0.2px;
}

.promo-banner .promo-text p {
    margin: 0;
    opacity: .85;
    font-size: 0.97rem;
    line-height: 1.5;
}

.promo-banner .promo-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.promo-badge {
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.3);
    border-radius: 0.5rem;
    padding: 0.65rem 1.1rem;
    text-align: center;
    backdrop-filter: blur(4px);
    min-width: 90px;
}

.promo-badge .pb-num {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--h-accent);
}

.promo-badge .pb-lbl {
    font-size: 0.7rem;
    opacity: .8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ── CONTACT + MAP ──────────────────────────────────────────── */
.contact-card {
    background: var(--h-n0);
    border-radius: var(--h-radius);
    border: 1px solid var(--h-n2);
    box-shadow: var(--h-shadow-sm);
    overflow: hidden;
    height: 100%;
}

.contact-card .contact-header {
    padding: 1rem 1.35rem;
    background: var(--h-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-card .contact-body { padding: 1.5rem; }

.contact-card .form-control,
.contact-card .form-select {
    border: 1.5px solid var(--h-n2);
    border-radius: var(--h-radius-sm);
    font-size: 0.9rem;
    transition: border-color var(--h-transition), box-shadow var(--h-transition);
}

.contact-card .form-control:focus {
    border-color: var(--h-primary);
    box-shadow: 0 0 0 3px rgba(0,85,164,.10);
}

/* About section */
.about-block {
    background: var(--h-n0);
    border-radius: var(--h-radius);
    border: 1px solid var(--h-n2);
    box-shadow: var(--h-shadow-sm);
    padding: 2rem;
    height: 100%;
}

.about-block h4 {
    color: var(--h-primary);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.9rem;
    color: var(--h-n4);
}

.about-features li i {
    color: var(--h-primary);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.hidro-footer {
    background: var(--h-primary-dk);
    color: rgba(255,255,255,.65);
    padding: 3rem 1.5rem 1.75rem;
    margin-top: 0;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: 0.75rem;
    display: block;
}

.footer-top {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer-brand i {
    color: var(--h-accent);
    font-size: 1.5rem;
}

.footer-brand .brand-name {
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    margin-left: 0.4rem;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-top: 0.75rem;
    max-width: 320px;
}

.footer-col h6 {
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col ul li a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--h-transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-col ul li a:hover { color: var(--h-accent); }

.footer-bottom {
    max-width: 1440px;
    margin: 1.5rem auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.82rem;
}

.footer-bottom a { color: var(--h-accent); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ── BOOTSTRAP OVERRIDES ────────────────────────────────────── */
.btn-hidro-primary {
    background: var(--h-primary);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: var(--h-radius-sm);
    transition: background var(--h-transition), transform var(--h-transition);
}
.btn-hidro-primary:hover {
    background: var(--h-primary-dk);
    color: #fff;
    transform: translateY(-1px);
}

.btn-hidro-accent {
    background: var(--h-accent);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: var(--h-radius-sm);
}
.btn-hidro-accent:hover { background: var(--h-accent-dk); color: #fff; }

.form-control:focus, .form-select:focus {
    border-color: var(--h-primary);
    box-shadow: 0 0 0 3px rgba(0,85,164,.12);
}

.alert-success {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #065f46;
}

/* ── CUENTA (Login, Registro, CambiarClave) ─────────────────── */
.cuenta-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cuenta-card {
    background: var(--h-n0);
    border-radius: var(--h-radius-lg);
    box-shadow: var(--h-shadow);
    border: 1px solid var(--h-n2);
    overflow: hidden;
    width: 100%;
}

.cuenta-card-header {
    background: var(--h-primary);
    padding: 1.5rem 2rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cuenta-card-header i {
    font-size: 1.5rem;
    color: var(--h-accent);
}

.cuenta-card-header h4 {
    margin: 0;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.1px;
}

.cuenta-card-header p {
    margin: 0;
    font-size: 0.85rem;
    opacity: .78;
}

.cuenta-card-body {
    padding: 2rem;
}

.cuenta-card .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--h-n4);
    margin-bottom: 0.35rem;
}

.cuenta-card .form-control {
    border: 1.5px solid var(--h-n2);
    border-radius: var(--h-radius-sm);
    font-size: 0.92rem;
    padding: 0.65rem 0.9rem;
    color: var(--h-text);
    transition: border-color var(--h-transition), box-shadow var(--h-transition);
}

.cuenta-card .form-control:focus {
    border-color: var(--h-primary);
    box-shadow: 0 0 0 3px rgba(0,85,164,.10);
}

.btn-cuenta {
    background: var(--h-primary);
    color: #fff;
    border: none;
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--h-radius-sm);
    width: 100%;
    transition: background var(--h-transition), transform var(--h-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    letter-spacing: 0.1px;
}

.btn-cuenta:hover {
    background: var(--h-primary-dk);
    transform: translateY(-1px);
}

.cuenta-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    color: var(--h-n3);
    font-size: 0.82rem;
}

.cuenta-divider::before,
.cuenta-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--h-n2);
}

.cuenta-link {
    color: var(--h-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--h-transition);
}

.cuenta-link:hover { color: var(--h-primary-lt); text-decoration: underline; }

/* ── CARRITO PAGE ────────────────────────────────────────────── */
.carrito-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.carrito-page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--h-n2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.carrito-page-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--h-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.carrito-page-header h1 i { color: var(--h-primary); }

.carrito-card {
    background: var(--h-n0);
    border-radius: var(--h-radius);
    border: 1px solid var(--h-n2);
    box-shadow: var(--h-shadow-xs);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.carrito-card-header {
    padding: 0.9rem 1.25rem;
    background: var(--h-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.carrito-card-header i { font-size: 1rem; }

.carrito-card-header.alt {
    background: var(--h-n1);
    color: var(--h-n4);
    border-bottom: 1px solid var(--h-n2);
}

.carrito-card-body { padding: 1.25rem; }

.carrito-card-body .table {
    font-size: 0.875rem;
    margin: 0;
}

.carrito-card-body .table thead th {
    background: var(--h-n1);
    color: var(--h-n4);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--h-n2);
}

.carrito-confirm-btn {
    background: var(--h-success);
    color: #fff;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 800;
    border-radius: var(--h-radius-sm);
    width: 100%;
    transition: background var(--h-transition), transform var(--h-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.2px;
}

.carrito-confirm-btn:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.carrito-confirm-btn.cotizacion {
    background: var(--h-warning);
}

.carrito-confirm-btn.cotizacion:hover { background: #d97706; }

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.hidro-breadcrumb {
    font-size: 0.82rem;
    color: var(--h-n3);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.hidro-breadcrumb a {
    color: var(--h-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--h-transition);
}

.hidro-breadcrumb a:hover { color: var(--h-primary-lt); }

.hidro-breadcrumb i { font-size: 0.65rem; color: var(--h-n2); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 991px) {
:root {
    --h-pretopbar-h: 44px;
    --h-topbar-h: 54px;
    --h-search-h: 60px;
}

    .hidro-layout {
        flex-direction: column;
        padding: 1.25rem 1rem 3rem;
        gap: 1rem;
    }

    .hidro-sidebar {
        flex: none;
        width: 100%;
        position: static;
        max-height: none;
    }

    .sidebar-card { overflow: visible; }

    .sidebar-collapse-btn { display: flex !important; }
    .sidebar-collapsible { display: none; }
    .sidebar-collapsible.show { display: block; }

    .product-grid { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 1rem; }

    .hidro-hero { min-height: 360px; }
    .hero-content { padding: 3rem 1.5rem 2.5rem; }
    .hidro-hero h1 { font-size: 2rem; }
    .hero-logo { height: 60px; }
    .hero-info-bar { padding: 1.25rem 1.25rem; gap: 1.25rem; flex-wrap: wrap; }
    .hero-info-desc { border-right: none; padding-right: 0; border-bottom: 1px solid var(--h-n2); padding-bottom: 1rem; }
    .hero-contact { flex-direction: row; flex-wrap: wrap; }

    .promo-banner { padding: 2rem 1.5rem; }

    .home-section-alt { margin: 0 -1rem; padding: 3rem 1rem; }
}

@media (max-width: 767px) {
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .footer-brand { grid-column: auto; }
    .home-section { padding: 2.5rem 0; }

    .categories-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.75rem; }

    .promo-banner { flex-direction: column; text-align: center; }
    .promo-banner .promo-badges { justify-content: center; }
}

@media (max-width: 575px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .hidro-topbar .brand-logo { height: 34px; }
    .hero-stats { gap: 1.5rem; }
    .hero-logo { height: 50px; }
    .cuenta-card-body { padding: 1.5rem 1.25rem; }
    .carrito-wrap { padding: 1.25rem 0.75rem 3rem; }
    .pretopbar-item span { display: none; }
    .pretopbar-item i { font-size: 1rem; }
    .hidro-pretopbar { gap: 1rem; }
}

/* ── UTILITIES ──────────────────────────────────────────────── */
.text-hidro  { color: var(--h-primary) !important; }
.text-accent { color: var(--h-accent) !important; }
.bg-hidro    { background: var(--h-primary) !important; }
.bg-accent   { background: var(--h-accent) !important; }
.fw-800      { font-weight: 800 !important; }

/* ── LIVE SEARCH PANEL ──────────────────────────────────────── */
.search-live-wrap {
    position: relative;
}

.search-live-panel {
    display: none;
    position: absolute;
    /* top = altura del input (46px) + gap de 6px */
    top: 52px;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: var(--h-radius);
    box-shadow: 0 8px 32px rgba(0,0,0,.22), 0 2px 8px rgba(0,85,164,.12);
    border: 1px solid var(--h-n2);
    z-index: 2050;
    overflow: hidden;
    animation: searchPanelIn .15s ease;
}

.search-live-panel.open {
    display: block;
}

@keyframes searchPanelIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Spinner de puntos animados */
.search-live-spinner {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .9rem 1.1rem;
}

.search-spinner-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--h-accent);
    animation: dotBounce 1s infinite ease-in-out;
    flex-shrink: 0;
}

.search-spinner-dot:nth-child(1) { animation-delay: 0s; }
.search-spinner-dot:nth-child(2) { animation-delay: .18s; }
.search-spinner-dot:nth-child(3) { animation-delay: .36s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(.7); opacity: .5; }
    40%            { transform: scale(1.1); opacity: 1; }
}

/* Lista de resultados */
.search-live-list {
    list-style: none;
    margin: 0;
    padding: .35rem 0;
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--h-n2) transparent;
}

.search-live-list::-webkit-scrollbar { width: 4px; }
.search-live-list::-webkit-scrollbar-thumb { background: var(--h-n2); border-radius: 2px; }

/* Ítem individual */
.search-live-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .6rem 1.1rem;
    cursor: pointer;
    transition: background var(--h-transition);
    border-bottom: 1px solid var(--h-n2);
}

.search-live-item:last-child { border-bottom: none; }

.search-live-item:hover,
.search-live-item.active {
    background: var(--h-accent-lt);
}

.sli-left {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
    flex: 1;
}

.sli-codigo {
    font-family: 'Courier New', monospace;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .4px;
    color: var(--h-n3);
    text-transform: uppercase;
    line-height: 1.2;
}

.sli-desc {
    font-size: .88rem;
    font-weight: 600;
    color: var(--h-text);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sli-marca {
    font-size: .75rem;
    font-weight: 500;
    color: var(--h-primary-lt);
    line-height: 1.2;
}

.sli-precio {
    font-size: 1rem;
    font-weight: 800;
    color: var(--h-primary);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -.3px;
}

/* Highlight de coincidencias */
.search-highlight {
    background: rgba(102,178,255,.30);
    color: var(--h-primary-dk);
    border-radius: 2px;
    padding: 0 1px;
    font-style: normal;
}

/* Estado vacío */
.search-live-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.1rem;
    font-size: .85rem;
    color: var(--h-n3);
    font-weight: 500;
    gap: .4rem;
}

/* Pie del panel */
.search-live-footer {
    border-top: 1px solid var(--h-n2);
    padding: .5rem .8rem;
    background: var(--h-n1);
}

.search-live-footer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--h-primary);
    color: #fff;
    border: none;
    border-radius: var(--h-radius-sm);
    padding: .5rem .9rem;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--h-transition);
    letter-spacing: .1px;
}

.search-live-footer-btn:hover { background: var(--h-primary-dk); }
