﻿/* ============================================
   PÁGINA DE INICIO - Estilos específicos
   ============================================ */

/* --- Hero principal --- */
.hero-inicio {
    position: relative;
    background-color: var(--color-secundario);
    overflow: hidden;
}

.hero-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-secundario);
    z-index: 0;
}

.min-vh-hero {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 40px;
}

.hero-subtitulo {
    font-family: var(--fuente-cuerpo);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-acento);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.hero-titulo {
    font-family: var(--fuente-titulos);
    font-size: 3.25rem;
    font-weight: 700;
    color: var(--texto-claro);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-descripcion {
    font-size: 1.1rem;
    color: rgba(252, 252, 252, 0.7);
    max-width: 480px;
    line-height: 1.7;
}

/* --- Imagen mockup del hero --- */
.hero-mockup {
    position: absolute;
    right: -0%;
    top: 50%;
    transform: translateY(-50%);
    width: 55%;
    z-index: 1;
    pointer-events: none;
}

    .hero-mockup img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }

/* Hero indicadores (franja inferior) */
.hero-indicadores {
    position: relative;
    z-index: 2;
    background-color: var(--color-primario);
    padding: 28px 0;
}

.hero-indicador {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.hero-indicador-numero {
    font-family: var(--fuente-titulos);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-acento);
    line-height: 1;
}

.hero-indicador p {
    font-size: 0.9rem;
    color: rgba(252, 252, 252, 0.8);
    margin: 0;
    line-height: 1.4;
}

/* --- Video ERP en inicio --- */
.video-erp-contenedor {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    background-color: #000;
}

    .video-erp-contenedor iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

/* --- Imágenes de secciones --- */
#presentacion img,
#erp-destacado img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Datos destacados --- */
.dato-destacado {
    display: flex;
    flex-direction: column;
}

.dato-numero {
    font-family: var(--fuente-titulos);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primario);
    line-height: 1;
}

.dato-texto {
    font-size: 0.9rem;
    color: var(--texto-secundario);
    margin-top: 4px;
}

/* --- Lista con checks --- */
.lista-check {
    list-style: none;
    padding: 0;
}

    .lista-check li {
        font-size: 0.95rem;
        color: var(--texto-parrafo);
        padding: 6px 0;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

        .lista-check li i {
            color: var(--color-primario);
            font-size: 1rem;
            margin-top: 3px;
            flex-shrink: 0;
        }

/* --- Tarjetas de sectores (fondo oscuro) --- */
.tarjeta-sector {
    text-align: center;
    padding: 32px 20px;
    border: 1px solid rgba(252, 252, 252, 0.1);
    border-radius: 0;
    transition: all 0.3s ease;
}

    .tarjeta-sector:hover {
        background-color: rgba(252, 252, 252, 0.05);
        border-color: rgba(252, 252, 252, 0.2);
    }

    .tarjeta-sector i {
        font-size: 2.5rem;
        color: var(--color-acento);
        margin-bottom: 16px;
        display: block;
    }

    .tarjeta-sector h4 {
        font-family: var(--fuente-titulos);
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--texto-claro);
        margin-bottom: 8px;
    }

    .tarjeta-sector p {
        font-size: 0.9rem;
        color: rgba(252, 252, 252, 0.6);
        margin: 0;
    }

/* --- Tarjetas de beneficios --- */
.tarjeta-beneficio {
    padding: 28px 24px;
    border: 1px solid var(--borde-claro);
    border-radius: 0;
    transition: all 0.3s ease;
    height: 100%;
}

    .tarjeta-beneficio:hover {
        border-color: var(--color-primario);
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(28, 70, 115, 0.08);
    }

.beneficio-icono {
    width: 52px;
    height: 52px;
    background-color: #EBF1F8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 0;
}

    .beneficio-icono i {
        font-size: 1.4rem;
        color: var(--color-primario);
    }

.tarjeta-beneficio h4 {
    font-family: var(--fuente-titulos);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.tarjeta-beneficio p {
    font-size: 0.9rem;
    color: var(--texto-secundario);
    margin: 0;
}

/* --- Responsive del Home --- */
@media (max-width: 1199.98px) {
    .hero-mockup {
        right: -8%;
        width: 52%;
    }

    .hero-titulo {
        font-size: 2.75rem;
    }
}

@media (max-width: 991.98px) {
    .min-vh-hero {
        min-height: auto;
        padding-top: 140px;
        padding-bottom: 30px;
    }

    .hero-mockup {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin-top: 40px;
        margin-bottom: 30px;
        padding: 0 16px;
    }

    .hero-titulo {
        font-size: 2.5rem;
    }

    .hero-descripcion {
        max-width: 100%;
    }

    .hero-indicadores .col-md-4 {
        margin-bottom: 16px;
    }

        .hero-indicadores .col-md-4:last-child {
            margin-bottom: 0;
        }
}

@media (max-width: 575.98px) {
    .min-vh-hero {
        padding-top: 120px;
    }

    .hero-titulo {
        font-size: 2rem;
    }

    .hero-descripcion {
        font-size: 1rem;
    }

    .hero-mockup {
        margin-top: 30px;
        margin-bottom: 24px;
        padding: 0 8px;
    }

    .dato-numero {
        font-size: 2rem;
    }
}
