/* ================================================================
   iStar · Home Redesign
   Versión limpia
================================================================ */


/* ================================================================
   BASE
================================================================ */

.site-banner {
    display: none;
}

.istar-home {
    background: #081422;
    color: #ffffff;
    overflow: hidden;
}

.istar-home a {
    text-decoration: none;
}

.btn-ghost-light {
    background: rgba(255,255,255,.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,.24);
    backdrop-filter: blur(12px);
}

.btn-ghost-light:hover {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.42);
    transform: translateY(-2px);
}


/* ================================================================
   HERO
   Se conserva la estética actual
================================================================ */

.istar-hero-video {
    position: relative;
    min-height: clamp(680px, 88vh, 920px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: #081422;
    margin-top: 0;
}

.istar-hero-bg,
.istar-hero-bg video,
.istar-hero-shade,
.istar-hero-grid {
    position: absolute;
    inset: 0;
}

.istar-hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    filter: saturate(1.04) contrast(1.02);
}

.istar-hero-shade {
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(8,20,34,.96) 0%,
            rgba(8,20,34,.80) 35%,
            rgba(18,64,114,.48) 68%,
            rgba(8,20,34,.54) 100%
        );
}

.istar-hero-grid {
    z-index: 2;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 74px 74px;
    mask-image: linear-gradient(90deg, #000 0%, transparent 78%);
}

.istar-hero-inner {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 390px;
    gap: clamp(30px, 6vw, 90px);
    align-items: center;
    width: 100%;
    padding-top: 120px;
    padding-bottom: 120px;
}

.istar-hero-copy {
    max-width: 880px;
}

.istar-eyebrow,
.istar-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #F1A836;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .88rem;
    font-weight: 800;
}

.istar-eyebrow .istar-icon,
.istar-section-kicker .istar-icon {
    width: 22px;
    height: 22px;
}

.istar-hero-copy h1 {
    margin: 22px 0 24px;
    color: #fff;
    font-family: var(--font-heading, 'Oskar One', sans-serif);
    font-size: clamp(2.4rem, 5.6vw, 5.8rem);
    line-height: .88;
    letter-spacing: .01em;
    max-width: 970px;
    text-wrap: balance;
}

.istar-hero-copy p {
    max-width: 740px;
    color: rgba(255,255,255,.86);
    font-size: clamp(1.15rem, 1.45vw, 1.45rem);
    line-height: 1.55;
    margin: 0 0 34px;
}

.istar-hero-actions,
.istar-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.istar-hero-panel {
    position: relative;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.18);
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.13),
            rgba(255,255,255,.045)
        );
    box-shadow: 0 30px 80px rgba(0,0,0,.34);
    backdrop-filter: blur(18px);
}

.istar-hero-panel::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background:
        linear-gradient(
            135deg,
            rgba(241,168,54,.72),
            rgba(117,170,219,.1),
            rgba(255,255,255,.2)
        );
    mask: linear-gradient(#000 0 0) content-box,
          linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.istar-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,.72);
    font-size: .86rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 22px;
}

.istar-panel-header strong {
    color: #F1A836;
}

.istar-panel-meter {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    margin-bottom: 22px;
}

.istar-panel-meter span {
    display: block;
    width: 76%;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            #2C6A9F,
            #75AADB,
            #F1A836
        );
    box-shadow: 0 0 20px rgba(241,168,54,.4);
    animation: istarPulse 3.8s ease-in-out infinite;
}

.istar-panel-list {
    display: grid;
    gap: 14px;
}

.istar-panel-list div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(8,20,34,.52);
    border: 1px solid rgba(255,255,255,.08);
}

.istar-panel-list .istar-icon {
    width: 24px;
    height: 24px;
    color: #F1A836;
    flex: 0 0 auto;
}

.istar-hero-bottom {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.istar-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    border-radius: 999px;
    color: #fff;
    background: rgba(8,20,34,.72);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(14px);
    font-weight: 600;
}

.istar-hero-chip .istar-icon {
    width: 21px;
    height: 21px;
    color: #F1A836;
}


/* ================================================================
   ENCABEZADOS DE SECCIÓN
================================================================ */

.istar-section-heading h2 {
    margin: 14px 0 0;
    color: #fff;
    font-family: var(--font-heading, 'Oskar One', sans-serif);
    font-size: clamp(2.1rem, 4.6vw, 5.2rem);
    line-height: .98;
    text-wrap: balance;
}

.istar-section-heading p {
    color: rgba(255,255,255,.76);
    font-size: 1.16rem;
    line-height: 1.65;
}

.istar-section-heading-center {
    text-align: center;
    max-width: 980px;
    margin: 0 auto 46px;
}

.istar-section-heading-center .istar-section-kicker {
    justify-content: center;
}


/* ================================================================
   CRITERIO TÉCNICO / QUÉ HACEMOS
================================================================ */

.istar-tech-section {
    position: relative;
    padding: clamp(70px, 8vw, 110px) 0;

    background:
        linear-gradient(
            135deg,
            rgba(8,20,34,1),
            rgba(18,64,114,.62)
        ),
        radial-gradient(
            circle at 86% 50%,
            rgba(241,168,54,.18),
            transparent 34%
        );
}

.istar-tech-balanced-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 42px);
    align-items: stretch;
}

.istar-tech-copy-card {
    height: 100%;
    padding: clamp(38px, 4vw, 58px);
    border-radius: 24px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
}

.istar-tech-copy-card-light {
    background: #ffffff;
    color: #071421;
    box-shadow: 0 28px 80px rgba(0,0,0,.22);
}

.istar-tech-copy-card-dark {
    background:
        linear-gradient(
            145deg,
            rgba(26,55,82,.97),
            rgba(12,34,55,.97)
        );

    border: 1px solid rgba(117,170,219,.20);
    color: #ffffff;
}

.istar-tech-card-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: clamp(28px, 3vw, 42px);

    color: #F1A836;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.istar-tech-card-top .istar-icon,
.istar-tech-card-top .istar-icon-material {
    width: 24px;
    height: 24px;
    font-size: 24px;
    color: #F1A836;
}

.istar-tech-copy-card h2 {
    margin: 0 0 28px;

    font-family: var(--font-heading, 'Oskar One', sans-serif);
    font-size: clamp(2.25rem, 3vw, 3.45rem);
    line-height: 1.04;
    letter-spacing: .01em;
}

.istar-tech-copy-card-light h2 {
    color: #071421 !important;
}

.istar-tech-copy-card-dark h2 {
    color: #ffffff !important;
}

.istar-tech-copy-card p {
    margin: 0 0 18px;

    font-size: clamp(1rem, 1.18vw, 1.16rem);
    line-height: 1.65;
}

.istar-tech-copy-card-light p {
    color: #34404c;
}

.istar-tech-copy-card-dark p {
    color: rgba(255,255,255,.78);
}

.istar-tech-copy-card p:last-child {
    margin-bottom: 0;
}


/* ================================================================
   SOLUCIONES / CARRUSEL
================================================================ */

.istar-services-section {
    position: relative;

    padding-top: clamp(74px, 8vw, 130px);
    padding-bottom: clamp(70px, 8vw, 120px);

    background:
        linear-gradient(
            180deg,
            #081422 0%,
            #0c1f33 100%
        ) !important;
}

.istar-services-carousel {
    position: relative;
}


/* TARJETA */

.istar-service-photo-card {
    position: relative;

    min-height: 0 !important;
    padding: 0 !important;

    display: flex !important;
    flex-direction: column;

    overflow: hidden;
    border-radius: 22px;

    color: #ffffff;

    background:
        linear-gradient(
            180deg,
            #102b46,
            #081a2b
        );

    border: 1px solid rgba(117,170,219,.24);

    transition:
        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}

.istar-service-photo-card:hover {
    transform: translateY(-4px);

    border-color: rgba(241,168,54,.34);

    box-shadow:
        0 22px 50px rgba(0,0,0,.22);
}


/* FOTO */

.istar-service-photo {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 295px;
}

.istar-service-photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
        transform .5s ease,
        filter .5s ease;
}

.istar-service-photo-card:hover .istar-service-photo img {
    transform: scale(1.045);
}

.istar-service-photo-shade {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            180deg,
            rgba(4,14,24,.02) 45%,
            rgba(4,14,24,.42) 100%
        );

    pointer-events: none;
}


/* ICONO SOBREIMPRESO */

.istar-service-photo-card
.istar-service-photo
.service-icon {
    position: absolute;

    top: 16px;
    left: 16px;

    z-index: 3;

    width: 72px;
    height: 72px;

    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background:
        rgba(11,32,51,.88);

    border:
        1px solid rgba(241,168,54,.34);

    box-shadow:
        0 10px 24px rgba(0,0,0,.24);

    backdrop-filter: blur(5px);
}

.istar-service-photo-card
.istar-service-photo
.service-icon .istar-icon,

.istar-service-photo-card
.istar-service-photo
.service-icon .istar-icon-material {
    width: 38px;
    height: 38px;

    font-size: 38px;

    color: #F1A836;

    font-variation-settings:
        'FILL' 0,
        'wght' 300,
        'GRAD' 0,
        'opsz' 48;
}


/* TEXTO */

.istar-service-photo-content {
    position: relative;
    z-index: 2;

    flex: 1;

    padding: 26px 28px 30px;
}

.istar-service-photo-content h3 {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: 1.45rem;
}

.istar-service-photo-content p {
    margin: 0;

    color: rgba(255,255,255,.74);

    font-size: 1.03rem;
    line-height: 1.55;
}


/* ================================================================
   PROCESO
================================================================ */

.istar-process-section {
    background:
        linear-gradient(
            180deg,
            #081422,
            #06101c
        ) !important;
}

.istar-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.istar-process-step {
    position: relative;

    min-height: 280px;

    padding: 30px 24px;

    border-radius: 28px;

    border:
        1px solid rgba(255,255,255,.1);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.08),
            rgba(255,255,255,.03)
        );
}

.istar-process-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    margin-bottom: 26px;

    border-radius: 18px;

    color: #081422;
    background: #F1A836;

    font-weight: 900;
}

.istar-process-step h3 {
    margin-bottom: 12px;

    color: #ffffff;

    font-size: 1.6rem;
}

.istar-process-step p {
    color: rgba(255,255,255,.72);
    line-height: 1.55;
}


/* ================================================================
   POR QUÉ SOLAR
================================================================ */

.istar-benefits-section,
.istar-benefits-v2 {
    position: relative;

    padding: clamp(80px, 9vw, 130px) 0;

    background:
        radial-gradient(
            circle at 82% 12%,
            rgba(44,106,159,.22),
            transparent 38%
        ),
        #081422;
}


/* ENCABEZADO COMPLETO */

.istar-benefits-heading {
    width: 100%;

    margin-bottom:
        clamp(42px, 5vw, 68px);
}

.istar-benefits-heading h2 {
    max-width: 1200px;

    margin: 12px 0 20px;

    color: #ffffff;

    font-family:
        var(--font-heading, 'Oskar One', sans-serif);

    font-size:
        clamp(3rem, 5.4vw, 6rem);

    line-height: .98;
}

.istar-benefits-heading p {
    max-width: 980px;

    margin: 0;

    color: rgba(255,255,255,.76);

    font-size:
        clamp(1rem, 1.35vw, 1.25rem);

    line-height: 1.65;
}


/* FOTO + TARJETAS 50 / 50 */

.istar-benefits-body {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        clamp(26px, 3vw, 42px);

    align-items: stretch;
}


/* FOTO DE LAS MANOS */

.istar-benefits-visual {
    position: relative;

    min-height: 560px;

    overflow: hidden;

    border-radius: 24px;

    border:
        1px solid rgba(241,168,54,.44);

    background: #071421;

    box-shadow:
        0 28px 65px rgba(0,0,0,.30),
        0 0 0 1px rgba(117,170,219,.10),
        inset 0 1px 0 rgba(255,255,255,.10);
}


/* Marco interior */

.istar-benefits-visual::before {
    content: "";

    position: absolute;

    z-index: 3;

    inset: 10px;

    border:
        1px solid rgba(255,255,255,.17);

    border-radius: 17px;

    pointer-events: none;
}


/* Tratamiento luminoso */

.istar-benefits-visual::after {
    content: "";

    position: absolute;

    z-index: 2;

    inset: 0;

    background:
        linear-gradient(
            145deg,
            rgba(241,168,54,.12),
            transparent 30%,
            transparent 70%,
            rgba(44,106,159,.16)
        );

    pointer-events: none;
}

.istar-benefits-visual img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}


/* CUATRO TARJETAS */

.istar-benefit-cards {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    grid-template-rows:
        repeat(2, minmax(0, 1fr));

    gap: 20px;

    min-height: 560px;
}

.istar-benefit-card {
    height: 100%;

    box-sizing: border-box;

    padding:
        clamp(24px, 2.3vw, 36px);

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-radius: 28px;

    background: #ffffff;
    color: #081422;

    box-shadow:
        0 18px 60px rgba(0,0,0,.18);
}

.istar-benefit-card .istar-icon,
.istar-benefit-card .istar-icon-material {
    width: 38px;
    height: 38px;

    margin-bottom: 18px;

    font-size: 38px;

    color: #F1A836;
}

.istar-benefit-card h3 {
    margin-bottom: 10px;

    color: #081422;

    font-size: 1.35rem;
}

.istar-benefit-card p {
    margin: 0;

    color: rgba(8,20,34,.72);

    line-height: 1.55;
}


/* ================================================================
   CTA PRINCIPAL
================================================================ */

.istar-final-cta {
    position: relative;

    padding:
        0 0 clamp(72px, 8vw, 120px);

    background: #081422;
}

.istar-final-cta-inner {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) auto;

    gap: 34px;

    align-items: center;

    padding:
        clamp(32px, 5vw, 62px);

    border-radius: 36px;

    background:
        radial-gradient(
            circle at 85% 0%,
            rgba(241,168,54,.22),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #124072,
            #081422
        );

    border:
        1px solid rgba(255,255,255,.12);

    box-shadow:
        0 30px 90px rgba(0,0,0,.28);
}

.istar-final-cta h2 {
    margin: 14px 0;

    color: #ffffff;

    font-family:
        var(--font-heading, 'Oskar One', sans-serif);

    font-size:
        clamp(2rem, 4vw, 4.8rem);

    line-height: .98;
}

.istar-final-cta p {
    color: rgba(255,255,255,.76);

    font-size: 1.16rem;

    line-height: 1.65;
}


/* ================================================================
   CTA FINAL
================================================================ */

.istar-bottom-cta {
    padding:
        clamp(64px, 8vw, 110px) 0;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(44,106,159,.28),
            transparent 46%
        ),
        linear-gradient(
            180deg,
            #071421 0%,
            #05101c 100%
        );

    text-align: center;
}

.istar-bottom-cta-inner {
    max-width: 760px;
}

.istar-bottom-cta h2 {
    margin: 12px 0 14px;

    color: #ffffff;
}

.istar-bottom-cta p {
    max-width: 620px;

    margin: 0 auto 24px;

    color:
        rgba(255,255,255,.74);
}


/* ================================================================
   ANIMACIONES
================================================================ */

@keyframes istarPulse {
    0%,
    100% {
        opacity: .8;
        transform: scaleX(.92);
        transform-origin: left;
    }

    50% {
        opacity: 1;
        transform: scaleX(1);
        transform-origin: left;
    }
}


@media (prefers-reduced-motion: reduce) {

    .istar-hero-bg video {
        display: none;
    }

    .istar-hero-bg {
        background-image:
            url('../img/Home/istar-hero-ok-poster.jpg');

        background-size: cover;
        background-position: center;
    }

    .istar-panel-meter span {
        animation: none;
    }

    .istar-service-photo-card,
    .istar-service-photo img {
        transition: none;
    }
}


/* ================================================================
   RESPONSIVE · TABLET
================================================================ */

@media (max-width: 1080px) {

    .istar-hero-inner {
        grid-template-columns: 1fr;
    }

    .istar-hero-panel {
        max-width: 520px;
    }

    .istar-process-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .istar-final-cta-inner {
        grid-template-columns: 1fr;
    }

    .istar-final-actions {
        justify-content: flex-start;
    }
}


/* ================================================================
   RESPONSIVE · TECH + BENEFICIOS
================================================================ */

@media (max-width: 850px) {

    .istar-tech-balanced-grid {
        grid-template-columns: 1fr;
    }

    .istar-tech-copy-card {
        height: auto;

        padding:
            30px 24px 34px;
    }

    .istar-tech-card-top {
        margin-bottom: 28px;
    }

    .istar-tech-copy-card h2 {
        margin-bottom: 22px;

        font-size:
            clamp(2rem, 8vw, 3rem);
    }


    /* Por qué solar */

    .istar-benefits-heading {
        margin-bottom: 30px;
    }

    .istar-benefits-heading h2 {
        font-size:
            clamp(2.6rem, 10vw, 4rem);
    }

    .istar-benefits-body {
        grid-template-columns: 1fr;
    }

    .istar-benefits-visual {
        min-height: 380px;
    }

    .istar-benefit-cards {
        min-height: auto;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        grid-template-rows: auto;
    }
}


/* ================================================================
   RESPONSIVE · MOBILE
================================================================ */

@media (max-width: 760px) {

    /* Hero */

    .istar-hero-video {
        min-height: 760px;
    }

    .istar-hero-inner {
        padding-top: 96px;
        padding-bottom: 180px;
    }

    .istar-hero-copy h1 {
        font-size:
            clamp(2.55rem, 13vw, 4rem);
    }

    .istar-hero-actions,
    .istar-final-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .istar-hero-actions .btn,
    .istar-final-actions .btn {
        width: 100%;

        justify-content: center;

        text-align: center;
    }

    .istar-hero-bottom {
        bottom: 24px;

        width:
            calc(100% - 32px);
    }

    .istar-hero-chip {
        flex:
            1 1 calc(50% - 8px);

        justify-content: center;

        font-size: .9rem;
    }


    /* Carrusel */

    .istar-service-photo {
        height: 230px;
    }

    .istar-service-photo-card
    .istar-service-photo
    .service-icon {
        top: 14px;
        left: 14px;

        width: 62px;
        height: 62px;

        border-radius: 15px;
    }

    .istar-service-photo-card
    .istar-service-photo
    .service-icon .istar-icon,

    .istar-service-photo-card
    .istar-service-photo
    .service-icon .istar-icon-material {
        width: 32px;
        height: 32px;

        font-size: 32px;
    }

    .istar-service-photo-content {
        padding:
            22px 22px 26px;
    }


    /* Proceso */

    .istar-process-grid {
        grid-template-columns: 1fr;
    }
}


/* ================================================================
   RESPONSIVE · MOBILE CHICO
================================================================ */

@media (max-width: 560px) {

    .istar-benefit-cards {
        grid-template-columns: 1fr;
    }

    .istar-benefits-visual {
        min-height: 310px;
    }
}


@media (max-width: 480px) {

    .istar-hero-video {
        min-height: 820px;
    }

    .istar-hero-panel {
        padding: 20px;

        border-radius: 24px;
    }

    .istar-hero-chip {
        flex-basis: 100%;
    }
}