/*
 * U-TECH.CL - ESTILOS EXCLUSIVOS DE PORTADA (MODULAR V.7.6.0)
 * Ubicación: /public_html/css/home.css
 * Contiene: Hero Carrusel, Carrusel DESTACADOS (1 fila), Lienzo Ejecutivo Minimalista PT-E56 y Servicios.
 */

/* ==========================================================================
   1. HERO CARRUSEL PRINCIPAL CON PLAY/PAUSE
   ========================================================================== */
.ut-hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--ut-navy);
    margin-bottom: 35px;
}
.ut-hero-slides {
    position: relative;
    min-height: 380px;
}
.ut-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    display: flex;
    align-items: center;
    padding: 40px 0;
}
.ut-hero-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
.ut-hero-slide__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}
.ut-hero-tag {
    display: inline-block;
    background: rgba(0, 212, 255, 0.14);
    color: var(--ut-cyan);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.ut-hero-slide__text h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.12;
    margin-bottom: 16px;
}
.ut-hero-slide__text p {
    font-size: 16px;
    color: #cbd5e1;
    margin-bottom: 26px;
    max-width: 540px;
}
.ut-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.ut-btn-hero-outline {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.22);
    padding: 13px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.ut-hero-tech-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    color: #ffffff;
}
.ut-hero-tech-card__badge {
    font-size: 11px;
    font-weight: 800;
    color: var(--ut-cyan);
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}
.ut-hero-big-icon {
    font-size: 68px;
    color: var(--ut-cyan);
    margin-bottom: 22px;
}
.ut-hero-tech-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
}
.ut-hero-tech-stats strong {
    display: block;
    font-size: 14px;
    color: #ffffff;
}
.ut-hero-tech-stats span {
    font-size: 11px;
    color: #94a3b8;
}

.ut-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(11, 17, 32, 0.65);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    cursor: pointer;
    z-index: 5;
    font-size: 16px;
}
.ut-hero-prev { left: 18px; }
.ut-hero-next { right: 18px; }

.ut-hero-controls-bottom {
    position: absolute;
    bottom: 14px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    z-index: 5;
}
.ut-hero-dots {
    display: flex;
    gap: 8px;
}
.ut-hero-dot {
    width: 28px;
    height: 6px;
    border-radius: 4px;
    border: none;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
}
.ut-hero-dot.active {
    background: var(--ut-cyan);
    width: 42px;
}
.ut-hero-playpause {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: none;
    background: var(--ut-blue);
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
}

/* ==========================================================================
   2. CARRUSEL "DESTACADOS" (1 SOLA FILA + 3 LÍNEAS EN TARJETA)
   ========================================================================== */
.ut-oyl-carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ut-oyl-bento {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    width: 100%;
    padding: 6px 2px 14px 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.ut-oyl-bento::-webkit-scrollbar {
    display: none;
}

.ut-oyl-card {
    flex: 0 0 calc((100% - (5 * 16px)) / 6);
    min-width: 195px;
    max-width: 230px;
    scroll-snap-align: start;
    background: #ffffff;
    border: 1px solid var(--ut-border);
    border-radius: 12px;
    padding: 18px 16px;
    text-decoration: none;
    color: var(--ut-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
    overflow: hidden;
}
.ut-oyl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    border-color: var(--ut-blue);
}

.ut-oyl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--ut-dark);
    border: 1px solid var(--ut-border);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s ease;
}
.ut-oyl-nav:hover {
    background: var(--ut-blue);
    color: #ffffff;
    border-color: var(--ut-blue);
}
.ut-oyl-nav--prev { left: -14px; }
.ut-oyl-nav--next { right: -14px; }

.ut-oyl-card__img-box {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 6px;
}
.ut-oyl-card__img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.ut-oyl-card__info {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ut-oyl-card__cat {
    font-size: 10px;
    font-weight: 700;
    color: var(--ut-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 5px;
}
.ut-oyl-card__title {
    font-size: 12px;
    font-weight: 700;
    color: var(--ut-dark);
    line-height: 1.38;
    height: 50px;
    min-height: 50px;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   3. LIENZO EJECUTIVO, MINIMALISTA Y SOFISTICADO (PT-E56)
   ========================================================================== */
.ut-exec-spotlight {
    display: grid;
    grid-template-columns: 230px 1fr 240px;
    align-items: center;
    gap: 36px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px 34px;
    box-shadow: 0 12px 32px -14px rgba(15, 23, 42, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.ut-exec-spotlight:hover {
    border-color: #cbd5e1;
    box-shadow: 0 18px 38px -14px rgba(15, 23, 42, 0.09);
}

.ut-exec-spotlight__media {
    width: 100%;
    height: 195px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.25s ease;
}
.ut-exec-spotlight:hover .ut-exec-spotlight__media {
    background: #f1f5f9;
}
.ut-exec-spotlight__media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}
.ut-exec-spotlight:hover .ut-exec-spotlight__media img {
    transform: scale(1.04);
}

.ut-exec-spotlight__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.ut-exec-spotlight__eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}
.ut-exec-spotlight__brand {
    color: var(--ut-blue);
    font-weight: 800;
}
.ut-exec-spotlight__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd5e1;
}

.ut-exec-spotlight__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.3px;
    margin-bottom: 10px;
}
.ut-exec-spotlight__title a {
    color: var(--ut-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}
.ut-exec-spotlight__title a:hover {
    color: var(--ut-blue);
}

.ut-exec-spotlight__summary {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 16px;
    max-width: 650px;
}

.ut-exec-spotlight__specs {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.ut-exec-spotlight__specs li {
    position: relative;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.ut-exec-spotlight__specs li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ut-blue);
    opacity: 0.75;
}

.ut-exec-spotlight__commercial {
    border-left: 1px solid #e2e8f0;
    padding-left: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.ut-exec-spotlight__price-wrap {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}
.ut-exec-spotlight__price-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    margin-bottom: 2px;
}
.ut-exec-spotlight__price {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.8px;
    line-height: 1.1;
}
.ut-exec-spotlight__iva {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 2px;
}

.ut-exec-spotlight__stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    margin-bottom: 16px;
}
.ut-exec-spotlight__stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.ut-exec-spotlight__stock.in-stock {
    color: #059669;
}
.ut-exec-spotlight__stock.out-stock {
    color: #dc2626;
}

.ut-exec-spotlight__cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.ut-exec-spotlight__btn-view {
    width: 100%;
    height: 40px;
    background: var(--ut-dark);
    color: #ffffff;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.ut-exec-spotlight__btn-view:hover {
    background: var(--ut-blue);
    transform: translateY(-1px);
}

.ut-exec-spotlight__btn-add {
    width: 100%;
    height: 38px;
    background: #f8fafc;
    color: var(--ut-dark);
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.ut-exec-spotlight__btn-add:hover {
    border-color: var(--ut-blue);
    color: var(--ut-blue);
    background: #eff6ff;
}

/* ==========================================================================
   4. SECCIÓN DE SERVICIOS CORPORATIVOS
   ========================================================================== */
.ut-services-section {
    background: #ffffff;
    border-top: 1px solid var(--ut-border);
    border-bottom: 1px solid var(--ut-border);
    padding: 55px 0;
    margin-top: 20px;
}
.ut-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.ut-service-card {
    background: var(--ut-bg);
    padding: 28px 24px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ut-dark);
    border: 1px solid transparent;
    transition: all 0.2s;
}
.ut-service-card:hover {
    border-color: var(--ut-blue);
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.ut-service-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--ut-blue);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}
.ut-service-card h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
}
.ut-service-card p {
    font-size: 13px;
    color: var(--ut-muted);
    line-height: 1.5;
}

/* ==========================================================================
   5. RESPONSIVE PORTADA (TABLETS, IPADS Y CELULARES)
   ========================================================================== */
@media (max-width: 1100px) {
    .ut-services-grid { grid-template-columns: repeat(2, 1fr); }
    .ut-exec-spotlight {
        grid-template-columns: 200px 1fr 210px;
        gap: 24px;
        padding: 24px;
    }
    .ut-exec-spotlight__commercial {
        padding-left: 24px;
    }
    .ut-exec-spotlight__title {
        font-size: 19px;
    }
}

@media (max-width: 900px) {
    .ut-hero-slide__grid { grid-template-columns: 1fr; text-align: center; }
    .ut-hero-slide__text p { margin: 0 auto 22px auto; }
    .ut-hero-actions { justify-content: center; }
    .ut-hero-slide__visual { display: none; }

    .ut-oyl-card {
        flex: 0 0 195px;
        min-width: 195px;
    }

    /* En Tablets / iPads el lienzo ejecutivo se organiza en 2 bloques limpios */
    .ut-exec-spotlight {
        grid-template-columns: 180px 1fr;
        gap: 22px;
        padding: 22px;
    }
    .ut-exec-spotlight__commercial {
        grid-column: 1 / -1;
        border-left: none;
        border-top: 1px solid #f1f5f9;
        padding-left: 0;
        padding-top: 16px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 16px;
    }
    .ut-exec-spotlight__price-wrap,
    .ut-exec-spotlight__stock {
        margin-bottom: 0;
    }
    .ut-exec-spotlight__cta {
        flex-direction: row;
        width: auto;
        min-width: 320px;
    }
}

@media (max-width: 600px) {
    .ut-hero-slide__text h1 { font-size: 26px; }
    .ut-oyl-card {
        flex: 0 0 175px;
        min-width: 175px;
        padding: 14px 12px;
    }
    .ut-oyl-nav { display: none; }

    /* En Celulares el lienzo ejecutivo se adapta verticalmente con estética limpia */
    .ut-exec-spotlight {
        grid-template-columns: 1fr;
        padding: 20px 16px;
        gap: 16px;
    }
    .ut-exec-spotlight__media {
        height: 175px;
    }
    .ut-exec-spotlight__title {
        font-size: 17px;
    }
    .ut-exec-spotlight__summary {
        font-size: 13px;
        margin-bottom: 12px;
    }
    .ut-exec-spotlight__specs {
        gap: 6px 14px;
    }
    .ut-exec-spotlight__commercial {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .ut-exec-spotlight__cta {
        flex-direction: column;
        width: 100%;
        min-width: 0;
    }
    .ut-services-grid { grid-template-columns: 1fr; }
}