/* css/b2c-home.css — Home B2C estilo turismo (burgundy / Poppins / Lato) */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@500;600;700;800&display=swap');

:root {
    --b2c-burgundy: #7a1f2e;
    --b2c-burgundy-deep: #4a0f18;
    --b2c-ink: #0c0a09;
    --b2c-muted: #71717a;
    --b2c-paper: #ffffff;
    --b2c-mist: #fafafa;
    --font-title: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

body.b2c-home {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--b2c-ink);
    background: var(--b2c-paper);
    text-align: left;
}

/* —— Header transparente sobre hero —— */
.b2c-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 100%);
}

.b2c-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.b2c-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.b2c-logo img {
    height: 36px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: none;
}

.b2c-logo img.is-on {
    display: block !important;
    visibility: visible !important;
}
.b2c-logo.has-logo .brand-text { display: none !important; }
.b2c-logo .brand-text span { color: #fca5a5; }

.b2c-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
}

.b2c-nav > a,
.b2c-nav .nav-drop > button {
    background: none;
    border: none;
    color: #fff;
    font-family: var(--font-title);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 14px;
    cursor: pointer;
    opacity: 0.92;
    transition: opacity 0.2s;
}

.b2c-nav > a:hover,
.b2c-nav .nav-drop > button:hover { opacity: 1; }

.b2c-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-burger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 10px;
    background: rgba(0,0,0,0.25);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.nav-burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: #000;
    opacity: 0.72;
}
.nav-backdrop.is-open {
    display: block;
}

body.nav-open .b2c-header {
    z-index: 60;
}
body.nav-open .b2c-header-actions {
    position: relative;
    z-index: 70;
}

.nav-drop { position: relative; }

.nav-drop-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
    padding: 8px;
    z-index: 200;
}

.nav-drop.open .nav-drop-menu { display: block; }

.nav-drop-menu a {
    display: block;
    padding: 10px 12px;
    color: var(--b2c-ink);
    text-decoration: none;
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
}

.nav-drop-menu a:hover {
    background: #f4f4f5;
    color: var(--b2c-burgundy);
}

.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff !important;
    text-decoration: none;
    padding: 0;
    border-radius: 999px;
    white-space: nowrap;
    transition: transform 0.15s, opacity 0.2s;
    line-height: 0;
}
.btn-wa-icon img {
    width: 36px;
    height: 36px;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}
.btn-wa:hover { transform: scale(1.06); opacity: 0.95; }

@media (max-width: 860px) {
    .b2c-header-inner {
        flex-wrap: nowrap;
    }
    .nav-burger { display: inline-flex; }
    .b2c-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 88vw);
        z-index: 65;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 0;
        padding: 72px 18px 24px;
        background: #0c0a09;
        box-shadow: -8px 0 32px rgba(0,0,0,0.45);
        overflow-y: auto;
        order: unset;
        pointer-events: auto;
    }
    .b2c-nav.is-open { display: flex; }
    .nav-backdrop.is-open {
        display: block;
    }
    .b2c-nav > a,
    .b2c-nav .nav-drop > button {
        color: #fafafa;
        opacity: 1;
        padding: 14px 12px;
        border-radius: 10px;
        font-size: 14px;
        text-align: left;
        width: 100%;
        justify-content: flex-start;
        letter-spacing: 0.04em;
        pointer-events: auto;
        position: relative;
        z-index: 1;
    }
    .b2c-nav > a:hover,
    .b2c-nav .nav-drop > button:hover {
        background: rgba(255,255,255,0.08);
        color: #fff;
    }
    .nav-drop { width: 100%; }
    .nav-drop.open .nav-drop-menu {
        position: static;
        left: auto;
        right: auto;
        top: auto !important;
        width: 100%;
        min-width: 0;
        max-width: none;
        margin-top: 4px;
        box-shadow: none;
        border: 1px solid #3f3f46;
        background: #18181b;
        z-index: 1;
    }
    .nav-drop-menu a {
        color: #e4e4e7;
    }
    .nav-drop-menu a:hover {
        background: rgba(255,255,255,0.08);
        color: #fff;
    }
    .btn-wa-icon img { width: 32px; height: 32px; }
}

/* —— Hero video (altura completa; la franja burgundy va aparte y baja) —— */
.b2c-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
}

.b2c-hero video,
.b2c-hero .hero-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

/* Capa GPU: menos soft al escalar a pantalla completa */
.b2c-hero video {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Ligero contraste/saturación: recupera “vida” sin reencode */
    filter: contrast(1.06) saturate(1.1) brightness(1.02);
}

.b2c-hero .hero-fallback {
    background: linear-gradient(135deg, #1c1917, #7a1f2e 55%, #4a0f18);
}

/*
 * Overlay solo para leer el texto — no aplastar todo el video.
 * Antes: 35%→55% negro uniforme (apagaba color y detalle).
 */
.b2c-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.08) 38%, rgba(0,0,0,0.28) 72%, rgba(0,0,0,0.48) 100%),
        radial-gradient(ellipse 90% 70% at 50% 42%, transparent 40%, rgba(0,0,0,0.22) 100%);
}

@media (prefers-reduced-motion: reduce) {
    .b2c-hero video {
        filter: contrast(1.04) saturate(1.06);
    }
}

.b2c-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 20px 60px;
    max-width: 720px;
}

.b2c-hero-content .eyebrow {
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin: 0 0 14px;
    color: rgba(255,255,255,0.85);
}

.b2c-hero-content h1 {
    font-family: var(--font-title);
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 0 0 16px;
    line-height: 1;
    text-transform: uppercase;
}

.b2c-hero-content p {
    margin: 0 auto 28px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.88);
    max-width: 42ch;
}

.b2c-hero-content .cta {
    display: inline-flex;
    background: var(--b2c-burgundy);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 999px;
}

.b2c-hero-content .cta:hover { background: var(--b2c-burgundy-deep); }

/* —— Franja burgundy (compacta: ~mitad de altura) —— */
.b2c-band {
    background: linear-gradient(135deg, #4a0f18 0%, #7a1f2e 55%, #5c1522 100%);
    padding: 4px 10px 6px;
    margin-top: -24px;
    position: relative;
    z-index: 5;
}

.b2c-band-inner {
    max-width: 640px;
    margin: 0 auto;
}

.cat-tiles {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.cat-tile {
    appearance: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 52px;
    font-family: var(--font-title);
}

.cat-tile .cat-ico {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.cat-tile .cat-ico svg {
    width: 14px;
    height: 14px;
    stroke: #18181b;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cat-tile .cat-lbl {
    font-size: 9px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
}

.cat-tile:hover .cat-ico {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.cat-tile.active .cat-ico {
    background: var(--b2c-burgundy-deep);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.cat-tile.active .cat-ico svg {
    stroke: #fff;
}

.cat-tile.active .cat-lbl {
    color: #fecaca;
}

/* —— Buscador activo —— */
.b2c-search {
    max-width: 1100px;
    margin: -8px auto 0;
    padding: 0 16px 8px;
    position: relative;
    z-index: 6;
}

.search-bar {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    padding: 10px 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    flex: 1 1 120px;
    min-width: 110px;
    border-radius: 12px;
    background: #fafafa;
    margin: 0;
}

.search-field:focus-within {
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--b2c-burgundy);
}

.search-field.ac-wrap { position: relative; overflow: visible; }
.b2c-search .ac-list {
    position: absolute;
    left: 0; right: 0; top: calc(100% + 4px);
    z-index: 30;
    background: #fff;
    border: 2px solid #e4e4e7;
    border-radius: 10px;
    max-height: 220px;
    overflow: auto;
    display: none;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.b2c-search .ac-list.on { display: block; }
.b2c-search .ac-item {
    padding: 10px 12px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid #f4f4f5;
    color: #18181b;
}
.b2c-search .ac-item:hover, .b2c-search .ac-item.on { background: #fafafa; }
.b2c-search .ac-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #7a1f2e;
    margin-right: 6px;
}
.b2c-search .ac-item.muted { color: #71717a; cursor: default; }

.search-lbl {
    font-family: var(--font-title);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #71717a;
}

.search-field input {
    border: none;
    background: transparent;
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 600;
    color: #18181b;
    outline: none;
    width: 100%;
    padding: 0;
    min-height: 22px;
}

.search-swap {
    appearance: none;
    border: none;
    background: #f4f4f5;
    color: #52525b;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    align-self: center;
    cursor: pointer;
    font-size: 14px;
    flex: 0 0 auto;
}

.search-swap:hover { background: #e4e4e7; }

.search-pax {
    position: relative;
    flex: 1 1 140px;
    min-width: 140px;
}

.search-pax-btn {
    appearance: none;
    border: none;
    width: 100%;
    height: 100%;
    min-height: 58px;
    text-align: left;
    padding: 8px 12px;
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-title);
}

.search-pax-btn[aria-expanded="true"] {
    box-shadow: inset 0 0 0 2px var(--b2c-burgundy);
    background: #fff;
}

.search-pax-sum {
    font-size: 14px;
    font-weight: 600;
    color: #18181b;
}

.search-pax-pop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 260px;
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.14);
    padding: 14px;
    z-index: 30;
}

.pax-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
}

.pax-row + .pax-row { border-top: 1px solid #f4f4f5; }

.pax-row strong {
    display: block;
    font-family: var(--font-title);
    font-size: 13px;
    color: #18181b;
}

.pax-row small {
    font-size: 11px;
    color: #71717a;
}

.stepper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.stepper button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--b2c-burgundy);
    background: #fff;
    color: var(--b2c-burgundy);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    font-family: var(--font-title);
    font-weight: 700;
}

.stepper button:hover { background: #fdf2f4; }

.stepper button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.stepper span {
    min-width: 20px;
    text-align: center;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 15px;
}

.search-submit {
    appearance: none;
    border: none;
    background: var(--b2c-burgundy);
    color: #fff;
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 12px;
    cursor: pointer;
    align-self: center;
    flex: 0 0 auto;
}

.search-submit:hover { background: var(--b2c-burgundy-deep); }

.search-hint {
    margin: 10px 4px 0;
    text-align: center;
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 600;
    color: var(--b2c-burgundy);
    letter-spacing: 0.02em;
}

@media (max-width: 700px) {
    .search-bar { flex-direction: column; align-items: stretch; }
    .search-swap { display: none; }
    .search-submit { width: 100%; }
    .search-pax-pop { left: 0; right: 0; min-width: 0; }
    .cat-tile .cat-ico { width: 30px; height: 30px; border-radius: 8px; }
    .cat-tile .cat-ico svg { width: 13px; height: 13px; }
    .cat-tiles { gap: 6px; }
    .cat-tile .cat-lbl { font-size: 8px; }
}

/* —— Secciones —— */
.b2c-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 20px;
}

.b2c-section-head {
    text-align: center;
    margin-bottom: 40px;
}

.b2c-section-head h2 {
    font-family: var(--font-title);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.b2c-section-head p {
    margin: 0;
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--b2c-burgundy);
}

/* —— Destacados slider (4 desktop / 1 móvil) —— */
.destacados-wrap {
    position: relative;
}

.destacados-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 8px 4px 16px;
    -webkit-overflow-scrolling: touch;
}

.destacados-track::-webkit-scrollbar { height: 0; }

.destacados-slide {
    flex: 0 0 calc((100% - 54px) / 4);
    min-width: 0;
    scroll-snap-align: center;
}

@media (max-width: 1100px) {
    .destacados-slide { flex: 0 0 calc((100% - 36px) / 3); }
}

@media (max-width: 900px) {
    .destacados-slide { flex: 0 0 82%; }
}

@media (max-width: 600px) {
    .destacados-slide { flex: 0 0 88%; }
}

.destacados-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.destacados-nav button {
    width: 42px;
    height: 42px;
    border: 1px solid #e4e4e7;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: var(--b2c-ink);
    transition: all 0.2s;
}

.destacados-nav button:hover {
    background: var(--b2c-burgundy);
    border-color: var(--b2c-burgundy);
    color: #fff;
}

.destacados-empty {
    text-align: center;
    color: var(--b2c-muted);
    font-size: 14px;
    padding: 40px 20px;
    border: 1px dashed #e4e4e7;
}

/* —— Tarjeta producto vertical 9:16 —— */
.products-gallery,
.res-grid,
.prod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1100px) {
    .products-gallery,
    .res-grid,
    .prod-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
    .products-gallery,
    .res-grid,
    .prod-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .products-gallery,
    .res-grid,
    .prod-grid { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
}

.pcard {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 28px rgba(28, 25, 23, 0.10);
    border: 1px solid rgba(228, 228, 231, 0.9);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    height: 100%;
}

.pcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(28, 25, 23, 0.14);
}

.pcard-media {
    position: relative;
    aspect-ratio: 9 / 16;
    width: 100%;
    background: linear-gradient(145deg, #292524, #7a1f2e);
    background-size: cover;
    background-position: center;
}

.pcard-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.45);
    font-size: 40px;
}

.pcard-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--b2c-burgundy);
    color: #fff;
    font-family: var(--font-title);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 8px;
}

.pcard-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.pc-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pc-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 6px;
    border-radius: 6px;
    background: #0f766e;
    color: #fff;
    font-family: var(--font-title);
    font-size: 11px;
    font-weight: 700;
    margin-right: 4px;
}

.pc-star {
    font-size: 12px;
    color: #d4d4d8;
    line-height: 1;
}

.pc-star.is-on { color: #18181b; }

.pcard-title {
    margin: 0;
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #18181b;
}

.pc-valid {
    font-size: 12px;
    color: #71717a;
}

.pc-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f4f4f5;
}

.pc-price-lbl {
    display: block;
    font-size: 11px;
    color: #71717a;
    margin-bottom: 2px;
}

.pc-price {
    display: block;
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 800;
    color: #18181b;
    line-height: 1.1;
}

.pc-price-was {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    color: #a1a1aa;
    text-decoration: line-through;
}

.pc-save {
    flex: 0 0 auto;
    background: #0f766e;
    color: #fff;
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 10px;
}

.pcard-empty-msg {
    color: #64748b;
    font-size: 14px;
    grid-column: 1 / -1;
}

.prod-img-rotator {
    transition: background-image 0.4s ease-in-out;
}

.section-heading {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    border-left: 4px solid var(--b2c-burgundy);
    padding-left: 10px;
}

.b2c-footer {
    text-align: center;
    padding: 36px 20px;
    background: var(--b2c-ink);
    color: #a1a1aa;
    font-size: 13px;
}

.b2c-footer a { color: #fca5a5; }

