/*
* ===============================================================
* ESTILOS DE LA PLANTILLA HOME
* Archivo: /css/template-home.css
* ===============================================================
*/

.home-moderno-template {
    background-color: var(--color-fondo-principal);
}

/*
* ===============================================================
* HERO / VIDEO
* ===============================================================
*/
.hero-section {
    position: relative;
    overflow: hidden;
    background-color: #000;
    line-height: 0;
}

.hero-video-banner {
    width: 100%;
    height: auto;
    min-height: 0;
    background: #000;
    overflow: hidden;
}

.hero-video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    max-height: none !important;
    margin: 0 auto;
    background: #000;
    object-fit: unset !important;
    object-position: center center;
}

/*
* ===============================================================
* SECCIONES GENERALES
* ===============================================================
*/
.home-moderno-template .section {
    padding: 100px 20px;
}

.home-moderno-template .section:nth-of-type(even) {
    background-color: var(--color-secundario);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--color-primario);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.section-title h2 {
    font-size: clamp(2.4rem, 4.6vw, 3.5rem);
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 90px;
    height: 4px;
    background-color: var(--color-primario);
    margin: 20px auto 0;
    border-radius: 999px;
}

.section-title p {
    font-size: 1.08rem;
    max-width: 760px;
    margin: 0 auto;
    opacity: 0.86;
    line-height: 1.75;
}

.button-cta {
    display: inline-block;
    background: linear-gradient(45deg, var(--color-primario), var(--color-primario-hover));
    color: var(--color-texto-claro) !important;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    font-size: 1rem;
    border: none;
    box-shadow: 0 10px 25px -10px rgba(216, 67, 21, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.button-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -12px rgba(216, 67, 21, 0.9);
}

/*
* ===============================================================
* GRID PROMOCIONAL
* ===============================================================
*/
.promo-grid {
    display: grid;
    gap: 30px;
}

.promo-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.promo-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.promo-grid--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.promo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 360px;
    padding: 28px;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    background-size: cover;
    background-position: center center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    isolation: isolate;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.promo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

.promo-card-brand::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.28) 35%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 0;
}

.promo-card-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(216, 67, 21, 0.20), transparent 32%),
        linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.08) 60%);
    z-index: 0;
}

.promo-card-logo {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 88px;
    height: 88px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.promo-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.promo-card-logo--small {
    width: 74px;
    height: 74px;
}

.promo-card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 250px;
}

.promo-card-tag {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(216, 67, 21, 0.18);
    border: 1px solid rgba(216, 67, 21, 0.35);
    color: #ffd3c4;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    min-height: 44px;
    width: fit-content;
}

.promo-card-content h3 {
    font-size: clamp(2rem, 2.7vw, 2.5rem);
    margin: 0 0 14px 0;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
    min-height: 84px;
    display: flex;
    align-items: flex-end;
}

.promo-card-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.65;
    max-width: 95%;
    min-height: 132px;
}

/*
* ===============================================================
* NUEVA SECCIÓN EXPERIENCIA
* ===============================================================
*/
.section-experiencia {
    background:
        radial-gradient(circle at top center, rgba(216, 67, 21, 0.08), transparent 24%),
        var(--color-fondo-principal);
}

.experiencia-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: stretch;
}

.experiencia-main-card,
.experiencia-side-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background-size: cover;
    background-position: center center;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
    isolation: isolate;
}

.experiencia-main-card {
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    padding: 38px;
}

.experiencia-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 30px;
}

.experiencia-side-card {
    min-height: 295px;
    display: flex;
    align-items: flex-end;
    padding: 26px;
}

.experiencia-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.28) 35%, rgba(0, 0, 0, 0.82) 100%),
        radial-gradient(circle at top right, rgba(216, 67, 21, 0.18), transparent 30%);
    z-index: 0;
}

.experiencia-content,
.experiencia-mini-content {
    position: relative;
    z-index: 2;
    max-width: 92%;
}

.experiencia-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(216, 67, 21, 0.18);
    border: 1px solid rgba(216, 67, 21, 0.35);
    color: #ffd3c4;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.experiencia-content h3 {
    margin: 0 0 14px 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.45);
}

.experiencia-content p {
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
}

.experiencia-mini-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.45rem;
    color: #fff;
}

.experiencia-mini-content p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/*
* ===============================================================
* PRODUCTOS DESTACADOS - ESTILO PREMIUM
* ===============================================================
*/
.section-productos-destacados {
    background:
        radial-gradient(circle at top center, rgba(216, 67, 21, 0.10), transparent 26%),
        linear-gradient(180deg, #3e3e3e 0%, #353535 100%);
}

.productos-featured-wrap {
    position: relative;
}

.productos-featured-wrap ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.productos-featured-wrap ul.products::before,
.productos-featured-wrap ul.products::after {
    display: none !important;
}

.productos-featured-wrap ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    list-style: none !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    padding: 0 0 24px 0 !important;
    position: relative;
    display: flex;
    flex-direction: column;
}

.productos-featured-wrap ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(216, 67, 21, 0.26);
}

.productos-featured-wrap ul.products li.product::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 140px;
    background: radial-gradient(circle at top right, rgba(216, 67, 21, 0.16), transparent 48%);
    pointer-events: none;
    z-index: 0;
}

.productos-featured-wrap ul.products li.product a.woocommerce-LoopProduct-link,
.productos-featured-wrap ul.products li.product a.woocommerce-loop-product__link {
    text-decoration: none !important;
    display: block;
    position: relative;
    z-index: 1;
}

.productos-featured-wrap ul.products li.product a img {
    width: 100% !important;
    height: 290px !important;
    object-fit: cover !important;
    display: block;
    margin: 0 !important;
    background: #f5f5f5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.35s ease;
}

.productos-featured-wrap ul.products li.product:hover a img {
    transform: scale(1.04);
}

.productos-featured-wrap ul.products li.product .woocommerce-loop-category__title,
.productos-featured-wrap ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.8rem !important;
    line-height: 1.08 !important;
    margin: 18px 22px 10px 22px !important;
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: -0.3px;
    min-height: 64px;
}

.productos-featured-wrap ul.products li.product .price {
    margin: 0 22px 18px 22px !important;
    color: #fff !important;
    font-size: 1.12rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.productos-featured-wrap ul.products li.product .price del {
    opacity: 0.45;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-right: 8px;
}

.productos-featured-wrap ul.products li.product .price ins {
    text-decoration: none !important;
    color: #fff !important;
}

.productos-featured-wrap ul.products li.product .price .amount {
    color: #fff !important;
}

.productos-featured-wrap ul.products li.product .button,
.productos-featured-wrap ul.products li.product .added_to_cart {
    margin: auto 22px 0 22px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    width: calc(100% - 44px);
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 0.96rem !important;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border: none !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.productos-featured-wrap ul.products li.product .button {
    background: linear-gradient(45deg, var(--color-primario), var(--color-primario-hover)) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px -10px rgba(216, 67, 21, 0.8);
}

.productos-featured-wrap ul.products li.product .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px -10px rgba(216, 67, 21, 0.9);
}

.productos-featured-wrap ul.products li.product .added_to_cart {
    margin-top: 12px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.productos-featured-wrap ul.products li.product .woocommerce-loop-product__link:hover .woocommerce-loop-product__title {
    color: #fff !important;
}

.productos-featured-wrap ul.products li.product .onsale {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    right: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    background: rgba(216, 67, 21, 0.95) !important;
    color: #fff !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    z-index: 5 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.productos-featured-wrap ul.products li.product .star-rating {
    margin: 0 22px 14px 22px !important;
    color: #ffb347;
}

.productos-featured-wrap ul.products li.product .button.loading::after,
.productos-featured-wrap ul.products li.product .button.added::after {
    right: 14px !important;
}

.productos-featured-cta {
    text-align: center;
    margin-top: 45px;
}

/*
* ===============================================================
* CTA FINAL
* ===============================================================
*/
.cta-final {
    text-align: center;
    padding: 120px 20px;
    background:
        radial-gradient(circle at top center, rgba(216, 67, 21, 0.12), transparent 30%),
        var(--color-secundario);
}

.cta-final h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
}

.cta-final p {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    max-width: 820px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
    line-height: 1.8;
}

/*
* ===============================================================
* CTA FINAL SHOWCASE
* ===============================================================
*/
.cta-final-showcase {
    padding: 110px 20px;
    background:
        radial-gradient(circle at top center, rgba(216, 67, 21, 0.10), transparent 24%),
        linear-gradient(180deg, #3f3f3f 0%, #323232 100%);
}

.cta-showcase-box {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 40px;
    align-items: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 42px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.cta-showcase-content {
    max-width: 560px;
}

.cta-showcase-content h2 {
    margin: 0 0 20px 0;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.02;
    color: #fff;
    text-wrap: balance;
}

.cta-showcase-content p {
    margin: 0 0 28px 0;
    font-size: 1.08rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.88);
}

.cta-showcase-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.cta-showcase-features span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(216, 67, 21, 0.14);
    border: 1px solid rgba(216, 67, 21, 0.28);
    color: #ffe0d4;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
}

.cta-showcase-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.button-cta-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 28px;
    min-height: 52px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: all 0.22s ease;
}

.button-cta-outline:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.24);
}

.cta-showcase-visual {
    min-width: 0;
    width: 100%;
}

.cta-showcase-image {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.26);
    isolation: isolate;
    aspect-ratio: 16 / 11;
    min-height: 420px;
    background: #1f1f1f;
}

.cta-showcase-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.cta-showcase-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.20) 42%, rgba(0, 0, 0, 0.75) 100%),
        radial-gradient(circle at top right, rgba(216, 67, 21, 0.16), transparent 30%);
    z-index: 1;
    pointer-events: none;
}

.cta-showcase-badge {
    position: absolute;
    left: 22px;
    bottom: 22px;
    z-index: 2;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.3;
    max-width: 320px;
}

/*
* ===============================================================
* RESPONSIVE
* ===============================================================
*/
@media (max-width: 1400px) {
    .promo-grid--5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .productos-featured-wrap ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1180px) {

    .promo-grid--4,
    .promo-grid--5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .experiencia-grid {
        grid-template-columns: 1fr;
    }

    .experiencia-main-card {
        min-height: 520px;
    }

    .experiencia-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }

    .cta-showcase-box {
        grid-template-columns: 1fr;
        padding: 34px;
    }

    .cta-showcase-content {
        max-width: 100%;
        text-align: center;
    }

    .cta-showcase-features,
    .cta-showcase-actions {
        justify-content: center;
    }

    .cta-showcase-image {
        min-height: 400px;
        aspect-ratio: auto;
    }
}

@media (max-width: 980px) {
    .full-width-banner {
        min-height: 440px;
    }
}

@media (max-width: 768px) {
    .home-moderno-template .section {
        padding: 80px 15px;
    }

    .promo-grid--2,
    .promo-grid--4,
    .promo-grid--5,
    .experiencia-side {
        grid-template-columns: 1fr;
    }

    .promo-card {
        min-height: 320px;
        padding: 24px;
    }

    .promo-card-logo {
        width: 72px;
        height: 72px;
        top: 16px;
        right: 16px;
    }

    .promo-card-content {
        min-height: auto;
    }

    .promo-card-content h3 {
        min-height: auto;
    }

    .promo-card-content p {
        min-height: auto;
    }

    .promo-card-tag {
        min-height: 40px;
    }

    .experiencia-main-card {
        min-height: 420px;
        padding: 26px;
    }

    .experiencia-side-card {
        min-height: 240px;
        padding: 22px;
    }

    .productos-featured-wrap ul.products {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .productos-featured-wrap ul.products li.product a img {
        height: 260px !important;
    }

    .productos-featured-wrap ul.products li.product .woocommerce-loop-product__title {
        font-size: 1.55rem !important;
        min-height: auto;
    }

    .productos-featured-wrap ul.products li.product .button,
    .productos-featured-wrap ul.products li.product .added_to_cart {
        width: calc(100% - 36px);
        margin-left: 18px !important;
        margin-right: 18px !important;
    }

    .productos-featured-wrap ul.products li.product .price,
    .productos-featured-wrap ul.products li.product .woocommerce-loop-product__title,
    .productos-featured-wrap ul.products li.product .star-rating {
        margin-left: 18px !important;
        margin-right: 18px !important;
    }

    .cta-final-showcase {
        padding: 85px 15px;
    }

    .cta-showcase-box {
        gap: 28px;
        padding: 22px;
        border-radius: 22px;
    }

    .cta-showcase-content h2 {
        font-size: 2rem;
    }

    .cta-showcase-content p {
        font-size: 1rem;
        line-height: 1.75;
    }

    .cta-showcase-features {
        gap: 10px;
        margin-bottom: 24px;
    }

    .cta-showcase-features span {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .cta-showcase-actions {
        flex-direction: column;
        gap: 12px;
    }

    .cta-showcase-actions .button-cta,
    .cta-showcase-actions .button-cta-outline {
        width: 100%;
    }

    .cta-showcase-image {
        min-height: 300px;
        border-radius: 18px;
    }

    .cta-showcase-badge {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
        font-size: 0.92rem;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .promo-card-content h3 {
        font-size: 1.8rem;
    }

    .promo-card-content p {
        font-size: 0.96rem;
    }

    .experiencia-content h3 {
        font-size: 1.8rem;
    }

    .experiencia-content p,
    .experiencia-mini-content p {
        font-size: 0.95rem;
    }

    .cta-final {
        padding: 90px 15px;
    }
}

@media (max-width: 480px) {
    .cta-showcase-content h2 {
        font-size: 1.8rem;
    }

    .cta-showcase-box {
        padding: 18px;
    }

    .cta-showcase-image {
        min-height: 240px;
    }
}

/*
* ===============================================================
* AJUSTE PREMIUM ENTRE CTA Y FOOTER
* ===============================================================
*/
.cta-final-showcase {
    margin-bottom: 0 !important;
    padding-bottom: 80px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.site-footer,
footer.site-footer,
.ast-footer-wrap,
.ast-theme-footer,
.ast-footer-overlay {
    margin-top: 0 !important;
    padding-top: 15px !important;
}