/* ======================================================
   HOME CSS — C4 SYSTEM PRO VERSION
   FECHA: 2026-04-29
   STATUS: VERSION NUEVA (TEST SERVER)
====================================================== */

.home-hero {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    padding: 0;
}

/* ================= SLIDES ================= */

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    /* Fondo */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Visibilidad */
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s ease;
    z-index: 1;

    /* Layout */
    display: flex;
    align-items: center;

    /* =====================
       VARIABLES CMS (CLAVE)
       ===================== */
    --hero-title-size: 48px;
    --hero-subtitle-size: 20px;
    --hero-text-size: 18px;
    --hero-btn-size: 16px;
    --hero-overlay: 0.5;
}

/* Slide activo */
.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* ================= OVERLAY ================= */

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,var(--hero-overlay,0.5));
    z-index: 2;
}

/* ================= CONTENIDO ================= */

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;

    display: flex;
}

/* ===== ALINEACIONES DESDE ADMIN ===== */

.hero-slide.align-left .hero-content {
    justify-content: flex-start;
    text-align: left;
}

.hero-slide.align-center .hero-content {
    justify-content: center;
    text-align: center;
}

.hero-slide.align-right .hero-content {
    justify-content: flex-end;
    text-align: right;
}

.hero-inner {
    color: #fff;
    max-width: 700px;
}

/* ================= TEXTOS ================= */

.hero-eyebrow {
    font-size: var(--hero-subtitle-size,12px);
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .9;
    margin-bottom: 10px;
}

.hero-title {
    font-size: var(--hero-title-size,48px);
    font-weight: 800;
    margin-bottom: 18px;
    text-transform: uppercase;
    text-shadow: 0 4px 12px rgba(0,0,0,.6);
}

.hero-text {
    font-size: var(--hero-text-size,18px);
    line-height: 1.6;
    margin-bottom: 28px;
}

/* ================= BOTÓN ================= */

/* ================= BOTÓN HERO ================= */

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;

    /* 🔥 TAMAÑO REAL CONTROLADO DESDE ADMIN */
    font-size: var(--hero-btn-size);

    padding:
        calc(var(--hero-btn-size) * 0.75)
        calc(var(--hero-btn-size) * 1.6);

    line-height: 1;
    white-space: nowrap;

    border: 2px solid #f4c542;
    color: #f4c542;
    background: transparent;

    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;

    transition:
        background .25s ease,
        color .25s ease,
        transform .15s ease;
}

.hero-btn:hover {
    background: #f4c542;
    color: #000;
    transform: translateY(-1px);
}

/* ================= NAVEGACIÓN ================= */

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    background: rgba(255,255,255,.15);
    color: #fff;
    border: none;

    font-size: 26px;
    padding: 14px;
    cursor: pointer;
    border-radius: 50%;
}

.hero-prev { left: 20px; }
.hero-next { right: 20px; }

/* ================= DOTS ================= */

.hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;

    display: flex;
    gap: 12px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,.3);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #f4c542;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
    .home-hero { height: 420px; }
    .hero-nav { display: none; }
}

/* ======================================================
   HOME BANNERS PUBLICOS
   - Grid 3 columnas
   - Limitado a ancho profesional
   - Centrado como bloque del home
   - NO afecta slider
====================================================== */

.home-banners {
    padding: 48px 0;
}

.home-banners-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
}

.home-banners-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-banner-item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    text-decoration: none;
    color: inherit;
}

.home-banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
    filter: brightness(0.85);
}

.home-banner-item.has-zoom:hover img {
    transform: scale(1.08);
}

.home-banner-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    padding: 24px;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.25),
        rgba(0,0,0,0.65)
    );
}

.home-banner-content {
    max-width: 90%;
}

.home-banner-content h2 {
    color: #fff;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 14px;
    text-shadow: 0 3px 10px rgba(0,0,0,.75);
}

.home-banner-content p {
    color: #fff;
    font-size: 15px;
    margin: 0 0 14px;
    text-shadow: 0 2px 6px rgba(0,0,0,.65);
}

.home-banner-btn {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid #fff;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    background: rgba(0,0,0,.25);
    transition: all .25s ease;
}

.home-banner-item:hover .home-banner-btn {
    background: #fff;
    color: #000;
}

@media (max-width: 1000px) {
    .home-banners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .home-banners-grid {
        grid-template-columns: 1fr;
    }
}

/* ======================================================
   HOME SECCIONES CMS — LANDING PRO
====================================================== */

.home-secciones {
    max-width: 1360px;
    margin: 0 auto;
    padding: 35px 24px 40px;
}

/* Valor principal */
.home-valor {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 56px;
}

.home-valor h2 {
    font-size: 38px;
    line-height: 1.15;
    margin: 0 0 16px;
    font-weight: 800;
    color: #17212b;
}

.home-valor p {
    font-size: 17px;
    line-height: 1.7;
    color: #5b6470;
    margin: 0 0 24px;
}

/* ======================================================
   VALOR PRINCIPAL — 2 COLUMNAS PROFESIONAL
====================================================== */

.home-valor.layout-2col {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 40px;

    max-width: 1100px;
    margin: 0 auto 60px;
}

/* TEXTO */
.home-valor-texto {
    text-align: left;
}

.home-valor-texto h2 {
    font-size: 38px;
    margin-bottom: 16px;
}

.home-valor-texto p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* IMAGEN */
.home-valor-img img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,.15);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .home-valor.layout-2col {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-valor-texto {
        text-align: center;
    }
}




/* Botón principal */
.home-secciones .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.home-secciones .btn-primary:hover {
    background: #000;
}

/* ======================================================
   TECH CARDS — ESTILO C4 SYSTEM (PRO)
====================================================== */

.home-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 44px 0 70px;
}

/* CARD */
.tech-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 18px;
    padding: 28px;

    border: 1px solid rgba(0,0,0,0.06);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;

    overflow: hidden;
}

/* LINEA TECNOLÓGICA SUPERIOR */
.tech-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;

    background: linear-gradient(90deg, #0ea5e9, #3b82f6);
}

/* HOVER */
.tech-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    border-color: rgba(59,130,246,0.25);
}

/* ICONO */
.tech-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;

    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    margin-bottom: 18px;

    box-shadow: 0 10px 20px rgba(59,130,246,0.25);
}

/* TITULO */
.tech-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #0f172a;
}

/* TEXTO */
.tech-card p {
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
}

/* Bloque empresa */
.home-empresa {
    background: #f7f8fa;
    border-radius: 20px;
    padding: 46px;
    margin: 20px 0 70px;
    border: 1px solid #e6e8eb;
}

.home-empresa h2 {
    font-size: 30px;
    margin: 0 0 16px;
    color: #17212b;
}

.home-empresa p {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
    max-width: 900px;
}

/* CTA final */
.home-cta {
    text-align: center;
    background: #111827;
    color: #fff;
    border-radius: 22px;
    padding: 52px 28px;
    margin-top: 40px;
}

.home-cta h2 {
    font-size: 32px;
    margin: 0 0 12px;
}

.home-cta p {
    font-size: 16px;
    color: rgba(255,255,255,.78);
    max-width: 720px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.home-cta .btn-primary {
    background: #fff;
    color: #111827;
}

.home-cta .btn-primary:hover {
    background: #e5e7eb;
}

/* Responsive */
@media (max-width: 900px) {
    .home-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hero h2 {
        font-size: 30px;
    }
}

@media (max-width: 640px) {
    .home-secciones {
        padding: 50px 16px;
    }

    .home-cards {
        grid-template-columns: 1fr;
    }

    .home-empresa {
        padding: 28px;
    }
}

/* ======================================================
   BLOQUE EMPRESA — ESTILO TECNOLÓGICO ELEGANTE
====================================================== */

.tech-info-box {
    position: relative;
    background:
        linear-gradient(135deg, #ffffff 0%, #f8fafc 55%, #eef6ff 100%);
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 22px;
    padding: 48px;
    margin: 24px 0 70px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.tech-info-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #0ea5e9, #2563eb);
}

.section-kicker {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #0f4c81;
}

.tech-info-box h2 {
    font-size: 32px;
    margin: 0 0 16px;
    color: #0f172a;
}

.tech-info-box p {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    max-width: 920px;
}


/* ======================================================
   CTA FINAL — OSCURO TECNOLÓGICO PREMIUM
====================================================== */

.tech-cta {
    position: relative;
    text-align: center;
    color: #ffffff;
    border-radius: 24px;
    padding: 58px 32px;
    margin-top: 44px;
    overflow: hidden;

    background:
        radial-gradient(circle at top left, rgba(14,165,233,.28), transparent 35%),
        linear-gradient(135deg, #020617 0%, #0f172a 55%, #111827 100%);

    border: 1px solid rgba(14, 165, 233, 0.25);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
}

.tech-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: .25;
}

.tech-cta > * {
    position: relative;
    z-index: 2;
}

.section-kicker-light {
    color: #7dd3fc;
}

.tech-cta h2 {
    font-size: 34px;
    margin: 0 0 14px;
    color: #ffffff;
}

.tech-cta p {
    font-size: 16px;
    color: rgba(255,255,255,.78);
    max-width: 760px;
    margin: 0 auto 26px;
    line-height: 1.75;
}

.tech-cta .btn-cta-light {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(255,255,255,.65);
}

.tech-cta .btn-cta-light:hover {
    background: #0ea5e9;
    color: #ffffff;
}


/* ======================================================
   RESPONSIVE BLOQUES HOME
====================================================== */

@media (max-width: 640px) {
    .tech-info-box {
        padding: 32px 26px;
    }

    .tech-info-box h2,
    .tech-cta h2 {
        font-size: 26px;
    }

    .tech-cta {
        padding: 44px 24px;
    }
}

/* ======================================================
   AJUSTES SOLO MÓVIL — HOME / HEADER VISUAL
   No afecta escritorio
====================================================== */

@media (max-width: 640px) {

    /* Slider más cómodo en teléfono */
    .home-hero {
        height: 520px;
    }

    .hero-slide {
        background-position: center center;
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.62);
    }

    .hero-content {
        padding: 0 28px;
        align-items: center;
    }

    .hero-inner {
        max-width: 100%;
    }

    .hero-title {
        font-size: 29px;
        line-height: 1.25;
        margin-bottom: 16px;
        text-shadow: 0 4px 14px rgba(0,0,0,.75);
    }

    .hero-eyebrow {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .hero-text {
        font-size: 18px;
        line-height: 1.45;
        margin-bottom: 24px;
    }

    .hero-btn {
        font-size: 15px;
        padding: 12px 18px;
    }

    .hero-dots {
        bottom: 24px;
    }

    /* Cards del home: evita que se vean cortadas */
    .home-banners {
        padding: 34px 0;
    }

    .home-banners-container {
        padding: 0 18px;
    }

    .home-banner-item {
        aspect-ratio: 4 / 3;
        border-radius: 14px;
    }

    .home-banner-overlay {
        padding: 22px;
        align-items: center;
    }

    .home-banner-content h2 {
        font-size: 28px;
        line-height: 1.12;
    }

    .home-banner-content p {
        font-size: 15px;
    }

    .home-banner-btn {
        font-size: 13px;
        padding: 9px 16px;
    }
}
