.portal-container {
    padding: 4rem 0;
    background-color: var(--color-light);
    min-height: 80vh;
}

.portal__header {
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 1; /* 🔹 Lo bajamos al nivel más bajo posible */
    margin-bottom: 3rem;
    /* ... resto de tu código ... */
}


.portal__header h1 {
    color: var(--color-primary);
    font-size: 2.2rem;
    font-weight: 700;
}

.portal__header p {
    font-size: 1.1rem;
    color: #555;
    margin-top: 0.5rem;
}

/* --- TARJETAS DE SEMÁFORO --- */
.status-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.status-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Sombra para profundidad */
    transition: border-left 0.3s ease;
    border-left: 10px solid #eee; /* Estado inicial neutro */
}

.input-fecha {
    padding: 12px; /* Más espacio para tocar fácilmente */
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 10px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer; /* Cambia el mouse a una mano */
    width: 100%; /* Para que ocupe el ancho y sea más fácil de clickear */
    max-width: 200px;
    background-color: #fdfdfd;
}

/* Este truco hace que todo el input sea "clickeable" para el calendario */
.input-fecha::-webkit-calendar-picker-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0; /* Lo hacemos invisible pero que cubra todo el campo */
}

.status-card .info {
    position: relative; /* Necesario para el truco del calendario */
    flex-grow: 1;
}



.status-card:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Lógica de colores basada en tu paleta */
.status-verde { border-left-color: #2e7d32; }
.status-amarillo { border-left-color: var(--color-secondary); } /* Usa tu naranja */
.status-rojo { border-left-color: var(--color-primary); } /* Usa tu rojo */

.status-card__info h3 {
    color: var(--color-dark);
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.status-card__info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- BADGES (Etiquetas) --- */
.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    background: #eee;
    color: #666;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.status-verde { border-left-color: #2e7d32 !important; }
.status-amarillo { border-left-color: #f77f00 !important; }
.status-rojo { border-left-color: #d32f2f !important; }

/* Colores para los Badges */
.bg-verde { background-color: #2e7d32 !important; color: white; }
.bg-amarillo { background-color: #f77f00 !important; color: white; }
.bg-rojo { background-color: #d32f2f !important; color: white; }

/* --- RESPONSIVE --- */
@media (max-width: 800px) {
    .status-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }
    
    .portal__header h1 {
        font-size: 1.8rem;
    }
}