/* ================================================
   GUITARRA FÁCIL — HOME PAGE STYLES
   Archivo: public/assets/ecommerce/css/home.css
   ================================================ */

/* ── Banner altura ── */

/* ── FIX CLS: reservar altura del banner antes de que cargue el contenido ── */
/* Evita el layout shift (CLS 0.554) pre-pintando el espacio exacto del banner */
.intro-section {
    background: #25282D;
    min-height: 70vh;
}

@media (max-width: 767px) {
    .intro-section {
        min-height: 45vh;
    }
}

.banner-custom-height {
    height: 70vh;
    min-height: 700px;
}
@media (max-width: 767px) {
    .banner-custom-height {
        height: 45vh !important;
        min-height: 350px !important;
    }
    .banner-content .banner-title {
        font-size: 1.8rem !important;
        line-height: 1.2;
    }
    .banner-content .banner-subtitle {
        font-size: 0.9rem !important;
    }
}

/* ── Colecciones ── */
.collection-card {
    position: relative;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}
.content {
    position: relative;
    z-index: 2;
    padding-top: 50px;
}
.card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: -1px;
}
.card-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: white;
    font-size: 1.1rem;
    padding: 0 30px;
    line-height: 1.3;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}
.button-container {
    position: absolute;
    bottom: 40px;
    width: 100%;
    text-align: center;
    z-index: 3;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}
.btn-premium {
    display: inline-block;
    padding: 12px 28px;
    background-color: white;
    color: #111;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.collection-card-wrapper:hover .collection-card {
    transform: translateY(-10px);
}
.collection-card-wrapper:hover .button-container {
    opacity: 1;
    transform: translateY(0);
}
.collection-card .btn-hover {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.collection-card-wrapper:hover .btn-hover {
    opacity: 1;
}

/* ── Shadow clean ── */
.shadow-clean {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid transparent;
}
.shadow-clean:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
    background: #ffffff !important;
    border: 1px solid #eee;
}
.category-media img {
    transition: transform 0.4s ease;
}
.shadow-clean:hover .category-media img {
    transform: scale(1.05);
}

/* ── Botón ir a tienda ── */
.btn-ir-tienda {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 15px;
    max-width: 140px;
    opacity: 0.4;
    transition: 0.3s;
    border-bottom: 3px solid transparent;
}
.btn-ir-tienda:hover {
    opacity: 1;
    text-decoration: none;
    color: inherit;
}
.btn-ir-tienda .icon-wrap {
    width: 65px;
    height: 65px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 22px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.btn-ir-tienda span {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
}

/* ── Selector segmentos ── */
.segmentacion-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.segment-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    transition: 0.3s;
    text-align: center;
    opacity: 0.4;
    border-bottom: 3px solid transparent;
    max-width: 140px;
}
.segment-btn.active {
    opacity: 1;
    border-bottom: 3px solid #333;
}
.segment-btn .icon-wrap {
    width: 65px;
    height: 65px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 22px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.segment-btn span {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
}

/* ── Tabs contenido ── */
.tab-content-nespresso {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    position: relative;
    transition: opacity .3s ease;
}
.tab-content-nespresso.active {
    opacity: 1;
    visibility: visible;
    height: auto;
    overflow: visible;
}

/* ── Owl fixes generales ── */
.owl-carousel,
.owl-carousel .owl-stage-outer,
.owl-carousel .owl-stage {
    direction: ltr !important;
}
.owl-carousel .owl-nav {
    position: absolute;
    top: -50px;
    right: 0;
    margin: 0 !important;
    display: flex;
    gap: 10px;
}
.owl-carousel .owl-nav button {
    background: #fff !important;
    border: 1px solid #333 !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    color: #333 !important;
    transition: 0.3s !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.owl-carousel .owl-nav button:hover {
    background: #333 !important;
    color: #fff !important;
}
.owl-item img {
    width: 100%;
    height: auto;
    display: block;
}
.owl-carousel:not(.owl-loaded) {
    opacity: 0;
    max-height: 400px;
    overflow: hidden;
}
.owl-carousel.owl-loaded {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* ── Ver más ── */
.view-more-container {
    text-align: center;
    margin-top: 30px;
}
.btn-view-more {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid #333;
    padding: 12px 30px;
    transition: 0.3s;
    display: inline-block;
    color: #333;
}
.btn-view-more:hover {
    background: #333;
    color: #fff;
    text-decoration: none;
}

/* ── FIX carruseles home (tabs) ── */
.gf-home-item {
    width: 100% !important;
    padding: 5px;
}
.gf-home-item .product-wrap,
.gf-home-item .product {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    flex: 0 0 100% !important;
}
/*
.gf-home-item .product-media img {
    height: 200px !important;
    object-fit: contain !important;
    width: 100% !important;
}
*/
.gf-home-item .product-media img {
    height: auto !important;
    width: 100% !important;
    object-fit: cover !important;
}

/* ── Video parallax ── */
.parallax-full-width {
    position: relative;
    width: 100vw;
    height: 500px;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    margin: 40px 0;
    background-color: #000;
}
.parallax-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.parallax-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}
.parallax-content-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 20px;
}
.glass-panel {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 50px 70px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.15);
    max-width: 850px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    transition: transform 0.5s ease;
}
.mini-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.parallax-title-lujo {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 300;
    color: white;
    margin-bottom: 15px;
    letter-spacing: 2px;
    line-height: 1.1;
}
.parallax-description {
    font-family: 'Montserrat', sans-serif;
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 35px;
}
.btn-parallax-lujo {
    background: #fff;
    color: #000;
    padding: 16px 45px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}
.btn-parallax-lujo:hover {
    background: #e5e5e5;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: #000;
}
.video-control {
    position: absolute;
    bottom: 35px;
    right: 35px;
    z-index: 3;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-control:hover {
    background: rgba(255,255,255,0.9);
    color: #000;
}
@media (max-width: 768px) {
    .parallax-full-width { height: 500px; }
    .glass-panel { padding: 40px 25px; border-radius: 20px; }
    .parallax-title-lujo { font-size: 2rem; }
    .parallax-description { font-size: 0.95rem; }
}
body { overflow-x: hidden; }