/* =========================
   HOME (solo layout home)
   ========================= */

.home-v2{
    /* DS colors (scope: home) */
    --color-dark: #202020;
    --grey-01:   #5D6C80;
    --grey-02:   #93A0B2;
    --grey-03:   #DEE6EA;
    --grey-04:   #EFF2F5;
    --grey-05:   #F8F9FB;
    --white:     #FFFFFF;

    --primary:       #FF6A1A;
    --primary-dark:  #E85506;

    --text-main:  var(--color-dark);
    --text-muted: var(--grey-01);
    --border-soft: var(--grey-03);

    font-family: 'Hanken Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    background-color: var(--grey-05);
    color: var(--text-main);
}

.home-v2 a { text-decoration: none; }

/* OJO: NO redefinimos .container global.
   Solo ajustamos el container dentro de la home */
.home-v2 .container{
    max-width: 1200px;
    padding-left: 24px;
    padding-right: 24px;
}

/* HERO ------------------------------------------------------------- */
.home-v2 .hero-section{
    background-color: #221c26;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 120%;
    color: #ffffff;
    padding: 46px 0;
}

.home-v2 .hero-inner{
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
}

.home-v2 .hero-content{ max-width: 420px; }

.home-v2 .hero-eyebrow{
    font-size: 1.2rem;
    font-weight: 500;
    color: #f5f5f6;
    margin-bottom: 10px;
}

.home-v2 .hero-title{
    font-size: 2.9rem;
    line-height: 1.15;
    margin: 0 0 18px;
    font-weight: 500;
}

.home-v2 .hero-title span{ font-weight: 700; }

.home-v2 .hero-badges{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-v2 .hero-badge-main{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: 8px;
    background: var(--primary);
    color: black;
    font-weight: 600;
    font-size: 0.9rem;
    width: max-content;
}

.home-v2 .hero-actions{ margin-top: 8px; }

.home-v2 .btn-hero{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 22px;
    border-radius: 8px;
    border: 1.5px solid #ffffff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--primary);
    color: #ffffff;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.home-v2 .btn-hero:hover{
    background: var(--primary-dark);
    border-color: #ffe5d1;
}

.home-v2 .hero-media{
    display: flex;
    justify-content: flex-end;
}

.home-v2 .hero-watch{
    width: 290px;
    max-width: 100%;
}

.home-v2 .hero-watch img{
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 992px){
    .home-v2 .hero-inner{
        grid-template-columns: minmax(0,1fr);
        gap: 30px;
    }
    .home-v2 .hero-media{ justify-content: center; }
    .home-v2 .hero-section{
        background-position: center right;
        background-size: auto 110%;
    }
}

@media (max-width: 576px){
    .home-v2 .hero-section{ padding: 32px 0 38px; }
    .home-v2 .hero-title{ font-size: 2.1rem; }
}

/* SECTIONS --------------------------------------------------------- */
.home-v2 .section{ padding: 40px 0; }

.home-v2 .section-header{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 22px;
}

.home-v2 .section-title{
    font-size: 1.3rem;
    font-weight: 600;
}

/* LATEST SECTION wrapper (solo fondo) ------------------------------ */
.home-v2 .latest-section{ background: var(--white); }

/* BENEFITS --------------------------------------------------------- */
.home-v2 .benefits-section{
    background: var(--grey-04);
    padding: 50px 0;
}

.home-v2 .benefits-grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.home-v2 .benefit-card{
    background: #ffffff;
    border-radius: 18px;
    padding: 32px 26px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-soft);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}

.home-v2 .benefit-icon{
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: var(--grey-05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--grey-01);
}

.home-v2 .benefit-title{
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.home-v2 .benefit-text{
    font-size: .82rem;
    color: var(--grey-02);
}

@media (max-width: 768px){
    .home-v2 .benefits-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* TRENDING --------------------------------------------------------- */
.home-v2 .trending-section{ padding: 40px 0 60px; }

.home-v2 .trending-grid{
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.home-v2 .trending-card{
    cursor: pointer;
    transition: transform .2s ease;
    display: block;
}

.home-v2 .trending-card:hover{
    transform: translateY(-4px);
}

.home-v2 .trending-image{
    position: relative;
    width: 100%;
    height: 210px;
    border-radius: 14px;
    overflow: hidden;
}

.home-v2 .trending-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-v2 .trending-image::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
}

.home-v2 .trending-title{
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 1;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

@media (max-width: 992px){
    .home-v2 .trending-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px){
    .home-v2 .trending-grid{ grid-template-columns: repeat(1, minmax(0, 1fr)); }
}

/* PROMO ------------------------------------------------------------ */
.home-v2 .promo-section{ background: var(--white); }

.home-v2 .promo-banner{
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    color: #f9fafb;
    padding: 60px 24px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-v2 .promo-title{
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.home-v2 .promo-title span{ color: #ffb347; }

.home-v2 .promo-text{
    font-size: .94rem;
    color: #f3f4f6;
    max-width: 21rem;
    margin-bottom: 18px;
}

.home-v2 .promo-btn{
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}

.home-v2 .promo-btn:hover{ background: var(--primary-dark); }

/* HEADER GRID (si esto solo se usa en home) ------------------------ */
.home-header-grid{
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 32px;
}

/* LOGO */
.home-header-grid .logo-area{ max-width: 140px; }
.home-header-grid .logo-img{ height: 46px; }

/* SEARCH */
.home-header-grid .search-bar{
    max-width: 720px;
    width: 100%;
    justify-self: center;
    height: 42px;
}
.home-header-grid .search-bar input{
    height: 34px;
    font-size: 14px;
}
.home-header-grid .search-btn{
    width: 34px;
    height: 34px;
}

/* ICONOS DERECHA */
.home-header-grid .nav-actions{
    display: flex;
    align-items: center;
    gap: 16px;
}
.home-header-grid .nav-icon-btn{
    width: 34px;
    height: 34px;
}
.home-header-grid .nav-icon-btn svg{
    width: 18px !important;
    height: 18px !important;
}

/* RESPONSIVE (tablet+) */
@media (max-width: 992px){
    .home-header-grid{
        grid-template-columns: 1fr;
        row-gap: 14px;
    }
    .home-header-grid .search-bar{ max-width: 100%; }
    .home-header-grid .nav-actions{ justify-content: flex-end; }
}
