/* =========================================================================
   TEMPLATE: ONYX - RESPONSABILIDAD: HERO, PORTADA Y TIPOGRAFÍA
   ========================================================================= */
.ez-hero-header {
    position: relative;
    margin-bottom: 25px;
}

.ez-hero-cover-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--ez-theme-bg-main);
}

@media (max-width: 767px) {
    .ez-hero-cover-frame {
        aspect-ratio: 1 / 1;
    }
}
.ez-hero-cover-frame img,
.ez-hero-cover-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.ez-hero-cover-mask {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: var(--ez-dyn-hero-overlay);
}

/* Avatar alineado al mismo eje izquierdo que los textos */
.ez-hero-avatar-frame {
    position: relative;
    margin-top: -75px;
    margin-left: 20px;
    padding: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    max-width: calc(100% - 40px);
}

.ez-hero-avatar-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--ez-avatar-border);
    background-color: var(--ez-avatar-bg);
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Badge ligeramente montado sobre el avatar para dar profundidad visual */
.ez-hero-badge-slot {
    display: block;
    margin-top: -13px;
    z-index: 25;
    position: relative;
}

/* Textos alineados al mismo eje izquierdo que la foto */
.ez-hero-identity {
    padding: 12px 20px 0 20px;
}

.ez-hero-title-row h1 {
    font-size: 26px;
    color: var(--ez-theme-text-main);
    font-family: var(--ez-font-primary);
    font-weight: 600;
    margin: 0;
    line-height: 1.1;
    transition: color 0.3s ease;
}

.ez-hero-slogan {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ez-pal-secondary);
    margin: 8px 0;
    line-height: 1.4;
}

.ez-hero-bio {
    color: var(--ez-theme-text-main);
    font-size: 13.5px;
    line-height: 1.6;
    margin: 10px 0 0 0;
    opacity: 0.95;
    transition: color 0.3s ease;
}

.ez-highlight {
    color: var(--ez-pal-secondary);
    font-weight: 600;
}

/* =========================================================================
   MÓDULO: STATUS BADGE (AUTOMÁTICO LIGHT/DARK Y NUEVOS TOKENS)
   ========================================================================= */
.ez-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ez-badge-bg);
    border: 1px solid var(--ez-badge-border);
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    width: max-content;
    opacity: 0; 
    transition: opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.ez-status-badge.show { 
    opacity: 1; 
}

.ez-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--ez-badge-border);
    transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.ez-status-text {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

@keyframes ezSoftPulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    60% {
        opacity: 0.72;
        transform: scale(1.28);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.ez-pulse-animation {
    animation: ezSoftPulse 2s infinite;
    will-change: transform, opacity;
}

/* 🟢 Estado: ABIERTO */
.ez-status-badge.open { 
    border-color: var(--ez-pal-status-open); 
    background-color: rgba(var(--ez-pal-status-open-rgb), 0.15); 
}
.ez-status-badge.open .ez-status-dot { 
    background-color: var(--ez-pal-status-open); 
    box-shadow: 0 0 8px var(--ez-pal-status-open); 
}
.ez-status-badge.open .ez-status-text { 
    color: var(--ez-pal-status-open); 
}

/* 🔴 Estado: CERRADO */
.ez-status-badge.closed { 
    border-color: var(--ez-pal-status-closed); 
    background-color: rgba(var(--ez-pal-status-closed-rgb), 0.15); 
}
.ez-status-badge.closed .ez-status-dot { 
    background-color: var(--ez-pal-status-closed); 
}
.ez-status-badge.closed .ez-status-text { 
    color: var(--ez-pal-status-closed); 
}

/* 🟡 Estado: ADVERTENCIA */
.ez-status-badge.warning { 
    border-color: var(--ez-pal-warning); 
    background-color: rgba(var(--ez-pal-warning-rgb), 0.15); 
}
.ez-status-badge.warning .ez-status-dot { 
    background-color: var(--ez-pal-warning); 
}
.ez-status-badge.warning .ez-status-text { 
    color: var(--ez-pal-warning); 
}