/* Estilos solo para /home-v2 (header v2 + contenido nuevo). Evita tocar main.css hasta el merge. */

.content_all.home-v2 {
    /* Hook para overrides del layout en esta versión */
}

.home-v2-placeholder {
    padding: 3rem 1.5rem;
    text-align: center;
}

/* ——— Home v2 · bloque 1 (categorías + banner) ———
   Sprite: ICONOS-PLURAL-UX.svg (600×600). Recorte en 9 franjas horizontales iguales vía <img> + translateY.
   Ajuste fino: .home-v2-hero__nav-sprite { --sprite-nudge-x: 0px; } o cambia --cell / --sprite-row por fila en blade. */
.home-v2-hero {
    padding: 1.2rem 1.5rem 2.3rem;
}

.home-v2-hero__inner {
    max-width: 1440px;
    margin: 0 auto;
}

.home-v2-hero__panel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.home-v2-hero__column-title {
    margin: 0;
    padding: 0.72rem 1rem;
    font-size: 1.5rem;
    color: #212121;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    border-bottom: 1px solid #ededed;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-v2-hero__column-title-arrow {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1;
    color: #1f1f1f;
    transform: translateY(-1px);
}

.home-v2-hero__column-title-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-v2-hero__list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.home-v2-hero__list::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.home-v2-hero__list li {
    border-bottom: 1px solid #ededed;
}

.home-v2-hero__list-link {
    display: block;
    text-decoration: none;
    color: #2a2a2a;
    font-family: 'Raleway', sans-serif;
    font-size: 1.15rem;
    line-height: 1.25;
    padding: 0.95rem 1rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.home-v2-hero__list-link:hover,
.home-v2-hero__list-link.is-active {
    background: #eeeeee;
    color: #121212;
}

.home-v2-hero__list-empty {
    display: block;
    color: #8d8d8d;
    font-size: 0.8rem;
    padding: 0.95rem 1rem;
}

.home-v2-hero__list-link--children {
    text-transform: lowercase;
    font-size: 1.05rem;
}

.home-v2-hero__list-link--children::first-letter {
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .home-v2-hero__panel {
        display: block;
    }

    .home-v2-hero__drawer,
    .home-v2-hero__banner {
        position: static;
        width: auto;
        max-width: none;
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }

    .home-v2-hero__drawer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0.8rem;
    }
}

.home-v2-hero__nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0.55rem;
    width: 450px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.home-v2-hero__nav.is-open {
    background: #fff;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    border-color: #e3e3e3;
    z-index: 3;
}

.home-v2-hero__nav::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.home-v2-hero__nav-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0;
    flex: 1 1 0;
    text-decoration: none;
    color: inherit;
}

.home-v2-hero__nav-row:hover .home-v2-hero__nav-pill,
.home-v2-hero__nav-row.is-active .home-v2-hero__nav-pill {
    background: #4b7b3b;
    color: #fff;
}

.home-v2-hero__nav-ico-wrap {
    --cell: 60px;
    width: var(--cell);
    height: var(--cell);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    align-self: center;
}

.home-v2-hero__nav-sprite {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Imagen de categoría (BD: categories.image en assets/images/categoria/) */
.home-v2-hero__nav-catimg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.home-v2-hero__nav-pill {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 0.85rem;
    border-radius: 0 20px 20px 0;
    background: #51fe2b;
    color: #020202;
    font-size: 1.2rem;
    line-height: 1.25;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
}

.home-v2-hero__banner {
    flex: 1 1 auto;
    min-height: 420px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    border: 1px solid #e3e3e3;
    overflow: hidden;
    background: #0d0d0d;
}

.home-v2-hero__banner-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    object-position: right center;
}

.home-v2-hero__drawer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(313px + 0.8rem);
    width: fit-content;
    max-width: calc(100% - (313px + 1.6rem));
    display: grid;
    grid-template-columns: minmax(260px, max-content) minmax(260px, max-content);
    pointer-events: none;
    opacity: 0;
    transform: translateX(-26px);
    transition: transform 0.24s ease, opacity 0.24s ease;
    z-index: 2;
}

.home-v2-hero__panel.is-drawer-open .home-v2-hero__drawer {
    pointer-events: auto;
    opacity: 1;
    transform: translateX(0);
}

.home-v2-hero__column {
    min-height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.home-v2-hero__column-card {
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    border: 1px solid #e3e3e3;
    z-index: 2;
}

.home-v2-hero__column-card--second {
    --home-v2-second-col-top-right-radius: 12px;
    --home-v2-second-col-bottom-right-radius: 12px;
    border-top-right-radius: var(--home-v2-second-col-top-right-radius);
    border-bottom-right-radius: var(--home-v2-second-col-bottom-right-radius);
    z-index: 1;
}

/* Huella (home v2): título con marca verde tipo referencia UX */
.content_all.home-v2 .home-v2-huella__title {
    color: #020202;
}

.content_all.home-v2 .home-v2-huella__mark {
    display: inline;
    background: #51fe2b;
    color: #020202;
    padding: 0.08em 0.4em 0.12em;
    border-radius: 0;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.content_all.home-v2 .home-v2-huella__carousel {
    width: min(92%, 980px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

.content_all.home-v2 .home-v2-huella__carousel .slider_cont {
    width: 100%;
    overflow: hidden;
}

.content_all.home-v2 .home-v2-huella__track {
    width: max-content;
    display: flex;
    animation: home-v2-huella-marquee var(--home-v2-huella-speed, 28s) linear infinite;
    will-change: transform;
}

.content_all.home-v2 .home-v2-huella__track:hover {
    animation-play-state: paused;
}

.content_all.home-v2 .home-v2-huella__track li {
    flex: 0 0 auto;
}

.content_all.home-v2 .home-v2-huella__arrows {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.content_all.home-v2 .home-v2-huella__arrows .arrow {
    width: 42px;
}

.content_all.home-v2 .home-v2-huella__arrows .arrow img {
    width: 100%;
}

@keyframes home-v2-huella-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ——— Categorías por color (layout bento 1–5 según orden en el CMS) ——— */
.home-v2-colors {
    max-width: 1440px;
    margin: 0 auto;
    padding: 6rem 1.5rem 2.5rem;
    text-align: center;
}

/* Encabezado: píldora verde, texto blanco (referencia UX) */
.home-v2-colors__title-pill {
    display: inline-block;
    margin: 0 0 1.35rem;
    padding: 0.5rem 1.85rem;
    background: #51fe2b;
    color: #020202;
    font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.home-v2-colors__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: minmax(200px, 1fr) minmax(200px, 1fr);
    gap: 1.25rem;
    align-items: stretch;
    text-align: left;
    min-height: min(52vh, 520px);
}

.home-v2-colors__card {
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    min-height: 0;
    box-shadow: none;
    transition: transform 0.16s ease, opacity 0.16s ease;
}

.home-v2-colors__card:hover {
    transform: translateY(-2px);
    opacity: 0.97;
}

.home-v2-colors__media {
    flex: 1 1 auto;
    min-height: 0;
    display: block;
    position: relative;
    overflow: hidden;
}

.home-v2-colors__img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: cover;
    object-position: center;
}

/* Orden 1: alto izquierda | 2: ancho arriba centro | 3–4: pequeñas abajo centro | 5: alto derecha */
.home-v2-colors__card--bento-1 {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.home-v2-colors__card--bento-2 {
    grid-column: 2 / span 2;
    grid-row: 1;
}

.home-v2-colors__card--bento-3 {
    grid-column: 2;
    grid-row: 2;
}

.home-v2-colors__card--bento-4 {
    grid-column: 3;
    grid-row: 2;
}

.home-v2-colors__card--bento-5 {
    grid-column: 4;
    grid-row: 1 / span 2;
}

/* Sexta tarjeta en adelante: ancho completo debajo del bloque */
.home-v2-colors__card--bento-extra {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 200px;
}

/* Pie: color sugerido por posición (si hay etiqueta en el CMS) */
.home-v2-colors__footer {
    flex-shrink: 0;
    display: block;
    padding: 0.6rem 0.75rem;
    text-align: center;
    font-size: 0.9rem;
    color: #fff;
}

.home-v2-colors__card--bento-1 .home-v2-colors__footer {
    background: #0a0a0a;
}

.home-v2-colors__card--bento-2 .home-v2-colors__footer {
    background: #154a8c;
}

.home-v2-colors__card--bento-3 .home-v2-colors__footer {
    background: #ea580c;
}

.home-v2-colors__card--bento-4 .home-v2-colors__footer {
    background: #51fe2b;
}

.home-v2-colors__card--bento-5 .home-v2-colors__footer {
    background: #b91c1c;
}

.home-v2-colors__card--bento-extra .home-v2-colors__footer {
    background: #262626;
}

@media (max-width: 991px) {
    .home-v2-colors__grid {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .home-v2-colors__card--bento-1,
    .home-v2-colors__card--bento-2,
    .home-v2-colors__card--bento-3,
    .home-v2-colors__card--bento-4,
    .home-v2-colors__card--bento-5,
    .home-v2-colors__card--bento-extra {
        min-height: 220px;
    }

    .home-v2-colors__media {
        min-height: 160px;
    }
}

/* ——— Categorías destacadas (solo título + imágenes) ——— */
.home-v2-catdest {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 1.5rem 2.5rem;
}

.home-v2-catdest__heading {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #020202;
    text-align: center;
}

.home-v2-catdest__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.home-v2-catdest__img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 991px) {
    .home-v2-catdest__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}

/* ——— ¿Curioso? FAQs + Glosario ——— */
.home-v2-curious {
    max-width: 920px;
    margin: 0 auto;
    padding: 2rem 1.5rem 2.75rem;
    text-align: center;
}

.home-v2-curious__banner {
    margin: 0 auto 1.1rem;
    max-width: 38rem;
    background: #51fe2b;
    color: #020202;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    font-size: 2rem;
    line-height: 1.45;
}

.home-v2-curious__banner strong {
    font-weight: 700;
}

.home-v2-curious__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1rem;
}

.home-v2-curious__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 11.5rem;
    padding: 0.65rem 1.35rem;
    background: #f2f2f2;
    color: #020202;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.3;
    transition: background 0.15s ease, color 0.15s ease;
}

.home-v2-curious__btn:hover {
    background: #e8e8e8;
    color: #020202;
}

/* ——— Header v2 (solo desktop por ahora) ——— */
.site-header-v2 {
    position: sticky;
    top: 0;
    z-index: 120;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 0.65rem 1.5rem;
}

@media (max-width: 991px) {
    .site-header-v2 {
        display: none;
    }
}

.site-header-v2__bar {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.site-header-v2__left {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    flex-shrink: 0;
    min-width: 0;
}

/* Logo al inicio de la barra (misma escala que .header .cnt_header .logo en main.css) */
.site-header-v2__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 72px;
    line-height: 0;
}

.site-header-v2__logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.site-header-v2__pill--after-logo {
    margin-left: 0;
}

.site-header-v2__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.60rem 1.2rem;
    border-radius: 999px;
    background: #f2f2f2;
    color: #2b2b2b;
    font-size: 0.8125rem;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-header-v2__pill:hover {
    background: #e8e8e8;
    color: #1a1a1a;
}

.site-header-v2__pill--ico {
    padding-left: 0.75rem;
    padding-right: 1rem;
}

.site-header-v2__ico {
    flex-shrink: 0;
    object-fit: contain;
    width: 17px;
    height: 17px;
}

.site-header-v2__search-wrap {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

.site-header-v2__search {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 520px;
    background: #f2f2f2;
    border-radius: 999px;
    padding: 0 0.25rem 0 1rem;
    min-height: 40px;
}

.site-header-v2__search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 0.8125rem;
    line-height: 1.3;
    color: #3a3a3a;
    outline: none;
}

.site-header-v2__search-input::placeholder {
    color: #888;
}

.site-header-v2__search-divider {
    width: 1px;
    height: 18px;
    background: #d8d8d8;
    flex-shrink: 0;
    margin: 0 0.3rem 0 0.45rem;
}

.site-header-v2__search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.site-header-v2__search-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.site-header-v2__search-btn img {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.site-header-v2__right {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.site-header-v2__cotizacion-ico-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-header-v2__cotizacion-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #51fe2b;
    border: 2px solid #f2f2f2;
    box-sizing: content-box;
}

.site-header-v2__pill--cotizacion .site-header-v2__cotizacion-badge {
    border-color: #f2f2f2;
}