/* ═══════════════════════════════════════════════════════════
   monitorcss.css | Estilos para la Portada del Monitor
   Sistema Prisma ERP
═══════════════════════════════════════════════════════════ */

/* ── VARIABLES Y CONTENEDOR ────────────────────────────── */
:root {
    --hm-dark: #0a0e1a;
    --hm-text: #4b5568;
    --hm-blue: #0052cc;
    --hm-green: #00c896;
}

.hm-hero-section {
    position: relative;
    padding: 6rem 1rem 5rem;
    background-color: #f7f9fc;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.hm-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* ── EFECTOS DE LUZ DE FONDO ───────────────────────────── */
.hm-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}
.glow-1 {
    width: 400px; height: 400px;
    background: var(--hm-blue);
    top: -100px; left: -100px;
}
.glow-2 {
    width: 300px; height: 300px;
    background: var(--hm-green);
    bottom: 100px; right: -50px;
}

/* ── TEXTOS ────────────────────────────────────────────── */
.hm-text-content {
    text-align: center;
    max-width: 800px;
    margin-bottom: 4rem;
    animation: hmFadeDown 1s ease-out forwards;
}

.hm-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #e8f0ff;
    color: var(--hm-blue);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hm-title {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--hm-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hm-gradient {
    background: linear-gradient(135deg, var(--hm-blue) 0%, var(--hm-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hm-description {
    font-size: 1.1rem;
    color: var(--hm-text);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hm-actions {
    display: flex;
    justify-content: center;
}

.hm-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--hm-blue);
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 82, 204, 0.3);
}

.hm-btn-primary:hover {
    background: #003e99;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 82, 204, 0.4);
    color: #fff;
}

/* ── MOCKUP DEL MONITOR (PURO CSS) ─────────────────────── */
.hm-visual-content {
    width: 100%;
    display: flex;
    justify-content: center;
    animation: hmFloatUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transform: translateY(40px);
    opacity: 0;
}

.hm-monitor-assembly {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 850px;
}

/* Marco principal */
.hm-monitor-frame {
    width: 100%;
    background: #1a1c23;
    padding: 1.5% 1.5% 3%;
    border-radius: 16px 16px 8px 8px;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.25),
        inset 0 1px 1px rgba(255,255,255,0.2),
        inset 0 -2px 5px rgba(0,0,0,0.5);
    position: relative;
    z-index: 3;
}

/* Pantalla interior */
.hm-monitor-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    border-radius: 4px;
}

/* Efecto reflejo en el cristal */
.hm-glass-glare {
    position: absolute;
    top: 0; right: -50%; bottom: 0; left: 0;
    background: linear-gradient(105deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 70%);
    z-index: 2;
    pointer-events: none;
}

/* Imagen del sistema con efecto de encendido */
.hm-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    
    /* Estado inicial: apagado, oscuro y desenfocado */
    opacity: 0;
    filter: brightness(0.1) blur(10px) contrast(1.2);
    transform: scale(1.05);
    
    /* Animación principal */
    animation: hmTurnOn 2s 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Logo falso en el marco inferior */
.hm-monitor-logo {
    position: absolute;
    bottom: 1%;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

/* Cuello del soporte */
.hm-monitor-stand {
    width: 12%;
    height: 60px;
    background: linear-gradient(to right, #b0b5be, #e2e8f0, #b0b5be);
    position: relative;
    z-index: 2;
    box-shadow: inset 0 5px 10px rgba(0,0,0,0.3);
}

/* Base del soporte */
.hm-monitor-base {
    width: 35%;
    height: 12px;
    background: linear-gradient(to bottom, #d1d5db, #9ca3af);
    border-radius: 4px 4px 0 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* ── ANIMACIONES KEYFRAMES ─────────────────────────────── */
@keyframes hmFadeDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes hmFloatUp {
    to { transform: translateY(0); opacity: 1; }
}

/* El efecto "innovador" de encendido del monitor */
@keyframes hmTurnOn {
    0% {
        opacity: 0;
        filter: brightness(0.1) blur(10px) contrast(1.2);
        transform: scale(1.05);
    }
    30% {
        opacity: 0.5;
        filter: brightness(1.5) blur(4px) contrast(1.1); /* Destello */
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        filter: brightness(1) blur(0) contrast(1);
        transform: scale(1);
    }
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 768px) {
    .hm-hero-section {
        padding: 4rem 1rem 3rem;
    }
    .hm-monitor-frame {
        padding: 3% 3% 5%;
        border-radius: 10px 10px 6px 6px;
    }
    .hm-monitor-stand {
        height: 40px;
        width: 15%;
    }
    .hm-monitor-base {
        width: 45%;
    }
}