/**
 * style.css - Estilos principales del catálogo de muebles
 * Mobile first, colores #2C3794 (principal) y rojo (secundario).
 */

:root {
    --color-primary: #2C3794;
    --color-primary-dark: #1e2668;
    --color-primary-light: #3d4db8;
    --color-secondary: #dc2626;
    --color-secondary-dark: #b91c1c;
    --color-whatsapp: #25d366;
    --color-bg: #f0f2fa;
    --color-surface: #ffffff;
    --color-text: #1a1a2e;
    --color-text-muted: #6b7280;
    --color-border: #e2e6f0;
    --shadow-sm: 0 2px 8px rgba(44, 55, 148, 0.07);
    --shadow-md: 0 8px 30px rgba(44, 55, 148, 0.12);
    --shadow-lg: 0 16px 48px rgba(44, 55, 148, 0.18);
    --shadow-card: 0 4px 24px rgba(44, 55, 148, 0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 72px;
    --bottom-nav-height: 64px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
    font-family: var(--font);
    background: var(--color-bg);
    background-image:
        radial-gradient(ellipse at 10% 0%, rgba(44, 55, 148, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 100%, rgba(220, 38, 38, 0.04) 0%, transparent 50%);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: calc(var(--bottom-nav-height) + 16px);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-secondary); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.desktop-only { display: none !important; }
.mobile-only { display: flex !important; }

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 16px rgba(44, 55, 148, 0.06);
    overflow: visible;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    pointer-events: none;
}

.site-header.search-open {
    box-shadow: var(--shadow-lg);
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo search menu";
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    min-height: var(--header-height);
}

.site-header__logo {
    grid-area: logo;
    flex-shrink: 0;
}

.site-header__logo-img {
    height: 44px;
    width: auto;
    display: block;
}

.site-header__search-area {
    grid-area: search;
    min-width: 0;
    overflow: visible;
    position: relative;
    z-index: 10;
}

.site-header__actions {
    grid-area: actions;
    display: none;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.site-header__menu-btn {
    grid-area: menu;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    justify-self: end;
}

/* Barra de búsqueda unificada */
.search-form { width: 100%; overflow: visible; }

.search-bar {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 50px;
    overflow: visible;
    box-shadow: 0 2px 12px rgba(44, 55, 148, 0.06);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-bar:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(44, 55, 148, 0.1), 0 4px 20px rgba(44, 55, 148, 0.1);
}

.search-bar__category {
    display: none;
    flex-shrink: 0;
    border: none;
    background: transparent;
    padding: 12px 8px 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    max-width: 150px;
    outline: none;
    font-family: inherit;
}

.search-bar__divider {
    width: 1px;
    height: 28px;
    background: var(--color-border);
    flex-shrink: 0;
}

.search-bar__field {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    min-width: 0;
    overflow: visible;
}

.search-bar__icon {
    display: none;
    flex-shrink: 0;
    margin-left: 16px;
    color: var(--color-text-muted);
}

.search-form__input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 11px 44px 11px 14px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-family: inherit;
    color: var(--color-text);
    outline: none;
}

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

.search-form__btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
    flex-shrink: 0;
}

.search-form__btn:hover {
    background: linear-gradient(135deg, var(--color-secondary), #ef4444);
    transform: translateY(-50%) scale(1.05);
}

/* Enlaces del header */
.header-link {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    border-radius: 50px;
    transition: all var(--transition);
    white-space: nowrap;
}

.header-link:hover {
    color: var(--color-primary);
    background: rgba(44, 55, 148, 0.06);
}

.header-link.is-active {
    color: var(--color-primary);
    background: rgba(44, 55, 148, 0.08);
}

.header-link--cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white !important;
    box-shadow: 0 4px 12px rgba(44, 55, 148, 0.25);
}

.header-link--cta:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: white !important;
    transform: translateY(-1px);
}

.header-link--cta.is-active {
    background: linear-gradient(135deg, var(--color-secondary), #ef4444);
    color: white !important;
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 360px;
    overflow-y: auto;
    z-index: 9999;
    border: 1px solid var(--color-border);
    animation: searchDropIn 0.2s ease;
}

/* Móvil: buscador en una sola fila, categoría en menú lateral */
@media (max-width: 1023px) {
    .search-bar__category {
        display: none;
    }
}

.search-results[hidden] { display: none !important; }
.search-results.is-visible { display: block !important; }

@keyframes searchDropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-results__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition);
    color: var(--color-text);
}

.search-results__item:last-child { border-bottom: none; }
.search-results__item:hover { background: linear-gradient(90deg, rgba(44,55,148,0.06), transparent); color: var(--color-primary); }
.search-results__item img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; border: 2px solid var(--color-border); }
.search-results__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.search-results__text strong { font-size: 14px; line-height: 1.3; }
.search-results__text span { font-size: 12px; color: var(--color-secondary); font-weight: 600; }
.search-results__empty, .search-results__loading { padding: 20px; text-align: center; color: var(--color-text-muted); font-size: 14px; }

.site-header__menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 300; }
.mobile-menu__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.mobile-menu__panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: var(--color-surface);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
}

.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__close { align-self: flex-end; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--color-primary); }
.mobile-menu__panel a { padding: 10px 0; font-weight: 500; color: var(--color-text); border-bottom: 1px solid var(--color-border); }
.mobile-menu__label { font-size: 12px; text-transform: uppercase; color: var(--color-text-muted); letter-spacing: 1px; margin-top: 8px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    letter-spacing: 0.02em;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(44, 55, 148, 0.35);
}
.btn--primary:hover { background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%); color: white; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(44, 55, 148, 0.4); }

.btn--secondary { background: linear-gradient(135deg, var(--color-secondary) 0%, #ef4444 100%); color: white; box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3); }
.btn--secondary:hover { background: var(--color-secondary-dark); color: white; transform: translateY(-2px); }

.btn--whatsapp { background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); color: white; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35); }
.btn--whatsapp:hover { background: linear-gradient(135deg, #1da851 0%, #0d7a6e 100%); color: white; transform: translateY(-2px); }

.btn--outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: white; transform: translateY(-2px); }

.btn--sm { padding: 9px 16px; font-size: 13px; flex: 1; min-width: 0; }
.btn--lg { padding: 14px 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* ===== HERO SLIDER ===== */
.hero-slider { margin-bottom: 0; position: relative; z-index: 1; }

.carousel { position: relative; overflow: hidden; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.carousel__track { position: relative; }
.carousel__slide {
    display: none;
    animation: fadeIn 0.5s ease;
}
.carousel__slide.is-active { display: block; }
.carousel__slide img { width: 100%; height: 220px; object-fit: cover; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: var(--color-primary);
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 2;
}
.carousel__btn:hover { background: var(--color-primary); color: white; }
.carousel__btn--prev { left: 12px; }
.carousel__btn--next { right: 12px; }

.carousel__dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}
.carousel__dot.is-active { background: white; width: 24px; border-radius: 4px; }

/* ===== BENEFITS ===== */
.benefits {
    padding: 28px 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.benefits__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.benefits__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 16px 12px;
    border-radius: var(--radius);
    background: linear-gradient(145deg, #f8f9ff 0%, #fff 100%);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.benefits__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.benefits__item img { width: 44px; height: 44px; }

/* ===== SECTIONS ===== */
.section { padding: 40px 0; position: relative; }
.section--featured {
    background: linear-gradient(180deg, var(--color-surface) 0%, #f5f7fc 100%);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.section__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; gap: 16px; }
.section__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-primary);
    position: relative;
    padding-bottom: 12px;
}
.section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

/* ===== CATEGORIES CAROUSEL ===== */
.carousel-horizontal { overflow: hidden; }
.categories-carousel__track,
.products-carousel__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.categories-carousel__track::-webkit-scrollbar,
.products-carousel__track::-webkit-scrollbar { display: none; }

.category-card {
    flex: 0 0 150px;
    scroll-snap-align: start;
    text-align: center;
    transition: transform var(--transition);
}
.category-card:hover { transform: translateY(-6px) scale(1.02); }
.category-card__image {
    width: 150px;
    height: 150px;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-secondary) 100%);
    box-shadow: var(--shadow-card);
    margin-bottom: 12px;
    position: relative;
}
.category-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 38, 104, 0.5) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
}
.category-card:hover .category-card__image::after { opacity: 1; }
.category-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.category-card:hover .category-card__image img { transform: scale(1.08); }
.category-card__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
    background: var(--color-surface);
    padding: 6px 12px;
    border-radius: 50px;
    display: inline-block;
    box-shadow: var(--shadow-sm);
}

.products-carousel__item { flex: 0 0 280px; scroll-snap-align: start; display: flex; }
.products-carousel__item .product-card { width: 100%; }

/* ===== PRODUCT CARDS ===== */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(44, 55, 148, 0.06);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: opacity var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(44, 55, 148, 0.12);
}
.product-card:hover::before { opacity: 1; }

.product-card__image-link {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(160deg, #fafbff 0%, #f0f2fa 100%);
    padding: 12px;
}
.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition);
}
.product-card:hover .product-card__image { transform: scale(1.06); }

.product-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__category {
    font-size: 11px;
    color: var(--color-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.product-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 8px 0 0;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__title a { color: var(--color-text); }
.product-card__title a:hover { color: var(--color-primary); }

.product-card__actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    margin-top: auto;
    padding-top: 16px;
}

/* ===== PROMO BANNER ===== */
.promo-banner { padding: 32px 0; }
.promo-banner__inner {
    border-radius: var(--radius-lg);
    padding: 48px 28px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.promo-banner__inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(44,55,148,0.88) 0%, rgba(220,38,38,0.55) 100%);
}
.promo-banner__inner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.promo-banner__title, .promo-banner__subtitle { position: relative; z-index: 1; }
.promo-banner__title { font-size: 1.75rem; font-weight: 800; margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.promo-banner__subtitle { opacity: 0.95; font-size: 1.05rem; }

/* ===== PRODUCT DETAIL ===== */
.breadcrumb { font-size: 13px; color: var(--color-text-muted); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a { color: var(--color-primary); }

.product-detail__grid { display: grid; gap: 24px; }
.product-detail__main-image {
    background: transparent;
    border-radius: var(--radius);
    padding: 0;
    box-shadow: none;
}

.product-detail__image-frame {
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-light) 45%, var(--color-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.product-detail__image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.product-detail__image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.15));
}

.product-detail__thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.product-detail__thumb {
    flex: 0 0 64px;
    height: 64px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: white;
    padding: 0;
    transition: border-color var(--transition);
}
.product-detail__thumb.is-active, .product-detail__thumb:hover { border-color: var(--color-primary); }
.product-detail__thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-detail__category { color: var(--color-secondary); font-weight: 600; font-size: 13px; text-transform: uppercase; }
.product-detail__title { font-size: 1.75rem; margin: 8px 0 16px; color: var(--color-primary); }
.product-detail__color { margin-bottom: 16px; }
.product-detail__description { margin-bottom: 24px; }
.product-detail__description h2 { font-size: 1rem; margin-bottom: 8px; }
.product-detail__actions { display: flex; flex-direction: column; gap: 12px; }

/* ===== CATEGORY PAGE ===== */
.category-page__header { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.category-page__image { width: 100%; max-width: 200px; border-radius: var(--radius); }
.category-page__desc { color: var(--color-text-muted); }

/* ===== CONTACT ===== */
.contact-page__grid { display: grid; gap: 24px; }
.contact-card {
    background: var(--color-surface);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}
.contact-card h2 { font-size: 14px; color: var(--color-primary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }

.contact-page__form-wrap {
    background: var(--color-surface);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.contact-page__hint { color: var(--color-text-muted); font-size: 14px; margin-bottom: 20px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.empty-state { text-align: center; padding: 40px; color: var(--color-text-muted); }

/* ===== FOOTER (solo desktop) ===== */
.desktop-footer { display: none; }

.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.9);
    padding: 32px 0 0;
    margin-top: 32px;
}
.site-footer a { color: white; }
.site-footer a:hover { color: var(--color-secondary); }

.site-footer__logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.12);
}

.site-footer__logo {
    height: 56px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.site-footer__inner { display: grid; gap: 24px; padding-bottom: 24px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px; text-align: center; font-size: 13px; opacity: 0.7; }

/* ===== BOTTOM NAV (MOBILE APP) ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -6px 30px rgba(44, 55, 148, 0.12);
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    font-size: 10px;
    font-weight: 500;
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition);
    font-family: inherit;
}
.bottom-nav__item svg { width: 22px; height: 22px; }
.bottom-nav__item.is-active { color: var(--color-primary); font-weight: 700; }
.bottom-nav__item.is-active svg { stroke-width: 2.5; }
.bottom-nav__item--whatsapp { color: var(--color-whatsapp) !important; }

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== TIENDA ===== */
.tienda-page__count {
    font-size: 14px;
    color: var(--color-text-muted);
    background: var(--color-surface);
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid var(--color-border);
}

.tienda-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.tienda-filter {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    transition: all var(--transition);
}

.tienda-filter:hover { border-color: var(--color-primary); color: var(--color-primary); }
.tienda-filter.is-active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(44, 55, 148, 0.3);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--color-whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    z-index: 90;
    transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }
.whatsapp-float svg { width: 32px; height: 32px; }

/* ===== CAROUSEL NAV ===== */
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav__btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    background: transparent;
    color: var(--color-primary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}
.carousel-nav__btn:hover { background: var(--color-primary); color: white; }

/* ===== TABLET ===== */
@media (min-width: 640px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits__grid { grid-template-columns: repeat(4, 1fr); }
    .carousel__slide img { height: 320px; }
    body { padding-bottom: 0; }
    .bottom-nav { display: none !important; }
    .desktop-footer { display: block; }
}

/* ===== DESKTOP ===== */
@media (min-width: 1024px) {
    .desktop-only { display: flex !important; }
    .mobile-only { display: none !important; }

    .site-header__inner {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "logo search actions";
        gap: 16px 28px;
        padding: 12px 0;
    }

    .site-header__logo-img { height: 54px; }

    .site-header__actions {
        display: flex;
    }

    .search-bar__category {
        display: block;
        padding: 14px 4px 14px 20px;
        font-size: 14px;
        max-width: 165px;
    }

    .search-bar__icon {
        display: block;
    }

    .search-form__input {
        padding: 14px 52px 14px 10px;
        font-size: 15px;
    }

    .search-form__btn {
        width: 40px;
        height: 40px;
        right: 5px;
    }

    .search-bar {
        min-height: 52px;
    }

    .carousel__slide img { height: 480px; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .products-carousel__item { flex: 0 0 300px; }
    .category-card { flex: 0 0 170px; }
    .category-card__image { width: 170px; height: 170px; }

    .product-detail__grid { grid-template-columns: 1fr 1fr; align-items: start; }
    .contact-page__grid { grid-template-columns: 1fr 1.2fr; }
    .site-footer__inner { grid-template-columns: 1fr 1fr; align-items: center; }
    .site-footer__credit { text-align: right; }

    .section { padding: 56px 0; }
    .section__title { font-size: 2rem; }
}

@media (min-width: 1280px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); }
}
