﻿/* =========================================================
   HERO (Lancaster Digital) - Estilos específicos
   Requiere variables definidas en lancaster.css:
   --ld-navy, --ld-orange, --ld-muted, --ld-border
   ========================================================= */


/* =========================
   HERO LEFT (texto + CTAs)
   ========================= */
.hero-left .hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-left .hero-sep {
    color: rgba(15,23,42,.35);
}

.hero-left .hero-brand {
    font-weight: 800;
    letter-spacing: -0.01em;
    color: rgba(15,23,42,.78);
}

.hero-title {
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: rgba(15,23,42,.92);
}

.hero-highlight {
    display: inline-block;
    padding: 0 .2em;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255,106,0,.10), rgba(11,27,51,.06));
}

.hero-lead {
    max-width: 58ch;
}

/* CTA polish */
.hero-cta {
    box-shadow: 0 14px 28px rgba(13,110,253,.20);
}

.hero-cta-outline {
    border-color: rgba(11,27,51,.22);
    color: rgba(11,27,51,.82);
}

    .hero-cta-outline:hover {
        border-color: rgba(11,27,51,.34);
        background: rgba(11,27,51,.04);
    }

/* HERO contenedor (fondo) */
.hero-pro {
    position: relative;
    padding: 20px 0;
    overflow: hidden;
}

    .hero-pro .hero-bg {
        position: absolute;
        inset: 0;
        background: radial-gradient(900px 420px at 18% 30%, rgba(255,106,0,.10), transparent 60%), radial-gradient(850px 450px at 85% 25%, rgba(11,27,51,.10), transparent 55%), linear-gradient(180deg, rgba(11,27,51,.06), rgba(255,255,255,0));
        pointer-events: none;
    }

/* Card del carrusel */
.hero-card {
    border: 1px solid rgba(2, 8, 23, .08);
}

.hero-logo {
    height: 42px;
    width: auto;
}

/* Carousel (altura fija + flex solo visible) */
.hero-indicators {
    margin: 0;
    gap: 6px;
    justify-content: flex-start;
    position: static;
    padding: 0;
    margin-bottom: 10px;
}

    .hero-indicators [data-bs-target] {
        width: 22px;
        height: 6px;
        border-radius: 999px;
        border: 0;
        opacity: .35;
    }

    .hero-indicators .active {
        opacity: .9;
    }

.hero-card .carousel-inner {
    min-height: 300px;
}

.hero-card .carousel-item {
    min-height: 300px;
}

    .hero-card .carousel-item.active,
    .hero-card .carousel-item-next,
    .hero-card .carousel-item-prev {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-card .carousel-item > * {
        width: 100%;
    }

.hero-control {
    width: 38px;
    opacity: 0;
    transition: opacity .15s ease;
}

.hero-card:hover .hero-control {
    opacity: .35;
}

.hero-control:hover {
    opacity: .7;
}

@media (max-width: 991.98px) {
    .hero-pro {
        padding: 54px 0;
    }

    .hero-control {
        display: none;
    }

    .hero-card .carousel-inner,
    .hero-card .carousel-item {
        min-height: 240px;
    }
}



/* =========================
   HERO TRUST (chips)
   ========================= */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .hero-trust .trust-item {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border: 1px solid rgba(2,8,23,.10);
        border-radius: 999px;
        background: rgba(255,255,255,.65);
        backdrop-filter: blur(6px);
        color: rgba(15,23,42,.76);
        font-size: .92rem;
        font-weight: 700;
        transition: transform .12s ease, border-color .12s ease, background .12s ease;
    }

        .hero-trust .trust-item:hover {
            transform: translateY(-1px);
            border-color: rgba(255,106,0,.22);
            background: rgba(255,255,255,.86);
        }

    .hero-trust .trust-ico {
        width: 26px;
        height: 26px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: rgba(11,27,51,.06);
        border: 1px solid rgba(2,8,23,.08);
        color: rgba(11,27,51,.85);
    }

        .hero-trust .trust-ico i {
            font-size: 14px;
            line-height: 1;
        }


/* =========================
   CARD LOOK (reutilizable)
   ========================= */
/* Fondo + borde + hover consistente en los elementos tipo “card” */
.icon-chip,
.service-item,
.product-item,
.diff-box {
    border-radius: 14px;
    border: 1px solid rgba(2, 8, 23, .10);
    background: rgba(255,255,255,.80);
    box-shadow: 0 10px 18px rgba(2,8,23,.05);
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}

    .icon-chip:hover,
    .service-item:hover,
    .product-item:hover,
    .diff-box:hover {
        transform: translateY(-1px);
        border-color: rgba(255,106,0,.22);
        background: rgba(255,255,255,.92);
        box-shadow: 0 14px 26px rgba(2,8,23,.09);
    }

/* “Footers” de slide (bloques suaves) */
.hero-infra-note,
.services-foot,
.products-foot,
.diff-foot {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(2, 8, 23, .08);
    background: rgba(255,255,255,.65);
}


/* =========================
   SLIDE 1: INFRA ICONS
   ========================= */
/* Grid 4 (2x2) */
.icon-grid.icon-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

/* Chip */
.icon-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

/* SVG a color */
.brand-ico {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: inline-block;
    filter: drop-shadow(0 6px 10px rgba(2,8,23,.10));
}

.icon-chip span {
    font-size: .92rem;
    font-weight: 700;
    color: rgba(15,23,42,.88);
    letter-spacing: -0.01em;
}


/* =========================
   SLIDE 2: SERVICIOS
   (apto para altura fija: scroll interno)
   ========================= */
.services-list {
    display: grid;
    gap: 8px;
    /* clave cuando el carrusel tiene altura fija */
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding-right: 6px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
}

.service-ico {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(2, 8, 23, .10);
    background: rgba(11,27,51,.06);
    color: rgba(11,27,51,.85);
}

    .service-ico i {
        font-size: 16px;
        line-height: 1;
    }

.service-txt {
    min-width: 0;
}

.service-title {
    font-weight: 800;
    letter-spacing: -0.01em;
    color: rgba(15,23,42,.90);
    line-height: 1.15;
}

.service-sub {
    margin-top: 2px;
    font-size: .88rem;
    color: rgba(15,23,42,.68);
    line-height: 1.25;
}


/* =========================
   SLIDE 3: PRODUCTOS
   (apto para altura fija: scroll interno)
   ========================= */
.products-list {
    display: grid;
    gap: 8px;
    /* clave para altura fija */
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding-right: 6px;
}

.product-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
}

.product-ico {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(2, 8, 23, .10);
    background: rgba(11,27,51,.06);
    color: rgba(11,27,51,.85);
}

    .product-ico i {
        font-size: 16px;
        line-height: 1;
    }

.product-txt {
    min-width: 0;
}

.product-title {
    font-weight: 800;
    letter-spacing: -0.01em;
    color: rgba(15,23,42,.90);
    line-height: 1.15;
}

.product-sub {
    margin-top: 2px;
    font-size: .88rem;
    color: rgba(15,23,42,.68);
    line-height: 1.25;
}


/* =========================
   Scrollbars (Servicios + Productos)
   ========================= */
.services-list::-webkit-scrollbar,
.products-list::-webkit-scrollbar {
    width: 8px;
}

.services-list::-webkit-scrollbar-thumb,
.products-list::-webkit-scrollbar-thumb {
    background: rgba(2,8,23,.16);
    border-radius: 999px;
}

.services-list::-webkit-scrollbar-track,
.products-list::-webkit-scrollbar-track {
    background: rgba(2,8,23,.06);
    border-radius: 999px;
}


/* =========================
   SLIDE 4: DIFERENCIAL (2x2)
   ========================= */
/* Asegura que este slide quede “arriba” y no centrado */
.hero-card .diff-slide.active,
.hero-card .diff-slide.carousel-item-next,
.hero-card .diff-slide.carousel-item-prev {
    justify-content: flex-start;
}

.diff-grid {
    flex: 1 1 auto;
    min-height: 0;
}

.diff-box {
    height: 100%;
    padding: 12px 12px;
}

.diff-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.diff-ico {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(2, 8, 23, .10);
    background: rgba(11,27,51,.06);
    color: rgba(11,27,51,.85);
    flex: 0 0 auto;
}

    .diff-ico i {
        font-size: 16px;
        line-height: 1;
    }

.diff-kicker {
    font-size: .80rem;
    color: rgba(15,23,42,.62);
    line-height: 1.1;
}

.diff-title {
    font-weight: 850;
    letter-spacing: -0.01em;
    color: rgba(15,23,42,.90);
    line-height: 1.15;
    margin-top: 2px;
}

.diff-sub {
    margin-top: 8px;
    font-size: .84rem;
    color: rgba(15,23,42,.68);
    line-height: 1.2;
}


/* =========================
   Responsive
   ========================= */
@media (max-width: 991.98px) {
    /* Si alguna vez vuelves a 6 chips, en mobile queda más compacto */
    .icon-grid.icon-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
